android-manifest

Issue with GCM. Manifest malformed as a result of capital letter in package name

早过忘川 提交于 2020-01-13 03:12:06
问题 I have a problem when I try to add GCM in my application, when the package name starts with capital letter. The problem is in the code: <permission android:name="Myapplication.com.permission.C2D_MESSAGE" android:protectionLevel="signature" /> When you try to install it in the emulator the output is: install_parse_failed_manifest_malformed If you are starting a new application you can solve it changing the package name from "Myapplication.com" to "myapplication.com" (little letters), but if

Activity rotating itself and back to normal in android 8.1

放肆的年华 提交于 2020-01-12 07:20:12
问题 My App is running fine for all the android version but I have noticed that in Android 8.1.0 (Oreo) when I go the screen from portrait activity to landscape activity and when I press back button it shows the abnormal behavior. Screen auto rotate from landscape and returns it to normal. It looks like Activity is restarting itself. Below are the activities which is define in the manifest file. <activity android:name=".Home.TrainingsActivity" android:configChanges="keyboardHidden|orientation

Android Layout design principles [closed]

给你一囗甜甜゛ 提交于 2020-01-12 05:45:48
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I have been doing a lot of research on the best ways to design layouts for different screen sizes, screen density and orientations and I am getting increasingly confused. 1. Design Density vs Screen Size I have read this link Now when designing for gingerbread what should be

How to set Text Appearance in Android manifest file?

自作多情 提交于 2020-01-12 05:24:09
问题 Is it possible to do the equivalent of setTextAppearance(context, android.R.style.TextAppearance_Medium); in the manifest file for an Android app? 回答1: android:textAppearance="?android:attr/textAppearanceMedium" 来源: https://stackoverflow.com/questions/1726897/how-to-set-text-appearance-in-android-manifest-file

multiple apps, sharing same data directory

旧街凉风 提交于 2020-01-12 04:01:11
问题 my end goal is to have two apps, a "main" app (which will do all the work the user wants it to do), and a "licence" app, which will check if the app is licensed. my question is, how can i get my licence app (com.example.myapp.licence) to share the same data directory as my main app (com.example.myapp)?? 回答1: You need to modify manifest files for both apps, add the same 'android:sharedUserId' element to both manifest nodes. e.g. <manifest xmlns:android="http://schemas.android.com/apk/res

Android app with multiple activities

心不动则不痛 提交于 2020-01-12 03:27:11
问题 I have a very simple game that consists of only one activity, and I want to add a title screen. If the title screen is another activity, what changes do I need to make to my manifest file to make the title screen open first? The gameplay activity is called Leeder, and the title screen activity is called LeederTitleScreen here is my current manifest file. <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.nifong.leeder"

Android app with multiple activities

北城以北 提交于 2020-01-12 03:27:09
问题 I have a very simple game that consists of only one activity, and I want to add a title screen. If the title screen is another activity, what changes do I need to make to my manifest file to make the title screen open first? The gameplay activity is called Leeder, and the title screen activity is called LeederTitleScreen here is my current manifest file. <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.nifong.leeder"

Android Widget Bitmap Sizes

半城伤御伤魂 提交于 2020-01-11 19:54:33
问题 Hallo, I am writing a widget, but am unsure what size bitmap to use as a background for each screen resolution/density. According to the Android Developer App Widgets tutorial: To find your minimum width and height in density-independent pixels (dp), use this formula: (number of cells * 74) - 2 Following this formula, you should use 72 dp for a height of one cell, 294 dp and for a width of four cells So if my widget is 72dp x 294dp, what size bitmaps do I need for my ldpi, mdpi and hdpi

Android Widget Bitmap Sizes

為{幸葍}努か 提交于 2020-01-11 19:53:02
问题 Hallo, I am writing a widget, but am unsure what size bitmap to use as a background for each screen resolution/density. According to the Android Developer App Widgets tutorial: To find your minimum width and height in density-independent pixels (dp), use this formula: (number of cells * 74) - 2 Following this formula, you should use 72 dp for a height of one cell, 294 dp and for a width of four cells So if my widget is 72dp x 294dp, what size bitmaps do I need for my ldpi, mdpi and hdpi

Unable to start the Android Virtual AVD device

那年仲夏 提交于 2020-01-11 10:55:28
问题 I have successfully installed the Android SDK and also linked the SDK Manager to the SDK path. Then I have created the AVD of API 8 and it's done. But while I am going to start the Virtual Device it's not started and gives me error like "@foo" can not started, commend line error , and also give me hint: open @foo for virtual device . What exactly is 'foo'? 回答1: Spaces may be contained in the installation path of Android SDK. You may move it under a path with no space in it. 来源: https:/