w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Display Android SDK Manager, Android Virtual Device manager buttons in eclipse?
Try this: window->customize perspective->command groups availability->andriod and avd managers (CHECK this option) and then Tool bar visibility->andriod and avd managers(CHECK this option) Hope it helps..:)

Categories : Android

Phonegap android project works on emulator and in some devices but not in a 2.2 android device
Thanks to @Raoul George i discovered what was the problem. When you make: var visitedList = JSON.parse(window.localStorage.getItem("visited")); in an android 4 nothing happens, but if you work with an android 2.2 you need to be sure that window.localStorage.getItem("visited") has a value.

Categories : Android

Android: Emulator in Android Studio doesn't start/launch
Well, Android Studio is waiting for you to start the virtual device. You can do that from AVD Manager --> 'Select the device you chose in Android Studio' --> Start. I hope this answers your question

Categories : Android

Android Studio Error: "You must install the Android Support Repository though the SDK Manager"
you must manualy run SDK Manager folder android-studio/sdk/tools search android or android-sdk new Support Repository must be already selected, and need only click "install" button

Categories : Android

My app won't show up on android emulator and android device
You have missed to put the action in your launcher activity <action android:name="android.intent.action.MAIN" /> your correct code look like <activity android:name="com.example.trial1.Splash" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.SPLASH" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>

Categories : Android

SDK Manager is missing older Android System images for emulator
Check the "Obsolete" checkbox, towards the bottom of your SDK Manager window, and you should see them. More specifically, up until Android 4.0 (or thereabouts), the ARM emulator image was not broken out into a separate download, and so you get that from the base "SDK Platform" download. Why would people expect the ARM image to be part of the SDK platform for <4.0, when it is broken out separately for 4.0+ Well, for those of us graybeards who have been developing for Android for a while, it's second nature... :-) More seriously, I suspect they did not want to attempt to repackage the older releases. Bear in mind that the only available platform for Android was ARM up until about 2.3, and so having a separate ARM image download would have seemed odd back in the beginning.

Categories : Android

Android Eclipse emulator: Can't connect to activity manager; is the system running?
I've also been to such blackouts @ emulator. Please try re-installing all(download the whole android package from the developers site) or Make an another account in your PC and try to run there(sometimes this helps) In my case after downloading the the android package from developers.android.com no such issues were observed give it a try.

Categories : Android

Wrong build being deployed on Android device using Visual Studio 2012 Xamarin.Android
I have no idea why it does this, I had this issue before. I also noticed that the device log was somewhat behind (ie, at 3.30pm, the last record on the device log was 11.00am). Uninstalling the app from the device and re-deploying it seems to correct it. Note: I had this issue in VS, didn't check with XS. I would look at the difference in your deployment settings in VS and XS (I think it may have something to do with the Fast Deployment option).

Categories : Visual Studio 2012

Android Logcat is empty when debug with device in android studio
As of 0.4.0 I have noticed that the logcat tab does not work in the debugger window - only in the Android DDMS window (hit Alt+6 to bring up the working logcat while debugging). Awkward I know :)

Categories : Android

Android Emulator vs Real Device [2013]
Genymotion rocks. According to the blog post of Cyril Mottier it is even much better then the hardware devices. http://www.cyrilmottier.com/2013/06/27/a-productive-android-development-environment/

Categories : Android

Android App works on emulator, but not in real device
You're trying to parse a text field as numeric while it has non-numeric data in it. You need to catch that exception and use a reasonable default. It may just be blank, that would probably cause the same exception. double tipAmount = 0; try{ tipAmount = Double.parseDouble(tipAmountET.getText().toString()); } catch(NumberFormatException ex){} That code will catch the exception, ignore it, and use 0 as a default tip if it can't parse the value.

Categories : Android

Android get emulator given name of device, or vice versa
get the list of PIDs for all running emulator processes parse their cmdlines, collect avd names check tcp ports opened by those processes match open ports against adb devices output

Categories : Android

Android emulator to real device issue
You might be getting a NetworkOnMainThreadException. Sometimes there are network problems on main UI(Activity) You should use a separate thread, refer to this post

Categories : Android

Android device is not connected to USB for debugging (Android studio)
If you are on windows, many times it will not recognize the device fully and because of driver issues, the device won't show up. go to settings control panel hardware and sound device manager And look for any devices showing an error. Many androids will show as an unknown USB device. Select that device and try to update the drivers for it.

Categories : Android

Android Virtual Device Manager
if you want to run AVD from eclipse , you need to install plugin. Below link will guide you. http://developer.android.com/sdk/installing/installing-adt.html

Categories : Android

Android: How to make an emulator in size of a real device?
The dimensions that you set in the emulator are in inches, which match into the corresponding real device resolution and if you select to, dimensions on your resulting monitor image. But consider that your monitor may translate that.. If you really wish to have the same dimensions in the resulting image on screen compared to the device in your hands, why not adapt the dimensions yourself until you're happy with the result? In eclipse: Window -> Android Virtual Device Manager -> Device Definitions -> New Device Create the device with the dimensions it should have (you may look in gsmarena) then run the emulator on real size making sure your monitor/video card is not scaling (extended desktop with multiple monitors). If not just tune the dimensions when creating the virtual device unti

Categories : Android

Android: Image doesn't load on device while it does on emulator
Is your app using a layout or resolution folder-customization that is made for a different form-factor (screen size|resolution)? Also, are your views|container aligned & sized properly, or relative to something that moved or moved off-screen on the bigger monitor? Without more specific details, it's hard to help.

Categories : Android

Cocos2dx android application runs on emulator but not on device
Most probably your library is not properly generated. Goto ProjectHome->libs->armeabi->libgame.so . libgame.so file is missing. This file could be generated when you run create-android-project.bat or equivalent linux file. which creates empty android project.Try copy paste this file from there.

Categories : Android

My android app runs in eclipse emulator but doesn't run on my device
My guess is that your AVD is pre Android 3.0, and that your device is Android 3.0 and above, and that you are running into a NetworkOnMainThreadException, since you a() method is called directly from onCreate(), and does network operations. Try moving your networking code into a background thread or an AsyncTask.

Categories : Java

Android Broadcast receiver works on emulator but not on device
So I confirmed that I will have to start AppReceiver.apk at least once after install and this is a new requirement or safety thing after Android 3.1 as they want user to explicitly start an app in order to user its broadcast receiver. Since I did not wanted any GUI thing, the way I did is just wrote an activity which is not calling any view and defined the theme as android:theme="@android:style/Theme.NoDisplay" in manifest so the user won't notice after install that the app has already started and the receiver is also available. Thanks @Nitin Sethi for pointing me in the right direction. public class MyActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); } } Here is how the new manif

Categories : Android

Android Intel x86 Emulator vs Real Device (Performance)
HAXM is faster then emulated ARM and if Graphics Hardware Acceleration doesn't cause any problems it is quite usable. I was able to run Nexus 10 emulator without problems until something was "fixed" in hardware acceleration and my Mac(ATI) started to freeze every time I have launched emulator. As I don't use mac nor windows anymore here some values for real device in comparison to KVM enabled Ubuntu: Emulator (4.2.2 Intel 7inch, HW enabled, host i7 running Ubuntu 64 with KVM) 07-25 11:05:40.175: I/performance:(2287): 07-25 11:05:40.285: I/performance end:(2287): Samsung Nexus 07-25 12:07:48.352: I/performance:(19139): 07-25 12:07:49.328: I/performance end:(19139) Emulator wins massively. Task was to download few files from sdd parse them into json then write to db

Categories : Android

How to install a apk on emulator in Android Studio?
You can install .apk files to emulator regardless of what you are using (Eclipse or Android Studio) here's what I always do: (For full beginners) 1- Run the emulator, and wait until it's completely started. 2- Go to your sdk installation folder then go to platform-tools (you should see an executable called adb.exe) 3- create a new file and call it run.bat, edit the file with notepad and write CMD in it and save it. 4- copy your desired apk to the same folder 5- now open run.bat and write adb install "your_apk_file.apk" 6- wait until the installation is complete 7- voila your apk is installed to your emulator. Note: to re-install the application if it already existe use adb install -r "your_apk_file.apk" sorry for the detailed instruction as I said for full beginners Hope this

Categories : Android

How to include "Android" folder to Android Studio (ZXing)
I fallowed this tutorial: http://phpmyweb.net/2012/07/18/integrating-zxing-in-your-android-app-as-standalone-scanner/ which worked fine for me

Categories : Android

Intel Hardware Accelerated Execution Manager (HAXM) makes android emulator not show up under connected devices
I had to reset the adb. Do this by opening android device monitor aka android debug monitor aka ddms and then right clicking the dropdown arrow and then clicking "reset adb". You can also do this in terminal as shown here: Android Emulator not seen in Device Chooser

Categories : Android

IBM Worklight 6.0 - Hybrid Android Application not working in Emulator and Device
I have found out the Solution.Initially i have added all Dojo library folder to my project www folder that makes my hybrid application hangs. What i did is i have removed all the Dojo folder from my Worklight application www folder and added only the required dojo files to my project www folder. You can check the missing library files by opening the Console view (Window > Show View > Other... > Console). From the Console view, click the Open Console button and choose Dojo Library Requests from the list. From the Dojo Library Requests console, click the View Menu (the triangle in the toolbar), and uncheck Provide Library Resources. Now Run you hybrid application to see all your missing Library Resources.

Categories : Android

