android-emulator

INSTALL_FAILED_INVALID_APK error with debug version code 1 inconsistent with 0

我与影子孤独终老i 提交于 2019-12-07 07:56:46
问题 I have built an Android app on Android Studio version 2.3.3. As I try to deploy the app to a phone (lennovo) or an emulator (GenyMotion) I get an error, which says: INSTALL_FAILED_INVALID_APK: /data/app/vmdl235652946.tmp/4_yCommerceApp-b_c-dev-debug version code 1 inconsistent with 0. I have looked at various posts here and tried the approaches below, none of which seems to help Did a clean build followed by a rebuild after a restart of the Android Studio Disconnected and reconnected devices

How to add a widget in Android 4.2 emulator?

天大地大妈咪最大 提交于 2019-12-07 06:56:21
问题 I recently downloaded Android SDK and running Android 4.2 on the emulator. However, I don't see any option to add widget on my home screen. (I can't even add default widget). I remember on Android 2.2, a long press on screen would pop up a context menu which will give an option to add a widget. I don't find any option in the new emulator. How to add a widget in Android 4.2 emulator? 回答1: You need to open the applications screen, in it to scroll right until you get to the widgets section. from

Android Studio Unknown Emulator running and can't be terminated

六月ゝ 毕业季﹏ 提交于 2019-12-07 06:20:14
问题 I have one emulator actively running at the moment but I see two emulators running when I run the app. One of them is an Unknown Emulator. When I choose the Unknown emulator, the console shows this error: Error: Could not access the Package Manager. Is the system running? How do I terminate this Unknown Simulator? I think it's using my system's resources and degrading the performance. 回答1: Well, it was the BlueStacks emulator running in the background. Android Studio automatically detects it.

Android emulator does not complete startup on Macbook Pro (Error while connecting to socket '127.0.0.1:1970')

跟風遠走 提交于 2019-12-07 05:49:37
问题 I have been trying to launch an app in the android emulator using Android Studio on Mac OS X Yosemite in a Macbook Pro mid 2010. When I launch the emulator from within Android Studio it never finishes startup (the screen remains black). So I tried to launch it from the terminal with -debug-all and I noticed that it keeps trying to do this: emulator: Error while connecting to socket '127.0.0.1:1970': 61 -> Connection refused I tried with Nexus 5 API 21 x86 and Galaxy Nexus API 21, and I also

How to fix The method startActivity(Intent) is undefined for the type new View.OnClickListener() syntax error

送分小仙女□ 提交于 2019-12-07 05:32:44
问题 I have a syntax errors with my code , in the "getView" I want to make a listener for the button "update" to move to another activity : @Override public View getView(int position, View convertView, ViewGroup parent) { LayoutInflater l = (LayoutInflater) context.getSystemService(context.LAYOUT_INFLATER_SERVICE); View rowView = l.inflate(R.layout.temp, parent, false); TextView textView = (TextView) rowView.findViewById(R.id.textView1); ImageView imageView = (ImageView) rowView.findViewById(R.id

Not getting list of YouTube videos

微笑、不失礼 提交于 2019-12-07 05:07:30
I have followed a tutorial on how to use the youtube gdata. Populating a listview with videos from youtube and a onclick. The source code is available on: http://blog.blundell-apps.com/click-item-in-a-listview-to-show-youtube-video/ Once i have changed the YouTube GData link from: https://gdata.youtube.com/feeds/api/videos?author= "+username+"&v=2&alt=jsonc to : http://gdata.youtube.com/feeds/api/users/GoogleDevelopers/uploads i am not getting list of videos, why? Reason is it's not working because : From this URL : https://gdata.youtube.com/feeds/api/videos?author= "+username+"&v=2&alt=jsonc

How to capture the photo from camera on Android Emulator?

天大地大妈咪最大 提交于 2019-12-07 04:51:22
问题 Based on this article, I'm trying do capture the photo from camera on Android Emulator. I followed the instructions as per they said. But I didn't get the positive result. I'm getting the Player is null , while I'm running the WebcamBroadcaster.java (Java Application). Is anyone achieve this before? If yes, Just let me how to do. Or Is there any other option to capture the photo from camera on Android Emulator? 回答1: In Android emulator 2.1 my code is working to capture image but not working

how to find outgoing number in Telephony manager

a 夏天 提交于 2019-12-07 04:43:39
问题 I am using this: public void onCallStateChanged(int state, String incomingNumber) which is listening to: telephonyManager.listen(listener,PhoneStateListener.LISTEN_CALL_STATE); I want to know both outgoing and incoming calls but for now I only get incoming calls (when state changes is ringing). Can anyone tell me when can I detect outgoing call and its end Also is there a way to simulate outgoing calls in Eclipse emulator. was able to do that for incoming calls via emulator control in eclipse

Emulator: cannot find ram.img on ubuntu

自作多情 提交于 2019-12-07 04:29:23
问题 I simply set up a Nexus 5x device with API 27 in the default emulator in Android Studio 3.5. When I was trying to boot the device, the device just closed after the first 'Google' sign. The event log there's the following output: Emulator: statvfs('/home/qiufeng/.android/avd/Nexus_5X_API_27.avd/snapshots/default_boot/ram.img') failed: No such file or directory Emulator: Process finished with exit code 139 (interrupted by signal 11: SIGSEGV) However, the ram.img exists. I also changed the

Android Emulator Screen Size not the same as device frame

拜拜、爱过 提交于 2019-12-07 04:23:04
问题 When I run the emulator the screen size is smaller than the device frame as in the image below. It only happens in a computer with a screen resolution of 3840 x 2160 回答1: I have a Dell XPS 13 with a screen resolution of 3200 x 1800 and I had exactly the same problem. After playing with the settings I found a (temporary) solution in Android Studio: Navigate to Tools -> Android -> AVD Manager Click on "edit this AVD"(the one with the pencil drawing) In the "Emulated Performance" click the