android-emulator

What is the error? New To Android Programming

血红的双手。 提交于 2019-12-11 12:26:31
问题 I am trying to implement a server client program to send message in Android.Can you please say me what are the errors in my code and how to rectify them? The server is running fine but the client program has one error. This is the server code and this is running fine. package com.app.MyServer; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.ServerSocket; import java.net.Socket; import android.app.Activity; import android.os.Bundle;

Google TV emulator hangs at google TV logo

喜夏-厌秋 提交于 2019-12-11 12:09:48
问题 I'm trying to run the Google TV emulator on Ubuntu 12.04. The emulator starts, but hangs at a screen with a Google TV logo in the center of it. I connected via adb and the log is looping with the following messages: I/CameraService( 1038): CameraService started (pid=1038) I/AudioFlinger( 1038): AudioFlinger's thread 0x9bb5a78 ready to run I/ServiceManager( 795): Waiting for service SurfaceFlinger... I/ServiceManager( 795): Waiting for service SurfaceFlinger... I/ServiceManager( 795): Waiting

Create new AVD, check both Snapshot and Use Host GPU

断了今生、忘了曾经 提交于 2019-12-11 11:53:59
问题 I managed to create an AVD, but I cannot check both the Snapshot and the Use Host GPU . What are the advantages of both? Why can't I use both? Vogella tells me that both speed up different parts of the process, so it makes sense to me that they should both be able to be used. 回答1: I think you can not; my AVD manager explicitly disallows it: From Android: why snapshots and gpu are mutually exclusive?: The Android emulator is based on QEMU, which has to simulate various hardware devices as

“Fatal Exception: main” and “Google Play services out of date” on emulator

ぐ巨炮叔叔 提交于 2019-12-11 11:48:01
问题 I am new to Android and I am trying to develop an android app that includes Google maps. The app was working fine on the emulator until I decided to update the Google Play services from revision 7 to 9. I now get the same error I encountered before ("Google Play services is out of date..."), plus a "fatal exception: main" error. Here is what I get in the logcat: http://imageshack.us/a/img11/8117/y1mq.png If I read the logcat correctly, the error is in the MapTabActivity but I don't know if

Android logcat errors

允我心安 提交于 2019-12-11 11:47:38
问题 I am new to Android, but not new to Java, and I am experienced with Eclipse. However, I just installed the newest Android SDK from developer.Android.com and installed in Eclipse 4.2 Java EE version with latest ADT. I went through the tutorial about installation, and ran the Hello World example in an emulator. The app seems to run fine. The Console output looks OK, But the LogCat is crazy with RED. Here's an example of some of the errors it outputs during a running session: Failed to open

GPS accuracy of Android Emulator

人走茶凉 提交于 2019-12-11 11:24:02
问题 I am developing a website which used W3C GeoLocation API to obtain users' position. I try to run the website in Android Emulator and use DDMS / geo fix to send the coordinate to the device. However the coordinate received is inaccurate. For example, (22.377127, 114.095535) will become (22.370335, 114.08523353). I try to run some Android GPS example from Internet, and the results is just the same. I can certainly say that this is not my program bug. From my observation, it seems like some

Android 9.+ emulator does not start

三世轮回 提交于 2019-12-11 10:58:34
问题 All AVD images work on my machine except for Android 9.+ (Google Play) & Android 9.+ (Google APIs) (the Android Studio emulator for Android Q beta). I just downloaded the most recent images. From android-Q/google_apis_playstore/x86/build.prop : ro.system.build.version.incremental=5506116 ro.system.build.version.release=10 ro.system.build.version.sdk=28 I am using Android Emulator version 29.0.11 . However, when I start these up, I see the device frame with a black screen. I get no error

send voice message to another contact number

こ雲淡風輕ζ 提交于 2019-12-11 10:57:48
问题 I have made a program, in which I am sending some text to pre defined contact number , but now I also want to send voice message to that number please let me know how can I do this? To send text SMS I am using below code:- String phoneNumber = "XXXX9"; String message = editLocation.getText().toString(); SmsManager smsManager = SmsManager.getDefault(); smsManager.sendTextMessage(phoneNumber, null, message, null, null); Toast.makeText(getApplicationContext(), "Message Sent!", Toast.LENGTH_LONG)

Having problem in retrieving data from res/xml/books.xml in android

。_饼干妹妹 提交于 2019-12-11 10:42:54
问题 Merged with Need help in reading an xml file. I am having problem in displaying data from an xml file which is in res/xml/books.xml Below is the code I am working with. It is suppose to work but in this case I cannot get the textview to check the id and then display the description in textview. Please if anyone could review the code and tell me what wrong here. Thanks <?xml version="1.0" encoding="utf-8" ?> <Books> <Number id ="1"> <Description>This is science book. </Description> </Number>

Support text in multiple screen size

北城余情 提交于 2019-12-11 10:37:07
问题 I have researched on many relevant topics but the topics mainly revolve around images. I had understand this: http://developer.android.com/guide/practices/screens_support.html but I don't really get the idea of dynamic resizing for the fonts. For images there's no problem, I used the ldpi, mdpi, hdpi and xhdpi. However for the fonts, I do not know how to resize them. Anyone? My codes is as followed: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android