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 ...

Linux

コマンド:
# yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel lib ...

IOS

参考コード:
– (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = ; ...

Android

Javaコード:
public static Bitmap drawableToBitmap(Drawable drawable) {
Bitmap bitmap = Bitmap.createBitmap(

Android

1.ファイル構成
res
|values
|settings.xml
|values-large
|settings.xml

2.res/values/settings.xml下記記 ...

Java

JAVAコード:
String secret = mConsumerSecret + “&” + mOauthToken;

SecretKey secretKey = new Sec ...

Android

Javaコード
public boolean onKeyDown(int keyCode, KeyEvent event) {

//戻るキー
if (keyCode == KeyEvent.KEYCODE_ ...

JavaScript

参考コード1:
#!/bin/bash
NAME = TEST
if id $NAME &>/dev/null ; then
echo “ユーザが既に存在する” ...

Linux

操作コマンド
#yum groupinstall “Development Tools” “Development Libaries”

#tar -xf KERNEL ...

Software

Javaコード:

/**
* @Title: isFirstStart
* @Description: TODO
* @param @param context
* @param @retu ...