পোস্টগুলি

এপ্রিল, ২০১৭ থেকে পোস্টগুলি দেখানো হচ্ছে

Github: Push an existing repository from the command line

1. Create a GitHub account . 2. Now create a new repository (For Example:  WebServicesForAndroid ) 3. Open your terminal and go existing repository. $ cd /Applications/MAMP/htdocs/WebServicesForAndroid  4. Then run the following command one by one. $ git init $ git add . $ git commit -m "first commit" $ git remote add origin https://github.com/xyz/WebServicesForAndroid.git $ git push -u origin master

Android CountDownTimer

package countdown.aminulaust.com.countdown; import android.os.CountDownTimer; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.TextView; import android.view.View; public class MainActivity extends AppCompatActivity { TextView show ; CountDownT timer ; @Override protected void onCreate(Bundle savedInstanceState) { super .onCreate(savedInstanceState); setContentView(R.layout. activity_main ); show =(TextView) findViewById(R.id. show ); timer = new CountDownT ( 100000 , 1000 ); show .setText( "100" ); } public void start (View view){ timer .start(); } public void stop (View view){ timer .cancel(); } public class CountDownT extends CountDownTimer{ public CountDownT( long InMilisSeconds, long TimeGap){ super (InMilisSeconds,TimeGap); } @Override public void onTick( long l) { ...

Android : Double back press to exit

private static final int TIME_LIMIT = 1500 ; private static long backPressed ; @Override public void onBackPressed(){ if ( TIME_LIMIT + backPressed >System. currentTimeMillis ()){ super .onBackPressed(); } else { Toast. makeText (getApplicationContext(), "Press back again to exit" , Toast. LENGTH_SHORT ).show(); } backPressed = System. currentTimeMillis (); }

Android : Enable/Disable wifi programmatically

wifiOnOff =(ToggleButton) findViewById(R.id. toggleButton ); wifiOnOff .setOnCheckedChangeListener( new CompoundButton.OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { if (isChecked){ WifiManager onwifi= (WifiManager)getApplicationContext().getSystemService(Context. WIFI_SERVICE ); onwifi.setWifiEnabled( true ); } else { WifiManager offwifi= (WifiManager) getApplicationContext().getSystemService(Context. WIFI_SERVICE ); offwifi.setWifiEnabled( false ); } } }); Please add the following permission on AndroidManifest also < uses-permission android :name= "android.permission.ACCESS_WIFI_STATE" /> < uses-permission android :name= "android.permission.CHANGE_WIFI_STATE" />

Appcelerator : Add an Event to Device Calendar in Android

var intent = Ti . Android .createIntent({    action: Ti . Android . ACTION_INSERT_OR_EDIT ,     type : "vnd.android.cursor.item/event" }); Ti . Android .currentActivity.startActivity(intent); Helpful Link You can also add: intent.putExtra(name, value ); Appcelerator Docs

Welcome to the Appcelerator Platform ! At a Glance

The platform consists of several components: Appcelerator Studio  and  Appcelerator CLI : tools to create and develop your mobile and cloud applications. Alloy Framework  and the  Titanium SDK : an MVC framework and cross-platform SDK to help you rapidly develop mobile applications from a single code base. Axway API Builder : an opinionated framework to build and deploy APIs to the cloud that can be consumed by multiple clients. Appcelerator Dashboard : a web portal used to monitor your application's heath and usage. This dashboard is aimed at technical users. Appcelerator Platform Services : the set of features that includes free analytics services, and the performance management and automated testing services, which require an Enterprise subscription. Appcelerator Insights : an application used to monitor your application's metrics, which requires a Team subscription. This application is aim for business users. To start using the Appcelerator Plat...

Appcelerator : Add runtime permission for Android 6

function checkPermissionForCameraAndMicrophone() {     var cameraPermission = "android.permission.CAMERA";     var storagePermission = "android.permission.WRITE_EXTERNAL_STORAGE";     var recordPermission = "android.permission.RECORD_AUDIO";     var hasCameraPermission = Ti.Android.hasPermission(cameraPermission);     var hasStoragePermission = Ti.Android.hasPermission(storagePermission);     var hasRecordPermission = Ti.Android.hasPermission(recordPermission);     if (hasCameraPermission && hasRecordPermission && hasStoragePermission) {         return true;     }     return false; }; function requestPermissionForCameraAndMicrophone() {     var cameraPermission = "android.permission.CAMERA";     var storagePermission = "android.permission.WRITE_EXTERNAL_STORAGE";     var recordPermission = "android.permission.REC...