Month: May 2014
-
Android debugging: adb via tcp
Very simple instructions here on how to debug android apps via tcp.
-
New Android Studio is out!
New Android Studio is out! http://t.co/5yumHUIRls — Manuel Gomes (@tryexcept) May 31, 2014 via Twitter http://ift.tt/1tuJXWO May 31, 2014 at 04:53AM
-
Huge Vector Graphics Bundle Full of Useful Elements
Huge Vector Graphics Bundle Full of Useful Elements http://t.co/UdBoqjFVm2 — Manuel Gomes (@tryexcept) May 30, 2014 via Twitter http://ift.tt/1tuJXWO May 30, 2014 at 08:18PM
-
Xamarin: Design an app for Windows, iOS and Android … from one codebase?
Xamarin: Design an app for Windows, iOS and Android … from one codebase? http://t.co/zWE5Jc3Ztq — Manuel Gomes (@tryexcept) May 30, 2014 via Twitter http://ift.tt/1tuJXWO May 30, 2014 at 07:40PM
-
Quicky check if Data connection is available (Android SDK)
Just use the following method: public boolean isOnline() { boolean status=false; try{ ConnectivityManager cm = (ConnectivityManager) getActivity() .getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo netInfo = cm.getActiveNetworkInfo(); status=netInfo.isConnected(); }catch(Exception e){ e.printStackTrace(); return false; } return status; }
-
Android Toasts (e.g. small notifications), how to use in Fragments
The syntax is very simple. The example below is invoked from inside a Fragment, so the first parameter (Context) is the activity that holds the fragment: Toast.makeText(getActivity(),R.string.asset_added_fav,Toast.LENGTH_SHORT).show(); The second parameter is the message, the third is the duration, Toast.makeText returns an instance of Toast, that we “.show()” immediately.