w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
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

Better way to use an Android x86 HAXM accelerated emulator on Windows 8 with Hyperv
I don't know if this is good answer for you. I had similar problems with x86 emulator. I've switched to Genymotion - Google Play Services are working fine, and it's really fast + official plugins for Eclipse. But you need to install VirtualBox (but it's free) so this shouldn't be a problem. Genymotion site: http://www.genymotion.com/

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

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

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 set text formatted in Android Studio in ubuntu
Hey Now I have your answer. You need to change Ubuntu key shortcuts for Lock Screen For this. Go to System Tools -> System Settings -> Keyboard -> Shortcuts Tab -> System -> Lock Screen Select the row New Accelerator... will be visible then press any Special key with Alpha key (like Shift + L). You changed the key shortcuts. Now check format key in Studio.

Categories : Android

Android Studio installation issue in ubuntu
Use following steps, to set JDK Path in uBuntu edit your ~/.bashrc file and add the paths as follows: insert following lines: export JAVA_HOME=/usr/java/<your version of java> export PATH=${PATH}:${JAVA_HOME}/bin

Categories : Java

Enable programmatically focus on text field inside phonegap running on Android
Yes, it's know. You can work around this in android by writeing native java code as plugin to programaticaly show softkeyboard. Here are few hints

Categories : Android

Install Google Settings on HAXM x86 emulator (Google Maps SDK)
As per Google Android Map Api v2 ypu can't run it on an Android Emulator; you need a real device to test your apps. To run a app which uses Google Maps v2 you need two applications already running on the device 1. Google Play Services (com.google.android.gms.apk) 2. Google Play Store (com.android.vending.apk) Follow this guide here to download and install the latest version of these two apk's using adb commands.

Categories : Android

Hi.while developing OCR application in Android i'm getting Error as "Unfortunately OCR test has stopped" in Android emulator
The error is occuring at: edu.sfsu.cs.orange.ocr.CaptureActivity.initOcrEngine(CaptureActivity.java:715) ie line 715 of class CaptureActivity. Furthermore, the cause listed in the log (towards the end) is that it could start a library to initiate the class TessBaseAPI. Assuming that there are no errors when you are writing your code in eclipse, then a likely cause is that a library you are using isn't be added to the all when it is sent to the phone or emulator. To solve this, you need to edit the project properties to include the libraries you have added to the project. See Adding a library/JAR to an Eclipse Android project.

Categories : Java

My Android app splash screen launches in the android emulator, but then the actual app never shows
I believe that it can't find your main activity because you have spelled the example wrong in your manifest on the line: package="com.examle.firstapp" should be: package="com.example.firstapp"

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 : Error to install Google play services in android emulator?
This is a hack from one of the posts on SO that I used and had setup on my machine. Dont have the link right now, if someone could post that please, this is just a dump from back then that I had copied. 1.) Create a new emulator 2.) For device choose "5.1'' WVGA (480 x 800: mdpi)", Target choose "Android 4.1.2 - API level 16", "CPU/ABI" choose "ARM" and The rest choose defaults 3.) Start the emulator install com.android.vending-1.apk and com.google.android.gms-1.apk via ADB install command Voila! It worked for me. Last I checked this was only possible otherwise officialy on devices. But that is 2012 December knowledge, I havent checked again

Categories : Android

IBM Worklight v6.0 - Android AppCenter app unable to launch in Android Emulator
Please see a possible solution here: com.google.android.gsf package couldn't be found Seems to be related to not using the correct settings for the Android emulator.

Categories : Android

Using microphone in android emulator (Java + Android beginner)
It seems the audio features do not work if the emulator has been started using a snapshot. Even without the snapshot, the audio features still may or may not work depending on the computer. Please see HERE

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

Android: How can I open an older android project in Android Studio?
Look at this links. How do I open my existing Eclipse projects in Android Studio? http://developer.android.com/sdk/installing/migrate.html

Categories : Android

Android Studio - Build an Android project with Android library which depends on another Android Library
The manifest files for the library must currently have a <application /> node, even if it's empty. It's a restriction we'll remove at some point but for now, just add it.

Categories : Android

Why is it possible to use Android Support v4 on an Android 4.0.3 emulator
Android v4 Support Library supports all Android OS above 4 (Android 1.6), the same goes for the v7 (Android 2.1) and v11 (Android 3.0) version of the support library. The functions these support libraries use are not tied to Google services, so you do not need to target images with Google services built in (i.e. "Google APIs - API Level 15"). If your app uses Google Play services, however, you would need to target "Google APIs - API Level 15".

