Click here to Skip to main content
15,895,740 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Using Android Studio i'm developing a android application and using my HTC Desire C Device as a testing device. Now the application is ready and working fine with my HTC Device but the same application is not working on another devices even with the same configuration but having difference in screen size (larger than 4 inch).

Application Properties

apply plugin: 'com.android.application'

android {
    compileSdkVersion 21
    buildToolsVersion "22.0.1"

    defaultConfig {
        applicationId "com.example.isandeep.MyApp"
        minSdkVersion 14
        targetSdkVersion 21
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:22.1.1'
    compile files('src/libs/ksoap2-android-2.5.2.jar')
    compile files('libs/httpmime-4.1.3.jar')
    compile files('libs/httpcore-4.3.2.jar')
}

android Manifests

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.isandeep.MyApp" >

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.CALL_PHONE" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name=".MainActivity"
            android:label="@string/app_name"
            android:screenOrientation="portrait"
            android:windowSoftInputMode="adjustPan">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
Posted
Updated 27-May-15 0:14am
v2

1 solution

Your question is too vague. It is not possible to understand what the actual problem is. My advice would be to test your app using the emulator using a virtual device with a screen larger than 4" so you can check out what happens. Probably you use fixed layouts that don't adapt to screen sized but I'm really unable tell. Using the emulator you can check those things out.

http://developer.android.com/tools/debugging/debugging-ui.html[^]

Good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900