android-emulator

Android TCP communication over the internet(not LAN).

喜夏-厌秋 提交于 2019-12-06 04:39:51
I'm creating an app to establish communication between two android mobiles through the internet using TCP sockets. So, I'll primarily be using ip addresses of the two mobiles with my fancy app port no. Is this possible? To create custom TCP ports and communicate over the internet like in a LAN? So far i'm able to successfully communicate between two emulators in a LAN . But it's not possible to do the same thorugh the internet in case of emultors cos usually the host machine is behind a router that allows only data to the port 8080 or 80 i'm not sure. Of course there are port forwarding that

(Using Android Studio) AVD Gets Crash During Launch of My Applicaton

匆匆过客 提交于 2019-12-06 04:14:37
问题 I am New to Android application development. My AVD was working fine a day before but when I try to start it next day it stopped working by throwing the following errors: Failed to create Context 0x3005 could not get wglGetExtensionsStringARB emulator: WARNING: Could not initialize OpenglES emulation, using software renderer. could not get wglGetExtensionsStringARB could not get wglGetExtensionsStringARB could not get wglGetExtensionsStringARB could not get wglGetExtensionsStringARB could not

4096 MiB SD card in Android Emulator… less than 9MB?

﹥>﹥吖頭↗ 提交于 2019-12-06 03:47:05
Every time I attempt to create a new AVD with the latest Android SDK (under Eclipse), I can't actually specify SD Card Sizes greater than 1024 MiB. Any attempt to specify higher numbers gets me always the same message: "SD Card Size must be at least 9MB" What gives? Any idea why this could be happening? Known issue. Vote for it. I have got the same problem too. Answer found here: http://code.google.com/p/android/issues/detail?id=7038 I've also reproduced it with the same setup as Michael. Here is some additional detail on what sizes are considered valid or invalid when generating a new AVD

Getting Null pointer exception while capturing and saving an image using android emulator

♀尐吖头ヾ 提交于 2019-12-06 03:17:07
I am trying to capture and save an image through an Android emulator, image is being captured, but the file being saved is corrupted. What could be causing this? can anyone help me identify possible error points? Below is my code: **public void onCreate**(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); **Intent** intent = new **Intent**("android.media.action.IMAGE_CAPTURE"); try { fileUri = getOutputMediaFileUri(MEDIA_TYPE_IMAGE); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } intent.putExtra(**MediaStore**

Linux - run android emulator on Nouveau driver

大兔子大兔子 提交于 2019-12-06 03:12:17
Linux (Debian Sid x64), kernel 4.14, Nvidia GPU. I am unable to run Android emulator on open Nouveau drivers. There is no any error message that I can post, jus segmentation fault. When I choose software rendering, it works but unusable (it runs very slow). Does anybody know any workaround for that, or I am forced to use official Nvidia drivers? 来源: https://stackoverflow.com/questions/47900233/linux-run-android-emulator-on-nouveau-driver

could one emulator send a SMS to itself

瘦欲@ 提交于 2019-12-06 03:06:58
问题 I've been trying to send message on Android 4.0 emulator via Broadcasting and fetch that message via Broadcast receiver. I'm able to do so with two emulators, say, from 5554 to 5556. However, I can't get the sent message from 5554 to itself. Here's the way I send a message: SmsManager sms = SmsManager.getDefault(); sms.sendTextMessage(number, null, message, sentPI, deliveredPI); the number here is emulator's port number 回答1: You can easily demonstrate that using tellnet command : in windows

HTML <select> control disabled in Android WebView (in emulator)

浪子不回头ぞ 提交于 2019-12-06 03:02:29
问题 I have a very simple Android app that's just a WebView. Everything works fine (complex Javascript etc.). However, all of the HTML select controls seem to be disabled. They display with default values, but nothing happens when I click on them, and they don't get the orange highlight when I arrow through the controls. Other inputs (text, radios, submit) work fine, so I don't think it's a focus issue. Configuration: Eclipse IDE SDK Version 8 (2.2) Testing in the Emulator 回答1: I had the same

Android emulator crashing on Windows 7 64 Bit

泪湿孤枕 提交于 2019-12-06 03:01:49
I am a newbie android developer and so far have only got Hello World running on my android phone. When I try to run my app in emulator mode I see the emulator window with the keyboard and answer / hangup buttons but I get a windows dialogue before my app runs sayingemulator.exe has stopped responding: Can anyone else get the emulator to run on 64 bit Windows 7 Professional? I have a 32 bit JDK and run 32 bit Eclipse 3.5. Thanks for any help Emulator runs just fine for me on 64 bit Windows 7. But I have seen emulator crashing when trying to debug. I could start it on it's own, but when I tried

Android Displaying FullScreen Slider Images

依然范特西╮ 提交于 2019-12-06 02:59:32
I have a gridviewImages dispalyed on Android screen. My Requirement is to Slide the FullScreen Images Here My code: ImageAdapter : public class ImageAdapter extends BaseAdapter { private Context mContext; // Constructor public ImageAdapter(Context c) { mContext = c; } public int getCount() { return mThumbIds.length; } public Object getItem(int position) { return null; } public long getItemId(int position) { return 0; } // create a new ImageView for each item referenced by the Adapter public View getView(int position, View convertView, ViewGroup parent) { ImageView imageView; if (convertView ==

phonegap doesn't work

两盒软妹~` 提交于 2019-12-06 02:49:44
问题 i have downloaded the phonegap example from its website.but it doesn't run.i can't find the reason.help me to get the solution please.when i run it shows "The Web page at file:///andriod_asset/www/index.html could not be loaded as: The requested file was not found.www/index.html" 回答1: I tried with three "///" instead of four, it worked for me. Give a try super.loadUrl("file:///android_asset/www/index.html"); 回答2: You've spelt android wrong here: HERE!!! file://>>>>>>andriod<<<<<<_asset/www