Categories : Android

Android AVD 2.3.3 w/ Google APIs on Intel Vs ARM
The use of the Intel x86 emulator images is covered in the documentation. Can I do so on all dev systems? (e.g. Linux, OSX, ...) The system requirements for the use of the Intel x86 emulator images is covered in the documentation. While all Android SDK development platforms are supported, not all CPUs are, and the "step-by-step" instructions vary by OS. UPDATE My apologies regarding the Google APIs. There is no support for Google APIs on all the x86 variants, as Intel has not prepared them. At this point, it is exceedingly unlikely that there will ever be an x86 image with Google API support.

Categories : Android

How to add Android.Dialog as an Android Fragment inside an Android Activity?
This isn't supported 'out-of-the-box' in the current MvvmCross source - but it should be relatively straight-forward to merge the fragments and Activity-dialog code in order to create a working sample. The exception you list is thrown from https://github.com/slodge/MvvmCross/blob/v3/CrossUI/CrossUI.Droid/DroidResources.cs#L99 It suggests that the Setup hasn't been called - in the standard samples (e.g. N+1 video samples) this is called via https://github.com/slodge/MvvmCross/blob/v3/Cirrious/Cirrious.MvvmCross.Dialog.Droid/MvxAndroidDialogSetup.cs#L45 So this suggests you should check the setup in your code sample - are the resources being initialised?

Categories : Android

how to enable trace in android 4.3 as in android 4.2
From the Official Doc. Systrace events for apps Android 4.3 adds the Trace class with two static methods, beginSection() and endSection(), which allow you to define blocks of code to include with the systrace report. By creating sections of traceable code in your app, the systrace logs provide you a much more detailed analysis of where slowdown occurs within your app. For information about using the Systrace tool, read Analyzing Display and Performance with Systrace.

Categories : Android

Android Studio 0.2.2 + ActionBarSherlock setttings: Could not find class 'android.support.v4.app.FragmentActivity'
As you requested my settings to be shared, I here post my project settings window. Hope that you can help. 1. ActionBarSherlock project. Note that only android-support-v4 is checked to be exported. 2. My personal project settings windows. Nothing special but only ActionBarSherlock project is referenced.

Categories : Android

Automatically versioning Android project from git describe with Android Studio/Gradle
After some further reading and several false starts, I ended up with this, added to the bottom of build.gradle in the project directory (that is, MyAppProject/MyApp/build.gradle, not MyAppProject/build.gradle -- confusing, I know, but the former directory is projectDir in Gradle so that's how I refer to it here). It depends on no external utilities other than Git, which is assumed to be in the path, so it should work on any OS (even though I used forward slashes in the paths, they get converted to backslashes on Windows). It could probably stand to be improved, I'm sure, as my understanding of Gradle is pretty rudimentary and my Groovy may not be very idiomatic (though that in particular is less of a concern). I have a feeling that my approach is suboptimal because it involves generatin

Categories : Android

How to setup and test an Android Library Project with Gradle and Android-Studio?
i think this tutorial will help you : http://cyrilmottier.com/2013/06/27/a-productive-android-development-environment/ !

Categories : Java

Android Studio & Gradle: Add outside java classes to Android main project
you might want to make your Dir a own module add include 'Dir' to your settings.gradle create a build.gradle inside your Dir directory with this content apply plugin: java now you can go into your main projects build.gradle and add to dependencies: compile project(':Dir') if your Dir uses android related stuff, you might want to use the New > Module(right click on your project in Android Studio) Function of Android Studio to create an Android Library. But i haven't tested that feature yet. If Android Studio throws an Exception when trying to use the New Module, you should try to update Android Studio, in the latest Version it works for me. You might also want to check the Gradle User Guide and the DSL Reference both are very helpfull in getting into Gradle and understanding i

Categories : Java

How do I add the library android-support-v7 in IntelliJ IDEA (Not Android Studio/Gradle)?
You just need to add "@string/abc_action_mode_done" in your appcompat/res/values/strings.Do not "set mediarouter as a dependency for appcompat library".(In my case,"@string/abc_action_mode_done" already exists in the appcompat/res/values/strings.I don't know why you miss it.) "add depenency appcompat to mediarouter" is necessary.

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

Android Studio: Android Manifest doesn't exists or has incorrect root tag
I ran into a similar problem. Looks like my .../src directory for whatever reason moved under my .../lib directory. I moved it out of the /lib directory. Now both /lib and /src are at the same level. After a couple of clean rebuilds and restarts of Android studio everything is back to normal. My emulator started up fine. You might want to check your directory structure. Compare the directory structure with a working project. You might be able to see the difference.

Categories : Android

Maven repository and "Android support library", revision 18 for Android Studio 0.2.x
Install fresh Android Studio 0.2.x. Upgrade from pre 0.2 doesn't work as mentioned here http://developer.android.com/sdk/installing/studio.html#Updating Reason is that new Android Studio is shipped with maven repo for serving support libraries. Alternatively edit build.gradle and replace compile 'com.android.support:support-v4:13.0.+' with compile files('/libs/android-support-v4.jar') then copy support jar to libs folder.

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

How to navigate/view/edit android platform sources (AOSP) using Intellij IDE (Android Studio preferably)?
Well, first you have to install Android studio from here: http://developer.android.com/sdk/installing/studio.html Then, if you already have a project in Eclipse here is how you export it to Android Studio: http://developer.android.com/sdk/installing/migrate.html

Categories : Android

How to open android documentation and samples of code in android studio
First you need to make sure the documentation is added to Android Studio. Go to File -> Project Structure. Under the Platform Settings heading, add or select an Android Platform. Go to the Documentation Paths tab and make sure the path to your SDK's documenation folder is added there - it should be [SDK]docs eference, where [SDK] is the full path to your SDK installation. If it is not there add it manually. Once this is done, use Ctrl+F1 while your cursor is on the item you want to display help for. The samples have not been ported to Android Studio yet, but I'm sure google will get around to it at some point. For now follow the instructions in the comments by androidika (you will need a copy of Eclipse installed).

Categories : Android

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 Studio - Export Android library aar with pure gradle
You should try updating/upgrading your build tools and gradle through AndroidStudio. Once you do this, or if you have already done it, you should be able to modify your build file to reflect the updates: classpath 'com.android.tools.build:gradle:0.5.+' ... buildToolsVersion "18.0.1" NOTE: I am still unable to generate aar files even with this setup, although compiling is fine. At least this might get you past this hurdle.

Categories : Android

Is it possible to test In App Billing in an Android App connected to and running from Android Studio
Except for the static purchase test items, you are generally no longer able to test in-app billing features while in debug mode. You have to use a release version of the app and complete the app setup on Play Developer Console to do so. So to answer your main question, while you can track the overall flow of your purchase feature in debug mode on your app, you won't be able to test a successful transaction while using the debugger.

Categories : Java

Android Studio "Cannot resolve symbol XXX" on basic Android tutorial
so, it turns out that Studio is (understandibly) buggy, and that these errors are false negatives... I can also add the hierarchical parent by hand in the code so the question about the popup is moot too :/

Categories : Android

How to create the best Android app project structure with Android Studio and Gradle?
You should look at the multiproject example for the layout attached in the doc. http://tools.android.com/tech-docs/new-build-system http://docs.google.com/viewer?a=v&pid=sites&srcid=YW5kcm9pZC5jb218dG9vbHN8Z3g6NDYzNTVjMjNmM2YwMjhhNA Essentially you want a top level settings.gradle that tie all the pieces together. Ideally they should be in one single git repo to make your life easier. However you probably can use symlink to tie them into a common build repo that contain your top level settings.gradle.

Categories : Android

No Android facet found, issues compiling with Android Studio 0.2
Add an android facet to your module by following below steps. 1) Go To File Menu -> Project Structure, or press (Ctrl+Alt+Shift+S) shortcut to open "Project Structure". 2) Select "Facets" which is under the "Project Settings" tab. (First column) 3) Click on "+" button which is at the top of the Second Column to add new facets. 4) Select "Android" facet from that "Add "menu which will prompt another dialog box to select a module. (Select a module to which you want to apply this facet). 5) Select your module and that's it. :) Hope this will solve your problem.

Categories : Android

How do I migrate my Android Eclipse project to using Gradle and Android Studio?
You should create a folder in you project's root and name it libs. Then copy your jar file to that folder and add dependencies { compile fileTree(dir: 'libs', include: '*.jar') } to your build.gradle file. If above won't work. You may need to try this post

Categories : Java



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