android-manifest

Is it possible to replace an existing Android free app with its paid version

旧时模样 提交于 2020-01-03 06:31:28
问题 Hi guys i have made an app free version and paid version. I was wondering that, Is there any way i can replace the free version with the paid version during istallation. * Consider this Scenario * The user has already installed the free version. Now he wants some added functionality which is only available in paid version. So he is redirected from app to google play where he buys and installs the paid version. Now he has the free and paid version but we know that he will now use the paid

Is there any local notification in Android?

别来无恙 提交于 2020-01-03 04:25:12
问题 In my application I want to use the Local Notification. I don't know is there any local notification available in Android or not. If yes then please give me any sample example to implement it. Thanks. 回答1: Android doesn't really have a distinction between remote (push in Apple terms) and local notifications. You don't get a box pop up or any UI at all for free with Android's C2DM. I think you just want to look at: http://developer.android.com/guide/topics/ui/notifiers/notifications.html http:

how to Add button to the camera preview android?

旧城冷巷雨未停 提交于 2020-01-03 02:39:07
问题 I am developing photography app my requrement is overlay effects to camera preview for that i developed code.in this code i overlay image to the surfaceview. public class OverlayLiveCamera extends Activity { Camera camera; LayoutInflater controlInflater = null; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); Preview mPreview = new Preview(this); DrawOnTop mDraw = new DrawOnTop(this); setContentView(mPreview);

My WebView does not fill the tabs' screens (but fills the cellphones' screens with no pb)

与世无争的帅哥 提交于 2020-01-03 00:54:09
问题 My app needs to instantiate a WebView that displays the content of a page of a website. It works perfectly with cellphones (I've tried with various HTC's and with a recent Samsung too) but it doesn't with tablets (Galaxy Tab, or Asus Eee Pad Transformer) : instead of filling the screen the WebView appears very small. Depending of the tabs, roughly 25% to 50% of the viewport is filled, the rest is blank. It looks a bit as if I was using WRAP_CONTENT instead of FILL_PARENT . The layout I'm

Conditionally add <activity> tag on AndroidManifest.xml using Gradle

瘦欲@ 提交于 2020-01-02 10:17:16
问题 I have an application that only have Services, Receivers and Activities that are not directly accessed by the use (there is no launcher activity). But now I have to add an activity to be used as launcher activity BUT this launcher activity must be present only when the app has some specific variables set during the BUILD. So basically, when calling the gradle build I set a variable HAS_LAUNCHER=1 and in my build.gradle I have something like: defaultConfig { ... def hasLauncher = System.getenv

App Indexing Android - “<link>” in “<head>” doesn't work

▼魔方 西西 提交于 2020-01-02 06:07:49
问题 We are struggling with the app indexing topic from google. The plan is to insert a tag in the -area of a website (crwaled from google) like this: android-app://com.testApp/myCustomScheme/car/ford and after that to visit this website with the smartphone and the app should open. But it isn't work... AndroidManifest: In the AndroidManifest we inserted following code: <intent-filter android:label="test"> <action android:name="android.intent.action.VIEW"/> <category android:name="android.intent

Having Trouble with Soft Keyboard

你离开我真会死。 提交于 2020-01-02 04:57:08
问题 Hi Everyone iam new to Android and stuck in really silly problem in my project i have one EditText which is defined in Header View of a List View whenever users touches the EditText soft keyboard will be displayed. i have something called clear button which clears the EditText After clearing soft keyboard is not displaying in 2.3 devices.Whenever i press lock/power button lock the device and unlock then soft keyboard is displaying <activity android:name=".pl.Mobile.AddJobNew" android

No resource identifier found for attribute 'hardwareAccelerated' when building with apache ant

佐手、 提交于 2020-01-02 03:44:07
问题 My app targeted to the android API level 7 (2.1) and under the Eclipse all work good (resulting APK also works fine on the 2.1 devices). I try to build app with the apache ant and got this error. All of the solutions for the same problems tells me that I must set another target API level. I want to simple ignore this attribute in manifest - as I find, in old devices it just ignored without any errors 回答1: I don't think it's possible to have hardware acceleration with API level less than 11.

Specifying a SEND (sharing) intent filter for a Service

六眼飞鱼酱① 提交于 2020-01-02 02:28:10
问题 I am trying to filter and handle intents with android.intent.action.SEND actions in one of my Service s. I wrote the following in my AndroidManifest.xml : <service android:name=".app.ScreamerService" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.SEND"/> <category android:name="android.intent.category.DEFAULT"/> <data android:mimeType="*/*"/> </intent-filter> </service> Now, the problem is that I don't see my application in the list of "share

Is the Application instance always created before any Activities?

主宰稳场 提交于 2020-01-02 02:02:49
问题 In Android, you can provide your own implementation of the Application class by extending it and declaring the name in the Manifest. My question is, will this implementation always be created before the initial Activity, or can Activities be launched before the Application instance has had time to be created? 回答1: will this implementation always be created before the initial Activity Yes. It is one of the first objects instantiated in your process. 回答2: Yes Application class is the first