2016년 12월 23일 금요일

Solution for tablets on Google Play


Here is my solution to apps made ​​with app inventor will be downloadable for tablets on googelplay.

1: open your apk with AppToMarket and [Decompile]

2: Update the Manifest

3: Edit the Manifest with the following

<uses-sdk android:targetSdkVersion="0" android:minSdkVersion="11"/>

AND

android: xlargeScreens = "true"

4a: Create new APK

4b: Create an xml file called assets.xml

contents of assets.xml should be (if you have two images)

<? xml version = "1.0" encoding = "utf-8">
<Bitmap xmlns: android = "http://schemas.android.com/apk/res/android"
android: src = "@ assets/image1"
android: src = "@ assets/image2" />

5a: Open your apk file and in the RES folder add
drawable-hdpi
drawable-lhdpi
drawable-xhdpi
(add all drawable folders that you need)

5b: In every drawable folder, add your new assets.xml

6: Sign
7: Verify
8: Zip Align
9: detelet "Zip Align" from the name of your apk.
myapp_Zip_Align.apk to myapp.apk

10: Upload to Google Play

--

It is a pain here to create assets.xml if you have many pictures in your app.

QUESTION
Is there anyone who can create a script that automatically makes a assets.xml with referns to all the pictures you have in your assets folder?

In other words, an automatic created assets.xml with all image files ...

<? xml version = "1.0" encoding = "utf-8">
<Bitmap xmlns: android = "http://schemas.android.com/apk/res/android"
android: src = "@ assets/image1"
android: src = "@ assets/image2" />

-- 
You should not have target sdk of 0; targetSdk has to be >= minSdk

--
Why you think so?

android:targetSdkVersion
An integer designating the API Level that the application targets. If not set, the default value equals that given to minSdkVersion.
This attribute informs the system that you have tested against the target version and the system should not enable any compatibility behaviors to maintain your app's forward-compatibility with the target version. The application is still able to run on older versions (down to minSdkVersion).


--
If I use the Target SDK, example 13 and MinSDK 11, which I can reach?
all with API level 13-19

ORall of the API level 11-13
?

--
It says 'IF NOT SET'. However, in the example that was given, it is set as zero:

<uses-sdk android:targetSdkVersion="0" android:minSdkVersion="11"/>

--
Do I need a targetSDK?

If I only use

<uses-sdk android:minSdkVersion="11" />

I should reach API 11 and all above?

http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels

--

What values ​​(API Level) recommend you to to be able to reach as many users as possible (Phone, Tablet 7 "and tablet10" and above)?

<uses-sdk android:targetSdkVersion="0" 
android:minSdkVersion="11"/>


--
I use only minSDK.
My app collection and you can test: https://play.google.com/store/apps/developer?id=KuSSu

--
But your apps are 'declared' developed for the mobile phone, "which means they can not be found in any of Google Play categories on tablets. The only way to find them is to search the exact name of the app. What I aiming at is to be visible in the category store list in GooglePlay

One thing to do before the app is "visible" on "all" plattforms, is the


<uses-sdk android:targetSdkVersion="0" android:minSdkVersion="11"/>

--
Yes, my target right now is phones. But if I look to statistic then I have lot of Tablet users also :)

--
Am I right when I say that this string

<uses-sdk android:minSdkVersion="11"/>
Works for all APIs from 11 and up, and I do not need to have any android: targetSdkVersion

--
That would be correct. However, keep in mind that those devices with API lower than 11 won't see your app in the store.

--

If I'm not mistaken, if you have 2 version of the same app on the market


es. testapk vers 1.0
"android: minSdkVersion =" 3 "/" >
and
testapk vers 1.1
"< uses-sdk android: minSdkVersion =" 11 "/>"


the user with a old device will see and can download the version 1.0 as the user with the tablet version 1.1.


I want to add yet another thing. I have posted many app and even to me the message about the tablet that suggests a minsdkversion > = 11, though I have always left this string "android: minSdkVersion =" 3 "/" > and on my samsung 7 inch tablet I see pretty much the app on the market.

--
Hi, I'm using this procedure for my apps and I had just made a simple windows app that automatically creates the assets.xml file
Here it is: https://drive.google.com/file/d/0Bx4PAAZ3SNMdVmZsbUU1ZEFKbHc/view?usp=sharing

I'm considering to improve it with more automatisms, I'll see...
Let me know if you find this helpful, thanks

--
I forgot to say that at the moment it only works with png images
--
Hello, Since this was 2 years ago I am not sure if you can help? I have followed your instructions for making my app accessible to tablets but on Google Play still does not recognise.  Can I confirm: Target sdk = 0, Min sdk = 11?
I have added drawable folders with assets.xml to the res folder.
Can you helps?

--

댓글 없음:

댓글 쓰기