android-manifest

Why should I Sign my Application APK before release

徘徊边缘 提交于 2020-01-20 16:57:21
问题 Can anybody please inform what is the exact importance of signing an APK before releasing. 回答1: From the Android Documentation for Signing Applications: The Android system requires that all installed applications be digitally signed with a certificate whose private key is held by the application's developer. The Android system uses the certificate as a means of identifying the author of an application and establishing trust relationships between applications. The certificate is not used to

Selectively disable an Android service for certain API levels

夙愿已清 提交于 2020-01-20 08:24:29
问题 My Android app supports API 8+, however the Parse library seems to break completely on APIs less than 10 (and even a little bit on 10 too). I know how to disable blocks of code on certain API levels, but is there a way that a <service> declared in AndroidManifest.xml can be selectively enabled only for API 11+? (it also gets started up by the BOOT_COMPLETE <intent> which would also need to be disabled) 回答1: Step #1: Create a res/values/bools.xml file, with a bool resource named i_can_haz

Selectively disable an Android service for certain API levels

耗尽温柔 提交于 2020-01-20 08:22:05
问题 My Android app supports API 8+, however the Parse library seems to break completely on APIs less than 10 (and even a little bit on 10 too). I know how to disable blocks of code on certain API levels, but is there a way that a <service> declared in AndroidManifest.xml can be selectively enabled only for API 11+? (it also gets started up by the BOOT_COMPLETE <intent> which would also need to be disabled) 回答1: Step #1: Create a res/values/bools.xml file, with a bool resource named i_can_haz

Broadcast Receiver on Nexus 7

↘锁芯ラ 提交于 2020-01-16 14:34:23
问题 I am trying to write a service that runs on phone boot, and must read data off the SD card. At first I was using a reciever for android.intent.action.BOOT_COMPLETED but switched to the intent below to make sure that the SD card has been loaded. My Issue is that on a my Nexus 7, it doesn't appear to receive the MEDIA_MOUNTED intent. The Nexus 7 doesn't have an SD card (but it has separate SD card partition). I also tried the BOOT_COMPLETED intent, with the same luck. I have tested the same

Android app calls MAIN/LAUNCHER again, instead of onResume()

久未见 提交于 2020-01-15 20:24:00
问题 when my android app - Activity B - is moved to the background (by the user pressing the android home button), it is still alive, onStop() was called as expected. Activity B has not been destroyed here, but when the user clicks on the app's icon again, it calls the intent-filter MAIN and LAUNCHER again, starting Activity A, instead of calling onResume() on Activity B. so the launch activity is shown - Activity A - , but if the user presses android back button, then launch activity finishes() ,

Android app calls MAIN/LAUNCHER again, instead of onResume()

孤街醉人 提交于 2020-01-15 20:21:18
问题 when my android app - Activity B - is moved to the background (by the user pressing the android home button), it is still alive, onStop() was called as expected. Activity B has not been destroyed here, but when the user clicks on the app's icon again, it calls the intent-filter MAIN and LAUNCHER again, starting Activity A, instead of calling onResume() on Activity B. so the launch activity is shown - Activity A - , but if the user presses android back button, then launch activity finishes() ,

Android app calls MAIN/LAUNCHER again, instead of onResume()

倾然丶 夕夏残阳落幕 提交于 2020-01-15 20:19:12
问题 when my android app - Activity B - is moved to the background (by the user pressing the android home button), it is still alive, onStop() was called as expected. Activity B has not been destroyed here, but when the user clicks on the app's icon again, it calls the intent-filter MAIN and LAUNCHER again, starting Activity A, instead of calling onResume() on Activity B. so the launch activity is shown - Activity A - , but if the user presses android back button, then launch activity finishes() ,

Android - Launching widget manager from market

蹲街弑〆低调 提交于 2020-01-15 15:30:27
问题 I'm pretty sure this is a newb question but I can't quite figure it out. I have a simple application which works as a widget, I use an ImagesWidgetProvider for all widget operations and once installed, it is not displayed as amongst the other applciations and therefore the 'open' button is greyed out once user has downloaded this. The problem is, some users fail to read the app description that clearly explains how to add a widget to their homescreen which results in 1 star ratings along with

Android - Launching widget manager from market

跟風遠走 提交于 2020-01-15 15:30:18
问题 I'm pretty sure this is a newb question but I can't quite figure it out. I have a simple application which works as a widget, I use an ImagesWidgetProvider for all widget operations and once installed, it is not displayed as amongst the other applciations and therefore the 'open' button is greyed out once user has downloaded this. The problem is, some users fail to read the app description that clearly explains how to add a widget to their homescreen which results in 1 star ratings along with

ActivityNotFoundException: Unable to find explicit activity class service

天大地大妈咪最大 提交于 2020-01-15 15:29:28
问题 This is how my MainActivity and RecorderService Java class files looks like. I'm adding the AndroidManifest file too. MainAcitivity.java protected void onCreate(Bundle savedInstanceState) { btnSendSOS.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { sendSMS(); Intent intent = new Intent(getBaseContext(), RecorderService.class); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); finish(); new CountDownTimer(5000, 1000) { @Override