Android应用程式的不当行为 [英] Misbehavior of Android application

查看:137
本文介绍了Android应用程式的不当行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Android Studio,我正在开发一个android应用程序,并使用我的HTC Desire C Device作为测试设备.现在,该应用程序已经可以使用我的HTC设备,并且可以正常使用了,但是即使配置相同但屏幕尺寸有所不同(大于4英寸),相同的应用程序也无法在其他设备上运行.

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>

推荐答案

您的问题太含糊.无法理解实际的问题是什么.我的建议是使用仿真器在屏幕大于4英寸的虚拟设备上测试您的应用,以便您查看会发生什么情况.可能您使用了不适合屏幕尺寸的固定版式,但我确实无法分辨.使用仿真器可以检查出这些内容.

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

祝你好运!
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!


这篇关于Android应用程式的不当行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