Welcome To Snipplr


Everyone's Recent Java Snippets Tagged android



The right way (According to Google I/O-10) to use getView with the convertView-param within a custom adapter class.
0 1951 posted 15 years ago by Raevonium
This is a current side project. I make changes (mainly adding new things) about once a week (when I have time). Notes: GUI in XML(not here), Eclipse Android plug-in, some images not here
0 3048 posted 15 years ago by ehrenb
This is the simpliest way to make toast
0 1611 posted 15 years ago by dzr_gregory
0 1719 posted 15 years ago by arunmishra07
This creates a rounded rectangle (10x20) with a given color (such as #AABBCC) as a drawable, which you can later use anywhere (I use it in TextView.setCompoundDrawables).
0 1717 posted 15 years ago by Znupi
0 1762 posted 15 years ago by hmvrulz
You need to create a new package android.bluetooth in your project, and add the files: IBluetooth.aidl y IBluetoothCallback.aidl from the android source code
0 2973 posted 15 years ago by efor18
A RestClient class for calling webservice using both, get and post methods, and getting the response dropped into an String.
0 1485 posted 15 years ago by luixal
0 2979 posted 15 years ago by hongster
Code Snippet of showing dialog and toast in Android application.
0 1545 posted 15 years ago by rso
0 1738 posted 15 years ago by noklpopl
0 1672 posted 15 years ago by phantomas
0 1709 posted 15 years ago by cautionsign
Create a Home activity.
0 1709 posted 15 years ago by funkypanda
0 1718 posted 16 years ago by sospartan
Remove the title bar from the activity. (note : the title bar >< notification tray)
0 1510 posted 16 years ago by funkypanda
0 1301 posted 16 years ago by Kingcron
The Android ID (a unique 64-bit value) as a hex string. It is null on the emulator.
0 1487 posted 16 years ago by Kingcron
a 2-lines code to start a phone call from your Android application
0 1861 posted 16 years ago by funkypanda
2 lines of code to start the browser form your Android application.
0 1719 posted 16 years ago by funkypanda
0 1777 posted 16 years ago by arpit