Android: launch android dialer with mobile number Get link Facebook X Pinterest Email Other Apps December 26, 2016 Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse("tel:" + mContactNo.getText().toString())); startActivity(intent); Get link Facebook X Pinterest Email Other Apps Comments
network request using urlconnection February 22, 2017 try { String response = null ; URL url = new URL( url ); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); String payload = "{ \" pageSize \" :30, \" pageNumber \" :1, \" currentPriceRanges \" :[], \" filters \" :{ \" newArrivals \" :false, \" onSale \" :false, \" articleType \" :[], \" filterBy \" :{ \" Brand \" :[]}}, \" isFiltersRequired \" :true, \" source \" : \" listing \" , \" collections \" :[ \" FL-Top Nav-ALL-Mens Shirts \" ]}" ; connection.setDoInput( true ); connection.setDoOutput( true ); connection.setRequestMethod( "POST" ); connection.setRequestProperty( "Accept" , "application/json" ); connection.setRequestProperty( "Content-Type" , "application/json; charset=UTF-8" ); OutputStreamWriter writer = new OutputSt... Read more
change svg android drawable color March 06, 2017 private void changeSearchDrawable() { Drawable drawable = ResourcesCompat. getDrawable (getResources(), R.drawable. icon_search , getTheme()); int colorVal; if (Build.VERSION. SDK_INT >= Build.VERSION_CODES. M ) { colorVal = this .getResources().getColor(R.color. nnnow_pink , getTheme()); } else { colorVal = this .getResources().getColor(R.color. nnnow_pink ); } drawable.setColorFilter(colorVal, PorterDuff.Mode. SRC_ATOP ); check .setImageDrawable(drawable); } Read more
Android: command line actions with telnet March 10, 2011 telnet for localhost(emulator) telnet localhost 5554 to make a call: gsm call 900800 to send SMS: sms send 890890 text Read more
Comments
Post a Comment