Simple XML is not working from android device works fine with emulator
The statement made on this question is incorrect. Your code is working on both your device and on the emulator. The below message has nothing to do with the operation of Simple XML on Android. On Android it uses XML Pull not StAX. 07-25 11:52:17.351: I/dalvikvm(2934): Could not find method javax.xml.stream.XMLInputFactory.newInstance, referenced from method org.simpleframework.xml.stream.StreamProvider. 07-25 11:52:17.351: W/dalvikvm(2934): VFY: unable to resolve static method 6849: Ljavax/xml/stream/XMLInputFactory;.newInstance ()Ljavax/xml/stream/XMLInputFactory; Ignore this message!

Categories : Android

My android app run on emulator but it's not running on real device(samsung galaxy tab 2)
I guess there is a firewall in you pc which the mysql server runs in. The emulater is in the same pc, so the firewall does not take effects. You'd better add mysql's 3306 port to your server or temporarily stop your firewall and try again.

Categories : Android

Android Virtual Device Manager quit unexpectedly
Start the emulator instead by using emulator -avd emulator_device_name & where you fill in emulator_device_name with the name of the emulator you see when you run android avd.

Categories : Android

SDK Manager not opening in Android Studio
SDK Manager not launching from Android Studio because you have to start the AndroidStudio as Run as administrator privileges. Failed to execute tools/android.bat Run the android.bat which is in tools directory of the sdk. Ex [C:Program Files (x86)Androidandroid-studiosdk ools] It will start the SDK Manager.

Categories : Android

My JavaMail app works fine on Emulator but it is not working on my android mobile device
I find the solution Actually there is a api combatibilty problem first add in onCreate method if (android.os.Build.VERSION.SDK_INT > 9) { StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build(); StrictMode.setThreadPolicy(policy); } then change in manifst file <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="15" /> Now its working fine on my emulator + mobile device

Categories : Android

Open remote Device file manager using bluetooth [Android]
You can use FTP profile(file transfer profile) which uses OBEX, can find code at here. Thanks to QCOM for open-source code, check if you need to have RFCOMM channel registration and other details

Categories : Android

Cannot launch AVD manager in windows 8 using Android Studio
Download the jdk from the below link ... http://www.oracle.com/technetwork/java/javase/downloads/index.html then after the installing the jdk. MyComputer-->Properties--->AdvancedSettings--->EnvironmentVariables Right Click on the MyComputer icon Then select properties then a windows opens ... In that windows see the left pane .. Click Advanced Settings then again a windows opens in that ... see at the bottom . u can notice the environment variables Click the environment variables Again a windows opens ... Then Select the system variables click new button ... then a pop up window opens ... Set Varible Name : JAVA Set Variable Value: C:Program Files (x86)Javajdk1.6.0_33in(its my path)... same way put your path the save it ... Then open the android studio it will o

Categories : Misc

Samsung Galaxy S II AVD (Android Virtual Device) - "emulator: ERROR: unknown skin name 'galaxy_s2'"
Have you downloaded the skin into the skins folder? (..sdk directory.../platforms/android-10/skins)

Categories : Android

Android Studio - Set custom fonts with asset manager in fragment
I finally stumbled upon this: Load a simple text file in Android Studio which points out the assets folder in Android Studio has apparently been changed. Instead of its normal location in the root app folder (same level as libs, src, ect) it needs to be created under yourapp/src/main/assets. Hopefully this helps someone else. I wasted a lot of time on it!

Categories : Android

Can you specify which resource folder an Android device uses?
You can use the following code to get the size and then scale the image to the required size based on the size of the display. Display display = getWindowManager().getDefaultDisplay(); int width = display.getWidth(); int height = display.getHeight(); DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metrics); int screenDensity = metrics.densityDpi;

Categories : Android

Android Studio 0.2.5 Does not see Galaxy S4 as device
I have a Galaxy S3 and initially I did not know what to do when I was in the same position as you are. The Android page on making your device recognizable via USB is slightly misleading. So what is the way out ? Well, download and install Samsung Kies and let it do its work. It will install all the necessary drivers to make your device recognizable. Happy coding.

Categories : Android

JNI folder in Android Studio
The gradle build system does not support bundling native libraries at the moment. Check https://groups.google.com/d/msg/adt-dev/nQobKd2Gl_8/Z5yWAvCh4h4J for some custom tasks you'd need to add to your build.gradle. Note that this is a temporary workaround until gradle supports building native projects.

Categories : Android

Cannot open /data folder in a rooted Android device
If you have installed supersu like apk. When you do 'su' in the shell, there might be a notification on screen asking that if you agree the program to run 'su'. You have to grant the permission.

Categories : Android

Android Studio doesn't see my ZTE Blade III device
Have you opened up the: /path/to/android/sdk/tools/android Android SDK download tool and installed "Google USB Driver" under the "Extras" folder? (Required for Windows. Screenshot from Linux computer)

Categories : Android

How to create new res folder in Android Studio
I had the same problem, what I did was create a values-xx folder inside the main directory (main>>right click>>new>>directory) and then moved that folder to res/ directory. It's not beautiful but it is a workaround to create a folder with Android studio.

Categories : Android



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.