L
Lucius1972
Neues Mitglied
- 0
Hallo Leute,
Ich habe eine .apk runtergeladen und moecht diese installieren, sobald "Install"
angeklikt wird passiert aber nichts, der Installer oeffnet nicht.
Kan mir bitte Jemand weiterhelfen?
Logcat:
Hier die Manifest:
Ich habe eine .apk runtergeladen und moecht diese installieren, sobald "Install"
angeklikt wird passiert aber nichts, der Installer oeffnet nicht.
Kan mir bitte Jemand weiterhelfen?
Logcat:
Code:
12-25 12:14:42.740: W/PackageParser(19347): No actions in intent filter at /storage/emulated/0/mammie/test/test.apk Binary XML file line #22
12-25 12:14:42.752: W/ResourceType(19347): No known package when getting value for resource number 0x7f020000
12-25 12:14:42.752: W/PackageManager(19347): Failure retrieving resources for com.x3m.aow3: Resource ID #0x7f020000
Code:
public class ViewApplicationActivity extends CasaActivity implements OnClickListener {
//
case R.id.view_application_install: {
final File apk = Util.getApk(downloadedItem.getDirectory());
final Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(apk), "application/vnd.android.package-archive");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
}
//
}
Code:
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="org.casa.android"
android:versionName="@string/app_version"
android:versionCode="9">
<uses-sdk
android:minSdkVersion="4"
android:targetSdkVersion="21" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RAISED_THREAD_PRIORITY" />
<application
android:icon="@drawable/icon"
android:label="@string/app_name">
<activity
android:configChanges="keyboard|keyboardHidden|orientation"
android:name=".Main"
android:launchMode="singleTop">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".application.ApplicationActivity"
android:configChanges="keyboard|keyboardHidden|orientation"
android:exported="false">
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".application.ImageViewActivity"
android:configChanges="keyboard|keyboardHidden|orientation"
android:exported="false">
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".categories.CategoriesActivity"
android:configChanges="keyboard|keyboardHidden|orientation"
android:exported="false">
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:configChanges="keyboard|keyboardHidden|orientation"
android:name=".forum.ViewForumActivity"
android:exported="false" >
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".latest.LatestReleasesActivity"
android:configChanges="keyboard|keyboardHidden|orientation"
android:exported="false">
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".myapplications.MyApplicationsActivity"
android:configChanges="keyboard|keyboardHidden|orientation"
android:exported="false">
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".myapplications.ViewApplicationActivity"
android:configChanges="keyboard|keyboardHidden|orientation"
android:exported="false">
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".myapplications.installed.UpdateSearchResultActivity"
android:configChanges="keyboard|keyboardHidden|orientation"
android:exported="false">
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".search.SearchActivity"
android:configChanges="keyboard|keyboardHidden|orientation"
android:exported="false" >
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".application.replies.RepliesActivity"
android:configChanges="keyboard|keyboardHidden|orientation"
android:exported="false" >
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".settings.SettingsActivity"
android:configChanges="keyboard|keyboardHidden|orientation"
android:exported="false" >
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".downloads.DownloadsActivity"
android:configChanges="keyboard|keyboardHidden|orientation"
android:exported="false" >
<intent-filter>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
<service android:name=".common.UpdaterService"/>
<service android:name=".common.downloads.DownloaderService"/>
</application>
</manifest>