2013-06-17 5 views
0

시스템 메모리가 아닌 애플리케이션 메모리의 특정 위치에 애플리케이션을 설치하고 싶습니다. 어떻게해야합니까?Android : 앱을 설치할 때 애플리케이션 메모리 위치를 지정하는 방법

Intent intent = new Intent(Intent.ACTION_VIEW); 
intent.setDataAndType(Uri.fromFile(new File(apkPath)), 
        "application/vnd.android.package-archive"); 
startActivity(intent); 
+0

당신이 원하는 : 응용 프로그램도

String sdCardPath = Environment.getExternalStorageDirectory().toString() + "/yourFolder" + "/yourFile.apk"; 

에 대한 설치 :

이 코드는 내가

 @Override protected void onListItemClick(ListView l, View v, int position, long id) { FileInformation information = files_list.get(position); Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.fromFile(new File(information.getPath())), "application/" + "vnd.android.package-archive"); this.startActivity(intent); } 
Riser

답변

0

SD 카드의 경로는

원하는 휴대 전화 메모리에서 선택한 응용 프로그램을 설치 SD 카드에 설치하십시오. ??
관련 문제