android-emulator

google map display error

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 20:06:33
问题 hi i have working on google map application i have already apikey and also followed all the steps given in android developer but when i run the project it shows white grid screen but not shows the map on my emulator 回答1: Check this link for MapView . Also ensure that you have generated your API key correctly as per the Documentation. Check you have generated MD5 fingerprint of the debug keystore correctlt in its location. For generating API key check this link.. Also check you have included

Can't get Android App installed as System App on emulator to get past SecurityException for WRITE_APN_SETTINGS

痞子三分冷 提交于 2019-12-13 19:21:24
问题 I have an Android app which I want to use to set the APN settings. This requires the android.permission.WRITE_APN_SETTINGS permission, which is only granted to System apps or apps signed with the same private key as the OS itself. I'm only going to be using this on an emulator (or maybe a rooted device), so being able to actually deploy it to devices outside of my control isn't a concern. I'm building against and pushing to API 19. Despite pushing my APK to the /system/app/ directory and

Running Android 5.0.1 x86 virtual device with host GPU disabled

徘徊边缘 提交于 2019-12-13 19:17:47
问题 I am working on automating screenshots capture for one of my apps. Since I want to capture screenshots of some activities and widgets that differ according to the system locale, I start for each desired language a new Android virtual device (emulator) with the correct properties for setting the system locale. Then, specific user interactions are simulated with uiautomator. My workflow is working as expected but I have an issue with screenshots capture. Indeed, using UiDevice.takeScreenshot

emulator-x86.exe has stopped working after lauching

我们两清 提交于 2019-12-13 19:17:23
问题 I am using Android Studio in Windows 8.1 with 4 GB RAM; given 2 GB to virtual memory. But when ever I run the emulator I get the following: C:\Users\CSE\AppData\Local\Android\sdk\tools\emulator.exe -avd Android_API_21 -netspeed full -netdelay none emulator: device fd:828 HAX is working and emulator runs in fast virt mode emulator: warning: opening audio input failed creating window 0 0 384 729 emulator: emulator window was out of view and was recentered The emulator starts and suddenly stops

How to get data from database in my android table view as columns

こ雲淡風輕ζ 提交于 2019-12-13 17:17:13
问题 I have done following coding for deriving data's from table and displayed in the android view as a Table columns and rows. The Database coding is public List<Country> getAllCountry() { List<Country> countryList = new ArrayList<Country>(); //select query String selectQuery = "SELECT * FROM COUNTRY_LIST"; SQLiteDatabase db = this.getWritableDatabase(); Cursor cursor = db.rawQuery(selectQuery, null); for (cursor.moveToFirst(); !cursor.isAfterLast(); cursor.moveToNext()) { Country country = new

Is Android development possible on netbooks? [closed]

我的梦境 提交于 2019-12-13 16:42:38
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I would like to use my netbook for Android development, but when I try to run the SDK with Eclipse, nothing loads. Are netbooks generally powerful enough for Android development? Why or why not? 回答1: It's hard to see where the line for a netbook is drawn, but i'm do develop on my "netbook", but it does have 3Gig

add ListFragment with FragmentTransaction is not supported?

痞子三分冷 提交于 2019-12-13 16:17:11
问题 I have a ListFragment : public class MyListFragment extends ListFragment{ ... } In order to use Fragment in my Android 2.1 API 7 project, I use the support package. (Everything has configured for the support package) In my host Activity looks like: import android.support.v4.app.FragmentActivity; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; public class FragmentNavActivity extends FragmentActivity { @Override public void onCreate(Bundle

Android Null Pointer Exception when connecting Interfaces

匆匆过客 提交于 2019-12-13 16:09:16
问题 Hi guys I´ve tried to connect two different interfaces on my app with the following code public class HelloForms extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); final ImageButton button = (ImageButton) findViewById(R.id.android_button); button.setOnClickListener(new OnClickListener() { public void onClick(View v) { //Perform action on clicks

Android simulate low data signal strength

╄→гoц情女王★ 提交于 2019-12-13 15:20:04
问题 I'm having some trouble with an application with our users complaining that under low signal strength, they're having issues with using the app. Is there any way I can simulate this on an emulator? Thanks, Teja. 回答1: I know in DDMS in the Emulator Control tab, there's a section at the top where you can set the data/voice limitations. Maybe setting data to EDGE or something similar would do the trick? 回答2: Would setting to 'Airplane Mode' help ? 来源: https://stackoverflow.com/questions/7045136

Android Emulator boots with different resolution

谁说胖子不能爱 提交于 2019-12-13 15:06:17
问题 At times my AVD boots up with a higher resolution than it is supposed to , I do not modify any of the settings before running it. Also when restarted it boots up with the right resolution. Although not critical it does waste sometime. 回答1: I am not sure why it does but i just edited the details before launching and enabled launch from snapshot option. This did fix the issues and remembers previous settings. Also if you are launching emulator from command like you can specify -scale 0.8 if you