Software Archive
Read-only legacy content
17061 Discussions

APK to Google Play to use in tablet

Hamilton_Tenório_da_
Valued Contributor I
1,434 Views

I am building APK with new Cordova building, but when I load the APK on Google Play, it says that the APP is not for tablet.

With this, it is not showed in Google Play when the user is on tablet.

What I need to do for fix it?

0 Kudos
8 Replies
Elroy_A_Intel
Employee
1,434 Views

You can also set your desired preferences in the intelxdk.config.additions.xml file. This file becomes available after you upload your code under the Build tab. Note: You do not need to build your project to have this file become available. 

Within this file, you can add the following line to target a particular device form factor:

<preference name="target-device" value="universal" />      <!-- all: possible values handset, tablet, or universal -->

An example Apache Cordova* config.xml containing "target-device" values on Github :
https://github.com/phonegap/phonegap-start/blob/master/www/config.xml

You can find more information about intelxdk.config.additions.xml file at https://software.intel.com/en-us/html5/articles/adding-special-build-options-to-your-xdk-cordova-app-with-the-intelxdk-config-additions-xml-file

0 Kudos
Hamilton_Tenório_da_
Valued Contributor I
1,434 Views

Hi Elroy,

Thank you for the answer. I tryed this and I confirmed in intelxdk.config.android.xml. The new information is there:

....
   <preference name="splashscreen" value="splash" />

    <!--creationInfo:{"src":"appStarter"}-->
    <preference name="target-device" value="universal" />
</widget>

But, after publish the new APK, the Google Play inform the same: this APP is not prepared to tablet.

What more I need to do?

 

0 Kudos
Elroy_A_Intel
Employee
1,434 Views

I recommend that you place this line in the additions file previously mentioned not the intelxdk.config.android.xml file. The android config file is written every time a build is initiated.

0 Kudos
Hamilton_Tenório_da_
Valued Contributor I
1,434 Views

Yes, I did that (insert a line in intelxdk.config.additions.xml). After the building I checked if that line was used. This line (in bold) was included automatically by the XDK during the building process:

....
   <preference name="splashscreen" value="splash" />
    <!--creationInfo:{"src":"appStarter"}-->
    <preference name="target-device" value="universal" />
</widget>

But... the Google yet says: "This APP do not was made for tablet".

 

0 Kudos
PaulF_IntelCorp
Employee
1,434 Views

On Android devices this problem is normally caused by a plugin that is requiring a feature that tablets do not support. Typically, this is something like requiring a cellular interface. One way to figure this out is to remove each plugin, one-by-one, from your app and try submitting it to the store between each build until you figure out which plugin is causing the problem. Knowing which plugin is causing the problem might allow us to come up with a specific solution.

0 Kudos
Hamilton_Tenório_da_
Valued Contributor I
1,434 Views

I made a lot of buildings with differents chooses of plugins. Even no plugin selected cause the same issue. Then, I started to analyse informations on Google Play, when I send a new APK. I get these information:

Recursos 4 recursos 
android.hardware.screen.LANDSCAPE
android.hardware.TELEPHONY
android.hardware.TOUCHSCREEN
android.hardware.WIFI

As you can see, there is a line about TELEPHONY. I think that is blocking run on tablet.

But there is no plugin about it. How I can disable these line? Can I put some string in intelxdk.config.additions.xml?

0 Kudos
PaulF_IntelCorp
Employee
1,434 Views

This is being caused by one of the xdk plugins, I believe it is the base or device plugin. We recommend that you move to using comparable Cordova plugins, those xdk plugins are being slowly deprecated in favor of more widely available equivalent Cordova plugins. With the Cordova plugins you also have full access to the source so you can customize them to your needs, including removing permissions that are interfering with your apps.

0 Kudos
Ramith_H_
Beginner
1,434 Views
You must submit screenshots of the tablet view of your app in order to get listed in the "designed for tablet" section
0 Kudos
Reply