Android App Works on Mobile Device But not on Tablet Device -


i have application works on mobile device ,but when run same application on tablet device, i'm not able see layout file?

note: not getting error

update:i define layout xml file in separate res>layout folders like

1) layout

2)layout-large

3)layout -small

and resources in drawable-hdpi,drawable-ldpi, etc...

update1: andriodmanifest file:

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"       package="com.teluguone.torilt"       android:versioncode="1"       android:versionname="1">     <uses-sdk android:minsdkversion="8" />      <uses-permission android:name="android.permission.internet" />       <uses-permission android:name="android.permission.raised_thread_priority"></uses-permission>      <uses-permission  android:name="android.permission.wake_lock"/>        <uses-permission android:name="android.permission.status_bar" />      <uses-permission android:name="android.permission.write_external_storage"/>         <uses-permission android:name="android.permission.read_phone_state"/>     <uses-permission android:name="android.permission.access_network_state"/>     <supports-screens android:smallscreens="true"    android:normalscreens="true"    android:largescreens="true"    android:xlargescreens="true" />     <application android:icon="@drawable/trimg" android:label="@string/app_name" android:theme="@android:style/theme.notitlebar">      <activity android:name=".splash"                   android:label="@string/app_name"                   android:screenorientation="portrait">             <intent-filter>                 <action android:name="android.intent.action.main" />                 <category android:name="android.intent.category.launcher" />             </intent-filter>         </activity>         <activity android:name=".ltactivity"                    android:label="@string/app_name"                   android:screenorientation="portrait">         </activity>           <service android:name=".mediaplayerservice"                   android:label="@string/app_name">             <intent-filter>                 <action android:name="com.teluguone.torilt.mediaplayerservice" />                 <category android:name="android.intent.category.home" />             </intent-filter>         </service>                <activity android:name="com.google.ads.adactivity"                    android:configchanges="orientation|keyboard|keyboardhidden"                   />          <activity android:name="com.mdotm.android.ads.mdotmlandingpage"                   android:label="mdotm" >             <intent-filter>                 <category android:name="android.intent.category.browsable" />\             </intent-filter>         </activity>           <meta-data android:value="ce9849662b9844468e942e4e3de6e2c8"                     android:name="adwhirl_key"/>         </application> </manifest> 

could 1 suggest solution?

too difficult predict,however possibilities.whether have added android:hardwareaccelerated="true" in activities? , layout it's better write stuffs

res/values-xlarge

<resources> <bool name="tablet">true</bool> </resources> 

res/values

<resources> <bool name="tablet">false</bool> </resources> 

boolean tabletdevicesize = getresources().getboolean(r.bool.tablet);

if (tabletdevicesize) {

//use tablet 

} else {

//use mobile  

}


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -