Android

Javaコード:
Uri packageURI = Uri.parse(“package:com.android.startnews24”);
Intent uninstallIntent = ...

Android

Javaコード:
public static boolean isIntentAvailable(Context context, String action) {
final PackageManager packa ...

Android

Javaコード:
//SDカードから画像リソースを取得
private List getImagePathFromSD() {

//画像リスト
List picList = new ArrayLis ...

Android

Javaコード:
private List getImage(){
PackageManager packageManager = this.getPackageManager();
Intent intent ...

Android

Javaコード:
Uri STORAGE_URI = Images.Media.EXTERNAL_CONTENT_URI;

データの挿入:
view plaincopy
ContentValues ...

Android

Javaコード:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContent ...

Android

Javaコード:
public static boolean checkNetwork(){
//ネットワーク接続をチェック
final NetworkInfo info = mConnectivity.get ...

Android

Javaコード:
public void getApkInfo(){
String apkPath =”/sdcard/startnews24com_calendar.apk”;
Pac ...

Android

Javaコード:
MediaPlayer player = new MediaPlayer();
try {
player.setDataSource(WebMusic.this, Uri.parse(R ...

Android

Javaコード:
@Override
public void onAttachedToWindow() {
//TODO Auto-generated method stub
this.getWindo ...

Android

Javaコード:
private PackageManager mPackageManager;
mPackageManager = getPackageManager();
Drawable d = mPac ...

Android

TextView下線を付ける:
mTextView.getPaint().setFlags(Paint.UNDERLINE_TEXT_FLAG|Paint.ANTI_ALIAS_FLAG);

TextView枠線を ...

Android

Javaコード:
public boolean onTouchEvent(MotionEvent event) {
//touchメソッドを実行
super.onTouchEvent(event);
r ...

Android

サンプルコード:
PowerManager mPowerManager = (PowerManager) getSystemService(POWER_SERVICE);
PowerManager.WakeLock m ...

Android

サンプルコード:
DecimalFormat formater = new DecimalFormat(“#0.##”);
System.out.println(formater.format( ...

Android

Javaコード:
public class ServiceReceiver extends BroadcastReceiver {
public void onReceive(Context context, Inte ...

Android

サンプルコード:
if(searchTask.getStatus() == AsyncTask.Status.RUNNING){
searchTask.cancel(true);
}
searchTas ...

Android

PopupWindowを表示:
public void showPopupWindow(){
Context context = PopupWindowCalendar.this;
LayoutInflater ...