w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
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 not starting on a fresh android sdk installation
make sure : Create a environment variable called: ANDROID_SDK_HOME and set it to C:UsersAdministrator Open Eclipse > Window > Preferences and click in Run/Debug and String Substitution Add a new variable called: user.home and set it to C:UsersAdministrator Create an AVD and run it. Alternate solution i would suggest u is use android app player : Bluestack OR YouWave

Categories : Android

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

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 can i create new virtual mouse device on my android device?
From what i see you should create your own virtual device with your own driver , Fortunately there is an easy way to do so using uinput There is an easy guide for getting started here , and this question can be a good guide to write your own virtual driver. I thought this can only be done if you have access to kernel , and create your own ( i dont think modifying user rom is a good solution ) , but after reading this , it is clear that Uinput can run in user mode. Note : I agree with recommendition to use touch events ; as this solution is more common and makes sense , check second suggestion is this answer

Categories : Android

Using IntelliJ with Android plugin, rather than using Android Studio
I've been using IntelliJ IDEA 12 for Android projects for a long time. Android studio has a lot of beneficial additional Android integration, such as: Inline Lint API checks Drawable and string previews Better layout editor Built in Gradle support Better DDMS integration But you can certainly just use the community edition of IntelliJ 12 for Android projects, and for production projects, I would say it's preferable at this time until Android Studio stabilizes. Also, I believe IntelliJ 13 will essentially include all of the Android functionality that Android Studio does, from what I've heard.

Categories : Android

Android Apps Debugging in Android Studio
in click Edit Configurations then change the yellow circled to USB devices

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

Connecting Android device for debugging
You can check the link below. http://developer.android.com/tools/device.html "the vendor ID is for HTC. The MODE assignment specifies read/write permissions, and GROUP defines which Unix group owns the device node." from android.com

Categories : Android

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

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 Virtual Device Not Running App
After you start the emulator, you need to select your app project and run it. That will install and launch the app on the emulator. See here: http://developer.android.com/tools/building/building-eclipse.html#RunningOnEmulatorEclipse

Categories : Java

Debugging a "remote" Android device with Xamarin?
This is pretty basic but have you enabled USB debugging on your Android phone? http://www.wugfresh.com/faq/how-do-i-enable-usb-debugging-on-android-4-2-the-developer-options-menu-item-is-gone/ follow those instructions if you havent...

Categories : Android

Android Virtual Device armeabi-v7a but nothing for armv7?
The ARMv7 architecture comes in 3 flavours: Application (first implementation, Cortex-A8) Real-time (first implementation, Cortex-R4) Microcontroller (first implementation, Cortex-M3) Only the "A" profile provides a Memory Management Unit - so if your device is ARMv7 and it supports running off-the-shelf Android, it is an ARMv7-A device. armeabi describes the ABI used, not the hardware.

Categories : Eclipse

Flash Builder 4.7 fails on debugging on android device
How does you appName-app.xml looks like? Look at the end of the file, does the <extensionID> match the ANE/extension.xml <extension>/<id>? Did you build your ANE with the same sdk than your main project? Are the files referenced by <nativeLibrary> really included in the ANE (open it with an archiver)? Did you well implement functions referenced in extension.xml's <initializer> & <finalizer>?

Categories : Android

