android-manifest

Android simple service not starting

陌路散爱 提交于 2019-12-25 07:34:41
问题 My problem is in the question title, i'm trying to start/bind a simple service with just log in it and it's not working at all. I want to do it with Service Connexion method : public class testServiceBound extends Service { /** * PRIVATE ATTRIBUTES */ // log private static final String TAG = testServiceBound.class.getSimpleName(); private final Binder _binder = new testBinder(); @Override public void onCreate() { Log.i(TAG, "onCreate--"); super.onCreate(); } @Override public int

Reading build/outputs/logs File from Gradle/Android Studio

流过昼夜 提交于 2019-12-25 06:25:09
问题 I noticed my Android app was requesting to "Prevent phone from sleeping" when users installed it. I know I didn't add in any Wake_Lock but figured one of the 3rd party libraries did. After some googling, I found that I can find the merged Manifest file in the build/outputs/logs. I found the file and found a Wake_lock but wasn't sure who it was attributed to. Is it the lines above or below it that say who is requesting the Wake_Lock? Or better put is it being caused by Butterknife or Google

Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED] Android

会有一股神秘感。 提交于 2019-12-25 06:23:11
问题 I have looked every where for an answer to this. I have found many solutions for this error but it's not working for me. I have just started working with android 3 days ago. It was going great until today. I am getting this error Installing com.mycompany.myfirstapp DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.mycompany.myfirstapp" pkg: /data/local/tmp/com.mycompany.myfirstapp Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED] The solutions I have seen was about a capitol letter in

how to define the screen orientation before the activity is created?

一世执手 提交于 2019-12-25 05:37:10
问题 I defined my activity to only be in portrait mode by : android:screenOrientation="portrait" When I take a picture with the camera function via intent, take this picture in landscape mode and turn the screen to portrait mode when saving it, i return to my activity again. What I dont understand is, that my activity for a short time is in landscape mode, is destroyed and then built again in portrait mode... as my onCreate ond onRestore functions need some time, the waiting time for the user is

Can you restrict a specific Android API version from running/downloading app from googlePlay store?

我只是一个虾纸丫 提交于 2019-12-25 04:56:24
问题 Alright so I'm having this one problem with an app I'm working on and planning on releasing, but the problem is only occurring on one version of the android SDK (Version 4.1.1 API 16). Can I restrict JUST android version 4.1.1 API 16 from downloading and running my app? I know googlePlay has a restrict certain device list, but the problem is occurring because of the OS version, NOT the device, at least it seems that way from debugging... I also know there's the uses-sdk attributes in the

No internet access in signed APK

杀马特。学长 韩版系。学妹 提交于 2019-12-25 04:45:42
问题 I was working on an app that was working fine in the Debug build version and then I created a signed APK using keystore , and then with Android Studio --> Generate SIgned APK. When I install the signed APK manually by downloading on to my phone, it asks for all permissions including internet access. However post installation, app starts but none of the server calls / API calls are working. The phone has internet connection though (webpages open up in browser) My android manifest is : <?xml

Google Play Says Your Device isnt compatible with this application

守給你的承諾、 提交于 2019-12-25 03:51:20
问题 I tried all solutions for my problem. here is my manifest code <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.turk.bakistik" android:versionCode="1" android:versionName="1.0" > <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" /> <compatible-screens> <!-- all normal size screens -->

Get manifest file for a 3rd party app

落花浮王杯 提交于 2019-12-25 03:48:17
问题 This application allows you to browse applications' manifest files. How does it do that? I can't find anything in the OS's API for getting another application's manifest file. 回答1: First, you can get a list of Applications like so: PackageManager pm = getActivity().getPackageManager(); List<ApplicationInfo> apps = pm.getInstalledApplications( PackageManager.GET_META_DATA | PackageManager.GET_SHARED_LIBRARY_FILES ); Then the location of the APK can be gotten from: apps.get(x).publicSourceDir

Layout issue on HTC Sensation

青春壹個敷衍的年華 提交于 2019-12-25 03:36:07
问题 I have this Android layout: main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:id="@+id/mainContainer"> <ImageView android:layout_height="wrap_content" android:id="@+id/imageView1" android:src="@drawable/logo" android:layout_marginTop="30px" android:layout_marginBottom="50px" android:scaleType="fitCenter" android

Android Manifest for Galaxy Tablet 2

主宰稳场 提交于 2019-12-25 02:46:09
问题 I have those permissions in my manifest and the app doesn't show up when i launch the play store on galaxy tablet. From what I read so far, it points that filtering is done based on the device profile and hardware capabilities. The device i am testing is Samsung Galaxy Tab2 <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses