By Oleg Mazurashu,on February 1st,2010% Here I want to share snippet of code which I found when I tried to get all services which are running in Android. It is very simple and useful. public class Main extends Activity{private static String APP_TAG = “tag”;@Override public void onCreate(Bundle savedInstanceState){super.onCreate(savedInstanceState);setContentView(R.layout.main);ActivityManager activityManager = (ActivityManager) getSystemService(ACTIVITY_SERVICE);List<ActivityManager.RunningServiceInfo> . . . →Read More:Showing running services in Android By Oleg Mazurashu,on January 13th,2010% How often do you want to see what kind of images are in android.R.drawable package? Personally,I very often look at them. And the big problem is to see them at first time,because you don’t know where they are. This post should resolve this problem. . . . →Read More:Viewing android.R.drawable images By Oleg Mazurashu,on December 23rd,2009% I want to show how you can get Android SDK version from code. It is very simple: String version = Build.VERSION.RELEASE; This one returns SDK version (2.0.1,2.0,1.6). int apiLevel = Build.VERSION.SDK_INT; This one returns API Level (6,5,4). If you’d like to get the latest posts as soon as they’re published, . . . →Read More:Checking Android SDK version By Oleg Mazurashu,on December 22nd,2009% Today I tried some ideas with camera in Android and found that there is an easy way to check if camera presents in Android device. . . . →Read More:Checking if camera presents in Android device By Oleg Mazurashu,on December 22nd,2009% There is an easy way for image rotating in Android from code. . . . →Read More:Image rotating in Android By Oleg Mazurashu,on December 18th,2009% Sometimes after some operations with image you want to save this image to the filesystem. How? Can I use FileOutputStream for this operation? Sure,you can. . . . →Read More:Image saving to the filesystem in Android By Oleg Mazurashu,on December 18th,2009% There are applications which should starts automatically after the Android phone is booted up. I am going to show how to create such application. . . . →Read More:Starting applications after boot up in Android By Oleg Mazurashu,on December 17th,2009% When you work with images in Android ,you can not only set this image as background image . Android allows a lot of things which you can do with an image object. Here I want to show how easy is to resize an image (Bitmap object) using Matrix class. This practice is very useful. . . . →Read More:Image resizing in Android By Oleg Mazurashu,on December 16th,2009% I have received some identical questions by e-mail. People ask me how to install non-market application in Android phone. It is simple,by default Android works only with applications from Android Market,for allowing to install non-market application need to configure Android phone:Settings->Applications->Unknown sources That’s all. As you can see it is very easy. . . . →Read More:Installing non-market application in Android phone By Oleg Mazurashu,on November 30th,2009% Sometimes you need to open browser with specific URI from your application. For example you want to show application’s page and so on. This operation is very simple. You need to use Activity as usual you use it for walking from one activity to other. In this post I am going to show snippet of . . . →Read More:Opening browser with specific URI in Android | A sample text widgetEtiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa. Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna,tincidunt vitae molestie nec,molestie at mi. Nulla nulla lorem,suscipit in posuere in,interdum non magna. | "If people do not believe that architecture is simple,it is only because they do not realize how complicated life is." - J.H. von Neumann |
Recent Comments