Android: Motorola MC40 device not recognized for debugging app
Problem solved. For anyone having the same issue: The Problem for the motorola MC40 is that the Vendor ID number is not the same as the Motorola vendor Id number (22b8). The MC40 vendor ID is "05e0". That was the root of the problem. So when following the instructions here make sure to enter the ID mentioned heretofore. Also not only do you have to add the id to the "51-android.rules" file in this format ("SUBSYSTEM=="usb", ATTR{idVendor}=="05e0", MODE="0666", OWNER="[user_name]"), but you also have to add the HEX version of the ID (0x5e0) to the "adb_usb.ini" file in .android directory: ~/.android/.

Categories : Java

How to make a virtual video device for testing and debugging which has /dev/video9?
it Works! Step 1: $ apt-get install linux-headers-3.5.0-17-generic $ apt-get install v4l2loopback-dkms Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: module-assistant v4l-utils Use 'apt-get autoremove' to remove them. Suggested packages: v4l2loopback-utils The following NEW packages will be installed: v4l2loopback-dkms 0 upgraded, 1 newly installed, 0 to remove and 506 not upgraded. Need to get 0 B/24.7 kB of archives. After this operation, 115 kB of additional disk space will be used. Selecting previously unselected package v4l2loopback-dkms. (Reading database ... 201818 files and directories currently installed.) Unpacking v4l2loopback-dkms (from .../

Categories : Python

Virtual Mac XCode iPhone debugging - device not connected issue
I successfully connected to remote VM installing Logmein's Hamachi VPN software on both my host and VM. Using it, XCode could detect my iPhone device once shared via USB Network Gate.

Categories : Iphone

Why isn't my pom being executed correctly when using Android Studio/IntelliJ?
IntelliJ has it's own internal build system much like any other IDE and is able to build projects without the help of external tools. Intellij also integrates with Maven by interpreting the pom.xml from your project and intructing it to build based on the configuration you have defined. This works pretty well with most compilation tasks but starts to fall over when you bring in more complex plugins such as the buildnumber-maven-plugin. Unfortunately IntelliJ has no internal equivilent to handle this plugin so the ${buildNumber} property is never populated. The possible workarounds are: Don't build your project with IntelliJ's built in system, use the "Maven Projects" panel which you can show by going to "View" > "Tool Windows" > "Maven Projects". This gives you access to all of the stan

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

My sample doesn't start in android virtual device
This shows that your application is crashing due to some reason. Debug your Main Activity in your case it is Welcome.java. Place debug point in your onCreate and other callback methods, i.e onResume(), onPuase(), Also provide complete stack-trace, what trace you have provided is useless. Please also privide code of your Welcome Activity.

Categories : Android

Unable to publish directly to Android device, stuck on "Uninstalling..." within IntelliJ IDE
This might be an issue with Android 4.2, which added a security check before allowing installation of apps over USB. Check out: Launching to device on 4.2 Jelly Bean At least that was the case for me.

Categories : Android

ActionBarSherlock / IntelliJ (Android Studio) - Newest Versions
For me the following works fine : Copy the actionbarsherlock directory to your project root to have MyAppProject |-actionbarsherlock |--build.gradle |-MyApp |--build.gradle |-build.gradle |-settings.gradle build.gradle of actionbarsherlock buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.5.+' } } apply plugin: 'android-library' dependencies { compile 'com.android.support:support-v4:18.0.+' } android { compileSdkVersion 17 buildToolsVersion '17.0.0' sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['src'] res.srcDirs = ['res'] } } } build.gradle of MyApp bu

Categories : Misc

How to import apklib into Android Studio or IntelliJ project?
I want to answer my own question after I found out recently. If we have module B need module A library. apklib is create as a library and can be use and read from maven to reference. So if set module A in maven's pom.xml dependency, when mvn build it will ask maven to look for apklib. And as IntelliJ and Android Studio, just go to project structure set the module to Android Library, and add module dependency, then like module B can use from module A.

Categories : Android

Android Studio - IntelliJ No JDK found even though its installed and in path
Have you tried manually adding the JDK to the default project configuration? You can do this by choosing File > Other Settings > Default Project Structure from the menu. The go under the SDKs heading and add the JDK by clicking the green + symbol and choosing JDK, the browse to your JDK folder. You can also add Android platforms here if needed. Also, I'm not sure about this, but on my x64 system I use both a 64-bit and a 32-bit JDK. Android Studio/IntellJ uses the 64-bit (in Program Files) version to run, but my build uses the 32-bit JDK (in Program Files (x86)). Not sure if this is required, but it might be worth a shot if you are still having trouble getting it to work.

Categories : Intellij Idea

Removing Ignored Android Studio (or Intellij) Update Builds
The simple way to revert a misteken choice is to close Android Studio then edit other.xml file and remove the myIgnoredBuildNumbers option block: <option name="myIgnoredBuildNumbers"> <value> <list size="1"> <item index="0" class="java.lang.String" itemvalue="130.729444" /> </list> </value> </option> Technically you should edit the size and remove the item in question but after some testing the next time you ignore a build the myIgnoredBuildNumbers block will be rebuilt. The other.xml file can be found at: OSX: ~/Library/Preferences/AndroidStudio/options/other.xml WIN: %HOMEPATH%.AndroidStudioconfigoptionsother.xml NIX: ~/.AndroidStudio/config/options/other.xml The same can be done in Intellij in the following paths: OSX

Categories : Android

Uinput virtual device is detected as physical keyboard on android
To solve this issue I made my custom IME: I took the SoftKeyboard from com.example.android.softkeyboard package and then what there's to do is simply override the onEvaluateInputViewShown method this way: @Override public boolean onEvaluateInputViewShown() { return true; }

Categories : Android

The 'Unfortunately Testapp has stopped' error message in Android Virtual Device
Can anybody tell, what error this log references and where I should look for to fix this issue. This first line with the exception after FATAL EXCEPTION: main 08-16 22:44:22.829: E/AndroidRuntime(800): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.Testapp/com.example.Testapp.FirstActivity}: java.lang.NullPointerException Caused by: java.lang.NullPointerException tells us that there is a NPE. Then if we find the first line that references your project it will tell us the line number at com.example.Testapp.FirstActivity.<init>(FirstActivity.java:12) Something is null at line 12 of FirstActivity. Most likely instantiating a View before inflating the layout but could be about anything. If you are having trouble figuring out what/

Categories : Java

Gradle can't user JAVA_HOME while debugging from Android Studio
I might be reading too much into the error message, but shouldn't JAVA_HOME look more like C:viewsp4libraryea-jrockit1.6.0_29windows-x86_64dist? Notice that it points to a folder called 'dist' instead of to the java.exe itself. To help you figure out the folder, 'dist' has inside of it 'bin'. So maybe try something more like C:Program Files (x86)JavaJre7?

Categories : Android

"Android Studio" debugging - display variables as hexadecimal
In the debug window, right click on the value you would like to view in hex and choose View as -> Hex. This can be done in the Variables or Watches views.

Categories : Android

setOnKeyListener onKey not working with Eclipse/ADT Android Virtual Device - Nexus One
MyEditText.setOnKeyListener(new EditText.OnKeyListener() { public boolean onKey(View v, int keyCode, KeyEvent event) { if ((event.getAction() == KeyEvent.ACTION_DOWN) || (keyCode == KeyEvent.KEYCODE_ENTER)) { MyButton.performClick(); return true; } return false; } }); Maybe you should try with || instead &&

Categories : Java

Graphical view of layout in intellij Idea for android studio?
If you open any layout file, the switch will be displayed as tabs at the bottom: Note that you need to have Android Designer plug-in enabled: It's also important to open the files from the src/main/res/layout directory, not from the build directory. If you open a file under build, latest Android Studio will display a warning on the top of the file: Files under the build folder are generated and should not be edited.

Categories : Android

Android Studio/Intellij Idea: "Table of Contents" for a class
IDEA has a tab called "Structure", which shows all the methods, fields, etc. of the currently-open class.

Categories : Android

Preview layout with merge root tag in Intellij IDEA/Android Studio
Android Studio 0.5.8 added support for tools:showIn. By using it it is possible to preview < merge > layouts. http://tools.android.com/recent/androidstudio058released layout/layout_merge.xml with tools:showIn: <merge xmlns:android="http://schemas.android.com/apk/res/android" xmlns:custom="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" tools:showIn="@layout/simple_relativelayout"> ...... </merge> layout/simple_relativelayout.xml with include: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <include layout="@layout/layout_merge"/> </RelativeLayout>

Categories : Android

Prevent Android Studio/Intellij Idea from building project on startup
Sounds like you have Make project automatically enabled. This setting can be found in Settings -> Project Settings -> Compiler, under the Use external build setting. You can also try disabling the Rebuild module on dependency change setting (it is in the same place).

Categories : Android

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

Running simple JUnit tests on Android Studio (IntelliJ) when using a Gradle-based configuration
Normally, you can't. Welcome to the world of Android, where all tests must run on a device(except Robolectric). The main reason is that you don't actually have the framework's sources - even if you convince the IDE to run the test locally, you will immediately get a "Stub! Not implemented" exception. "Why?" you might wonder? Because the android.jar that the SDK gives you is actually all stubbed out - all the classes and methods are there but they all just throw an exception. It's there to provide an API but not there to give you any actual implementation. There's a wonderful project called Robolectric which implements a lot of the framework just so you can run meaningful tests. Coupled with a good mock framework (e.g., Mockito), it makes your job manageable. Gradle plugin: https://githu

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

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



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