fbpx
Pages Navigation Menu

Coding is much easier than you think

Android Updates

Advertisements

Android Min SDK Version vs Target SDK Version

Posted by on Apr 14, 2013 in Android | 3 comments

Android Min SDK Version vs Target SDK Version

  The android manifest file contains the following related to SDK version,   <uses-sdk android:minSdkVersion=”integer”  android:targetSdkVersion=”integer”  android:maxSdkVersion=”integer” /> The detailed explanations for the 3 attributes are explained below followed by an example.   minSdkVersion   ** UPDATE: Android Complete tutorial now available here.   An integer designating the minimum API Level required for the application to run. The Android system will prevent...

read more

Problems understanding Android XML layout_weight

Posted by on Apr 14, 2013 in Android | 0 comments

Problems understanding Android XML layout_weight

Weight attribute in android for your views determines how long it is stretched within the layout of an activity. The weight attribute can be best understood in case of linear layout (Orientation – Vertical) Consider the following examples, where weight is added to 2 buttons and each time the views are arranged in different fashion for the same value of weights. In the above example let’s see each case one by one. Figure 1: Button 1 is not given any weight. Button 2 (wrap content) is given a weight of 1. So the button 1...

read more

what is pdu in android

Posted by on Apr 3, 2013 in Android | 0 comments

what is pdu in android

  A PDU is a “protocol data unit”, which is the industry format for an SMS message. because SMSMessage reads/writes them you shouldn’t need to disect them. A large message might be broken into many, which is why it is an array of objects.   ** UPDATE: Android Complete tutorial now available here.   PDU, or protocol data unit, refers to one method of sending information along cellular networks. SMS messaging, as described in the 3rd Generation Partnership Project  (3GPP) Specification, supports two different...

read more

what is pending intent in android

Posted by on Apr 3, 2013 in Android | 3 comments

what is pending intent in android

  A Pending Intent specifies an action to take in the future. It lets you pass a future Intent to another application and allow that application to execute that Intent as if it had the same permissions as your application, whether or not your application is still around when the Intent is eventually invoked. It  is a token that you give to a foreign application which allows the foreign application to use your application’s permissions to execute a predefined piece of code.   ** UPDATE: Android Complete tutorial now available...

read more

how to send sms in android application

Posted by on Apr 3, 2013 in Android | 0 comments

how to send sms in android application

The android.telephony package contains the SmsManager and SmsMessage classes. The SmsManager defines many important SMS-related constants, and also provides the sendDataMessage, sendMultipartTextMessage, and sendTextMessage methods. As long as your app is configured with proper permissions to send text messages (using the android.permission.SEND_SMS permission) you can send text messages to whoever you like SmsManager to send SMS messages   ** UPDATE: Android Complete tutorial now available here.   Example:1 sendTextMessage (...

read more

Make an HTTP request with android

Posted by on Apr 3, 2013 in Android | 0 comments

Make an HTTP request with android

Let us retrieve data using HTTP GET requests to a simple HTML page, using the standard java.net API. Then, let us learn to use the Android-included Apache HttpClient API. After we use HttpClient directly to get a feel for it, we wi€™ll also make use of a helper class, HttpRequestHelper, that you can use to simplify the process and encapsulate the details. This class and the Apache networking API in general, has a few advantages over rolling your own networking with java.net, which will be illustrated shortly. The helper class is used...

read more

how to convert apk file to source code

Posted by on Mar 29, 2013 in Android | 6 comments

how to convert apk file to source code

  Step 1: Make a new folder and put .apk file in it (which you want to decode). Now rename the extension of this .apk file to .zip (eg. rename from filename.apk to filename.apk.zip) and save it. Now you get classes.dex files, etc. At this stage you are able to see drawable but not java & xml files, so continue.   ** UPDATE: Android Complete tutorial now available here.   Step 2: Now extract this zip apk file in the same folder. Now download dex2jar from this link dex2jar and extract it to the same folder. Now open command...

read more

LEARN TO CREATE AND USE AVD’s (ANDROID VIRTUAL DEVICES)

Posted by on Mar 28, 2013 in Android | 0 comments

  Android applications can be run on the android devices. You can either connect hardware to the system to test the application or you can use the android virtual devices (AVD) Manager to create/manage the virtual devices running on emulator to run the application. It is most preferred to use AVDs to test the application. Before running the application, here is a quick view of what an android virtual device(AVD) is and what an AVD manager is. AVD – An Android Virtual Device (AVD) is an emulator configuration that lets you model an...

read more

what is canvas in android

Posted by on Mar 27, 2013 in Android | 0 comments

what is canvas in android

  Canvas is graphics component in android which does the job of calling Draw method and drawing the shape. According to android documentation , The Canvas class holds the “draw” calls. To draw something, you need 4 basic components: A Bitmap to hold the pixels, a Canvas to host the draw calls (writing into the bitmap), a drawing primitive (e.g. Rect, Path, text, Bitmap), and a paint (to describe the colors and styles for the drawing).   ** UPDATE: Android Complete tutorial now available...

read more

Error Inflating class com.google.android.maps.MapView – Android Error

Posted by on Mar 23, 2013 in Android | 0 comments

It can be solved it by the following 2 steps: 1) Put the following line in the application (important) element of AndroidManifest.xml file. <uses-library android:name="com.google.android.maps" /> 2) extend MapActivity instead of Activity. enjoy!

read more
%d bloggers like this: