小编Dis*_*ise的帖子

已安装android应用程序但未在屏幕上显示

我的应用程序也安装在真实设备上以及模拟器上,但它不会在我的设备屏幕上以及模拟器屏幕上显示.我的意思是在这里说,无论何时在设备上运行或安装应用程序,它都会打开但在这里我的应用程序不会打开它刚刚安装并且没有显示错误或强制停止不存在.我甚至检查了我的下载文件,其中显示了每个应用信息,并且它存在于那里.谁能帮忙???? 先感谢您.

这是我的清单文件

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

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

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <activity
        android:name="com.example.hide.MainActivity"
        android:label="@string/app_name" >
        <intent-filter>

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:name="com.example.hide.Info"
        android:label="@string/title_activity_info" >
        <intent-filter>
            <action android:name="com.example.hide.Info" />

            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>
    <activity
        android:name="com.example.hide.Help"
        android:label="@string/title_activity_help" >
        <intent-filter>
            <action android:name="com.example.hide.Help" />

            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>
    <activity
        android:name="com.example.hide.Next"
        android:label="@string/title_activity_next" >
        <intent-filter>
            <action android:name="com.example.hide.Next" />

            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>

</application>
Run Code Online (Sandbox Code Playgroud)

installation android

6
推荐指数
1
解决办法
9983
查看次数

Android基本编程

我想写一个公司的协议(长文本)并在应用程序在对话框中启动时加载它.我试过加载,但事情是它允许用户输入该协议上的文本.但我想要的是,它不应该允许用户编辑协议.

有什么建议吗?

public class MainActivity extends Activity {
EditText ed;

SharedPreferences sp;
SharedPreferences.Editor sped;


@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    ed=(EditText) findViewById(R.id.editText1);

    sp=getSharedPreferences("user", MODE_APPEND);
    sped=sp.edit();

}
@SuppressWarnings("deprecation")
public void ShowDialog(View v) {

    showDialog(1);


}
@SuppressWarnings("deprecation")
protected Dialog onCreateDialog(int id)  {

    switch (id) {
    case 1:
        AlertDialog.Builder builder= new AlertDialog.Builder(this);
        builder.setTitle("Did you read the policy?");
        builder.setCancelable(false);
        builder.setMessage("Please wait while we continue");
        builder.setPositiveButton("Accept", new OnClickListener() {

            @Override
            public void onClick(DialogInterface arg0, int arg1) {
                Toast.makeText(getBaseContext(), "You have accepted",
                        Toast.LENGTH_SHORT).show();
            } …
Run Code Online (Sandbox Code Playgroud)

java android

-2
推荐指数
1
解决办法
80
查看次数

标签 统计

android ×2

installation ×1

java ×1