android-manifest

Issues with creating new Android MainActivity

左心房为你撑大大i 提交于 2020-01-25 03:39:28
问题 I'm new to Android programming and am attempting to create a new Main Activity for my app (taken from the Android tutorial website). My original Main Activity is called "MainActivity". The new activity I want to be my Main Activity is called "Homepage" and it should contain a button that produces "MainActivity" upon clicking. I'm unsure what or where I'm supposed to include information in the manifest regarding the new page "homepage", homepage.xml, and the button. Specific code would be

MapActivity error: force close

怎甘沉沦 提交于 2020-01-25 01:56:05
问题 I created a new MapActivity class MapProba . From main Activity I want to show MapActivity : on button click event I put this code: Intent myIntent = new Intent(this, com.art.mode.MapProba.class); startActivity(myIntent); But I receive force close error. In my xml file I use this code: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content"> <com.google.android.maps.MapView android:id="@+id/map_view"

Android studio 3.5 refactor issue

我只是一个虾纸丫 提交于 2020-01-24 20:59:06
问题 I just updated my studio with android studio 3.5 and now when I am trying to refactor AndroidManifest.xml file and it is refactoring my all app permission to the bottom of my file. Have any one faced this issue? Is there any solution for this refactoring issue? Before refactor: After refactor: It is applicable to my all project files. Why it matters: 回答1: You just need to set xml layout for Android applications from the settings. Follow this steps: 1. Go to Android Studio > Preferences . For

How to make an app tablet compatible?

随声附和 提交于 2020-01-24 20:13:45
问题 I would like to make my app tablet compatible, I have read all about it and made sure none of the uses-feature are specific for phones and added supports-screens for all sizes (as you can see in my manifest). But still I see that playstore does not recognize my app as tablet compatible. Please provide me with a step by step instructions to help me solve this problem or a copy of a manifest that is compatible. (I have already looked for some opensource apps and they provide none of these tags

How to force Android application to reload the activity title corresponding to the language change?

我的梦境 提交于 2020-01-24 04:19:04
问题 How could force android application to reload activity title when the language of the application has been changed? For your information, the application reloads the title only when the device is rotated. Yet, the content of the activity is reload with the appropriate language content with no problem, but the activity title! In AndroidManifest.xml file, android:configChanges="locale" has been added with no success. <activity android:name=".layout.MainActivity" android:configChanges="locale"

Distance of two geo point android

不羁的心 提交于 2020-01-23 19:00:51
问题 I am new android application developer. I have create a mapview application where i need to calculate the distance of two geo point.How can i do that. 回答1: Use the Location.distanceBetween method: GeoPoint prev, current; float[] results = new float[3]; Location.distanceBetween(prev.getLatitudeE6()/1E6, prev.getLongitudeE6()/1E6, current.getLatitudeE6()/1E6, current.getLongitudeE6()/1E6, results); 来源: https://stackoverflow.com/questions/6283028/distance-of-two-geo-point-android

Refactoring package name breaks entire app

吃可爱长大的小学妹 提交于 2020-01-22 17:27:10
问题 I am trying to refactor my package using Eclipse org.sheehan.activity to org.sheehan.stocks.activity For some reason my project just blows up when I do this and R doesn't get regenerated. How can I refactor properly? UPDATE : I updated my Android Manifest to reflect the change. R still doesn't get regenerated. Even after a clean. The compiler is complaining about org.sheehan.activity.R 回答1: I resolved by: Android Tools > Rename Package Application 回答2: If you renamed properly, all your

Refactoring package name breaks entire app

女生的网名这么多〃 提交于 2020-01-22 17:27:07
问题 I am trying to refactor my package using Eclipse org.sheehan.activity to org.sheehan.stocks.activity For some reason my project just blows up when I do this and R doesn't get regenerated. How can I refactor properly? UPDATE : I updated my Android Manifest to reflect the change. R still doesn't get regenerated. Even after a clean. The compiler is complaining about org.sheehan.activity.R 回答1: I resolved by: Android Tools > Rename Package Application 回答2: If you renamed properly, all your

Manifest merger failed with Firebase Auth

风流意气都作罢 提交于 2020-01-22 16:33:25
问题 When I implement implementation 'com.google.firebase:firebase-core:17.0.0' implementation 'com.google.firebase:firebase-auth:18.0.0' The Manifest not Sync, Error message like this: ERROR: Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app

No Launcher activity found

你。 提交于 2020-01-22 03:41:10
问题 I can't find any problem but it keep giving me the error "No Launcher activity found!" and "The launch will only sync the application package on the device!" can anyone solve this problem??? This is my Maniest <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:name="com.example.saikoro.MainActivity" android:label="@string/app_name" > <intent-filter> <action android:name="android