마켓 및 Tstore 업데이트 링크

[언어] Android 2015. 2. 20. 14:51
Intent marketIntent = new Intent(Intent.ACTION_VIEW);
marketIntent.setData(Uri.parse("market://details?id="+Constants.packageName));
startActivity(marketIntent);

market://details?id=kr.co.kimjaehyun.lotto520
market://search?q=pub:"JaeHyun.Kim"

https://market.android.com/developer?pub=JaeHyun.Kim
https://market.android.com/details?id=kr.co.kimjaehyun.lotto520


//SKT Tstore 설치 유무 확인
private boolean installTstore(){
try{
PackageManager pm = getPackageManager();
List< ApplicationInfo > appList = pm.getInstalledApplications( 0 );
ApplicationInfo app = null;
int nSize = appList.size();
for( int i = 0; i < nSize; i++ ) {
app = appList.get( i );
if(app.packageName.indexOf("com.skt.skaf.A000Z00040") != -1) {
return true;
}
}
return false;
}catch(Exception e){
return false;
}
}

if(installTstore()){
try{
String productCode ="0000248280";//상품 코드 샘플 0000017866
Intent intent = new Intent();
intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); //mandatory flag
intent.setClassName("com.skt.skaf.A000Z00040","com.skt.skaf.A000Z00040.A000Z00040");
intent.setAction("COLLAB_ACTION"); //action
intent.putExtra("com.skt.skaf.COL.URI","SEARCH_ACTION/0/연금복권520".getBytes()); //검색으로 이동
//intent.putExtra("com.skt.skaf.COL.URI","PRODUCT_VIEW/"+productCode+"/0".getBytes());//상품으로 이동
intent.putExtra("com.skt.skaf.COL.REQUESTER","A000Z00040"); //my App ID
startActivity(intent);        
}catch(Exception e){
}
}


'[언어] Android' 카테고리의 다른 글

Android Market Licensing Service  (0) 2015.02.20
QR Code  (0) 2015.02.20
ADMOB 페이팔 계정에 통장 등록  (0) 2015.02.20
decompile APK  (0) 2015.02.20
MODEL:XT720  (0) 2015.02.20
: