Android, an open source operating system for mobile devices (Smartphone and tablet), led by Google. The Android SDK provides a set of tools and APIs to develop Android applications, using Java. So, if you know Java, Android programming is easy 🙂
In this series of tutorials, we show you the list of basic tutorials to get you start program Android easily.
All Android tutorials are developed in Eclipse 3.7, and tested with Android 2.3.3.
P.S This is just the initial version of Android tutorials, will keep publishing more in future.
1. Quick Start
Get you start in Android programming.
- Android hello world example
Tools and SDK to develop Android applications.
2. Fundamentals
Some Android basic stuffs.
- Android activity example
Understand Android’s activity, a simple example to navigate from one screen (activity) to another screen (activity). - Android wrap_content and fill_parent example
The different between wrap_content and fill_parent to control the component’s width and height. - Attach Android source code to Eclipse IDE
Android source code is important to understand how Android works, a guide to attach Android’s source code to Eclipse IDE.
3. User Interface Controls
Play with Android UI controls.
- Android button example
Use “Button” to display a simple button. - Android textbox example
Use “EditText” to render an editable textbox component. - Android password example
Use “EditText” + inputType=”textPassword” to render a password component. - Android checkbox example
Use “CheckBox” to render the checkbox component. - Android radio buttons example
Use “RadioButton” and “RadioGroup” to render radio button component in the group. - Android toggle button example
Use “ToggleButton” to render a button which has only two states (On and Off). - Android rating bar example
Use “RatingBar” to render a rating bar in stars icon. - Android spinner (drop down list) example
Use “Spinner” to render a drop down box for selecting items. - Android date picker example
Use “DatePicker” and “DatePickerDialog” to render a date picker component. - Android time picker example
Use “TimePicker” and “TimePickerDialog” to render a time picker component. - Android analogclock and digitalclock example
Use “AnalogClock” and “DigitalClock” to render a clock like component, which supports hours, minutes and seconds. - Android progress bar example
Use “ProgressDialog” to display a progress bar in dialog to tell us that your task takes time to finish. - Android alert dialog example
How to display an alert box. - Android prompt dialog example
Custom AlertDialog example. - Android custom dialog example
Custom Dialog example. - Android Toast example
Custom Toast view example. - Android ImageView example
Use “ImageView” to display an image file. - Android ImageButton example
Use “ImageButton” to display a button with a customized background image. - Android ImageButton selector example
Use “Button” and “selector” tag to display buttons’ images depend on the button states.
4. Layouts
Play with Android layout controls.
- Android LinearLayout example
Most common layouts, arranges components in horizontal or vertical order. - Android RelativeLayout example
Most flexible layouts, arranges components based on the “relative” or sibling component. - Android TableLayout example
Most flexible layout, arranges components in row and column format, just like HTML table , <tr> and <td>. - Android ListView example
Display components in a vertical scrollable list. - Android GridView example
Display componenets in a two-dimensional scrolling grid. - Android WebView example
Allow you to open an own windows for viewing URL or custom html markup page.
5. FAQs
Some common asked questions in Android.
- How to open an URL in Android’s web browser
- How to set default activity for Android application
- How to make a phone call in Android
- Where to download Samsung Galaxy S2 USB driver?
- Android debugging on real device
- Android – How to center button on screen
- How to turn on/off camera LED/flashlight in Android
- Android : how to check if device has camera
- How to send SMS message in Android
- How to send Email in Android
- Android : The connection to adb is down, and a severe error has occurred.
thank u its vry use full.
i want to knw how to store the data in android can u please help
Really this is a very useful post for android users. Thanks for sharing these nice informations. Click here for Telegram channels .
Really a very good tutor.
How can I just append one Audio files to another in android studio
i want to join the discussion am still a student but i need some help from you
Sir can you show us how to built a hotel room booking application?
Could you help me to understand how to implement the mvp patter on android applicacion using fragments?
i am very beginner in android. your tutorial is very helpful for me. now, i need some tutorial on current location automatically store in database using SQlite. Please give me some tutorial.
Thank you very much. Very helpful for me :))))
private void ApiCall() {
String url = Common.ROOMS;
Uri.Builder builder = Uri.parse(url).buildUpon();
builder.appendQueryParameter(“user_id”, userId);
builder.appendQueryParameter(“key”, key);
String apiurl = builder.build().toString();
StringRequest strRequest = new StringRequest(Request.Method.GET, apiurl,
new Response.Listener() {
@Override
public void onResponse(String response) {
try {
JSONObject jsonObject = new JSONObject(response);
if (jsonObject.getString(“status”).equals(“1”)) {
if (roomModelList.size() > 0) {
roomModelList.clear();
}
JSONObject jsonObject1 = jsonObject.getJSONObject(“data”);
JSONArray jsonArray = jsonObject1.getJSONArray(“floors”);
for (int i = 0; i < jsonArray.length(); i++) {
JSONObject jsonObject2 = jsonArray.getJSONObject(i);
JSONArray jsonArray1 = jsonObject2.getJSONArray("rooms");
for (int j = 0; j < jsonArray1.length(); j++) {
JSONObject jsonObject3 = jsonArray1.getJSONObject(j);
RoomModel roomModel = new RoomModel();
roomModel.setRoomId(jsonObject3.getString("room_id"));
roomModel.setRoomName(jsonObject3.getString("room_name"));
roomModel.setRoomStatus(jsonObject3.getString("room_status"));
roomModel.setRoomimage(jsonObject3.getString("room_image"));
// Log.d("room image", "———-" + jsonObject3.getString("room_id") + "——————" + jsonObject3.getString("room_image"));
JSONArray jsonArray2 = jsonObject3.getJSONArray("switch_boards");
List switchBoardModelList = new ArrayList();
for (int k = 0; k < jsonArray2.length(); k++) {
JSONObject jsonObject4 = jsonArray2.getJSONObject(k);
SwitchBoardModel switchBoardModel = new SwitchBoardModel();
switchBoardModel.setSwitchBoardId(jsonObject4.getString("switch_board_id"));
switchBoardModel.setSwitchName(jsonObject4.getString("switch_board_name"));
switchBoardModelList.add(switchBoardModel);
JSONArray jsonArray3 = jsonObject4.getJSONArray("switches");
List switchModelList = new ArrayList();
roomModel.setSwitchBoardModelList(switchBoardModelList);
for (int l = 0; l < jsonArray3.length(); l++) {
JSONObject jsonObject5 = jsonArray3.getJSONObject(l);
SwitchModel switchModel = new SwitchModel();
switchModel.setSwitchId(jsonObject5.getString("switch_id"));
switchModel.setSwitchName(jsonObject5.getString("switch_name"));
switchModel.setSwitchType(jsonObject5.getString("switch_type_id"));
switchModel.setSwitchState(jsonObject5.getString("switch_state"));
switchModel.setIsFavourite(jsonObject5.getString("is_favourite"));
switchModel.setIsScheduled(jsonObject5.getString("is_scheduled"));
switchModel.setFanSpeed(jsonObject5.getString("regulator_value"));
switchModel.setScheduleId(jsonObject5.getString("schedule_id"));
switchModelList.add(switchModel);
}
roomModel.setSwitchModelList(switchModelList);
}
roomModelList.add(roomModel);
}
}
Common.roomModelList = roomModelList;
layoutManager = new GridLayoutManager(getActivity(), 2);
recyclerView.setLayoutManager(layoutManager);
roomsAdapter = new RoomsAdapter(roomModelList, getActivity());
recyclerView.setItemAnimator(new FadeInUpAnimator(new OvershootInterpolator(1f)));
recyclerView.setAdapter(roomsAdapter);
swipeRefreshLayout.setRefreshing(false);
}
} catch (JSONException e) {
e.printStackTrace();
}
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
swipeRefreshLayout.setRefreshing(false);
// Toast.makeText(mContext, "" + "Please Login again", Toast.LENGTH_SHORT).show();
}
});
AppController.getInstance().addToRequestQueue(strRequest);
}
sorry wrong comment
Very informative and well formatted useful article. Well done job Mkyong! For beginners I would suggest short guide to develop basic android app easily. Look into ace blog
hello sir i want to make some animations by clicking button in my layout can u please help me in that
Do you have any angular js tutorials.
must visit
http://www.javaproficiency.com/2015/09/android-tutorial-for-beginners.html
Your Tutorial are really very helpful.please help me in following code.how to get Location in Android??Please provide the code sir??
Great tutorials; by far the clearest to follow and easy to grab code snippets.
Keep up the good work, much appreciated.
thank you very much…..I am [email protected]
????????
?????????????
? ?????
It is really helpful!
The examples posted here are very helpful for my app development.. But i’m really stuck here..
i.e. I have two activities A and B.. which has a radiogroup each.. if i select a combination f,,one from A and one from B , it should direct to the next activity (i.e Activity C ) accordingly….Is there any way u can help me in this..????
Thanks in advance 🙂
Its Really Very Useful For Me..
ok so what we can do,,,
haha
you are awesome!
i know i m awwsome…….
bdw thanks…
hi im trying to develop android app where i have a launcher activity as main activity with login through google in third screen i’ve register button on register button click i want to open fourth activity as launcher activity but im unable please guide me.I wrote the intent in restart method but when app is killed its going to main activity
mat kar pagli itna kaam
Still interesting after a couple of years. WOuld be great to update for Android Studio.
HI All
I would like to dis display list of questions by the user and Answers given by others for the corresponding Questions.
On click My Questions it should display the list of Questions.If we click on each question it should display the Answers given by others in Android.Have any body done this earlier.if so,Can you please help me out?
hi sir ,
in the menu content no hibernate tutorial link .please add that one
To get Android installed, you can follow the instructions mentioned here –
http://www.allprogrammingtutorials.com/tutorials/android-sdk-installation-instruction.php
SIr I want to wirte a bluetooth application that scan and pair for incoming connection.If paired is complete I want to show message with Toast and change activity.And then,I want to be buletooth serial chatting.
To learn about basics of android visit here http://www.j2eebrain.com/android-tutorial
Find Hundreds of Libraries, Tools, Plugins and Resources for Android Development from Android-Libs.com
Sir, how can i add a multiple paragraph in a text view?
I used string.xml. even i uses n , i couldnt add more than some lines. how can i rectify it?
Provide Android tutorial for MS Sqlserver / External Database connectivity…. Login Application
Please Update the Android Tutorials with more examples
sir please tell me how insert the button into the alert dialog box….
i am very beginner in android. your tutorial is very helpful for me. now, i need some tutorial on database using SQlite. Please give me some tutorial.
1) http://www.tutorialspoint.com/android/android_sqlite_database.htm
2) http://pulse7.net/android/sqlite-database-android/
Hope It Might help you..
Thank u for your tutorials. i need a tutorial on how to call Images in Android app from webservices.
Hi,
I am trying to develop one small application in android which displays
list of songs from specified path from sdcard or system path
can u please help me out sir…
really nice tutorial Android basic tutorial for kitkat 4.4
Hi
I working with android database can you help me??
Really Usefull For Me. .
If we want to learn java,core java,tomcat, your blog is the best place to learn and executing some real time apps.
Playing with Android controls, shifting between different screens, choosing layouts. After a tutorial such as this, a person who had prior experience with Java should be able to set up email or debug a real device.
Hi..
I need to develop an app which consists as follows:
The wifi of my android phone should automatically on/off according to my saved location in the mobile.
please help me …
Thank you..
what is context in android?????
[email protected]
HOW EXACTLY CAN I SHOW NAME COLUMN OF TABLE IN LISTVIEW.
HERE IS MY CODE
package
com.jogidroid.testingcabsproject;
import java.io.IOException;
import java.sql.Date;
import
org.apache.http.client.HttpResponseException;
import org.json.JSONArray;
import
org.json.JSONException;
import org.json.JSONObject;
import
org.ksoap2.SoapEnvelope;
import
org.ksoap2.SoapFault;
import
org.ksoap2.serialization.PropertyInfo;
import
org.ksoap2.serialization.SoapObject;
import
org.ksoap2.serialization.SoapPrimitive;
import
org.ksoap2.serialization.SoapSerializationEnvelope;
import
org.ksoap2.transport.HttpTransportSE;
import
org.xmlpull.v1.XmlPullParserException;
import
com.sqlitedatabase.DatabaseHandler;
import
android.app.Activity;
import android.content.ContentValues;
import
android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import
android.widget.TextView;
import
android.widget.Toast;
public class GetVehiclesActivity extends Activity {
private static String SOAP_ACTION = “http://tempuri.org/GetServerVehicles”;
private static String NAMESPACE = “http://tempuri.org/”;
private static String METHOD_NAME = “GetServerVehicles”;
private static String URL = “http://favouritehatfield.co.uk/Service1.asmx?”; // “http://www.favouritehatfield.co.uk/Service1.asmx”;
private TextView txtV_vehicles;
private long clientid=46;
private String response;
private DatabaseHandler Objdbhandler;
@Override
protected void onCreate(Bundle
savedInstanceState) {
// TODO Auto-generated
method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.getvehicles);
/** Show Toast at
the Start of Activity… **/
Toast.makeText(this, “WELCOME to
GET VEHICLES ACTIVITY..”, 1).show();
txtV_vehicles = (TextView)
findViewById(R.id.txtV_lbl_vehicles);
Objdbhandler = new DatabaseHandler(this);
}//End onCreate()
private class vehiclesAsyncTask extends AsyncTask{
@Override
protected void onPostExecute(Void
result) {
// TODO Auto-generated
method stub
super.onPostExecute(result);
txtV_vehicles.setText(response);
}//End
onPostExecute()
@Override
protected void onPreExecute() {
// TODO Auto-generated
method stub
super.onPreExecute();
}//End
onPreExecute()
@Override
protected Void
doInBackground(Void… params) {
// TODO Auto-generated
method stub
SoapObject
getVehiclesRequest = new SoapObject(NAMESPACE, METHOD_NAME);
// add paramaters
and values
PropertyInfo
pi = new PropertyInfo();
pi.setName(“defaultclientId”);
// pi.setValue(clientid);
pi.type= PropertyInfo.LONG_CLASS;
getVehiclesRequest.addProperty(pi,46);
PropertyInfo
pi2 = new PropertyInfo();
pi2.setName(“hashKey”);
// pi.setValue(clientid);
pi2.type= PropertyInfo.STRING_CLASS;
getVehiclesRequest.addProperty(pi2,”464321orue”);
// getVehiclesRequest.addProperty(“defaultclientId”,
46);
// getVehiclesRequest.addProperty(“hashKey”,
“464321orue”);
SoapSerializationEnvelope envelope
= new
SoapSerializationEnvelope(SoapEnvelope.VER12);
envelope.setOutputSoapObject(getVehiclesRequest);
envelope.dotNet = true;
HttpTransportSE httpTransport = new HttpTransportSE(URL);
//httpTransport.debug = true;
try {
httpTransport.call(SOAP_ACTION, envelope);
} catch
(HttpResponseException e) {
// TODO Auto-generated
catch block
e.printStackTrace();
}
catch (IOException e) {
// TODO Auto-generated
catch block
e.printStackTrace();
}
catch
(XmlPullParserException e) {
// TODO Auto-generated
catch block
e.printStackTrace();
}
try {
SoapPrimitive
result = (SoapPrimitive) envelope.getResponse();
response = result.toString();
Log.i(“response”, response + “”);
JSONObject
jsonObject;
try {
// jsonObject
= new JSONObject(response);
// Log.i(“jsonObject”,
jsonObject + “”);
// Getting JSON
Array from response
JSONArray
jsonArray = new JSONArray(response);
for (int i = 0; i <
jsonArray.length(); i++) {
JSONObject
res =
jsonArray.getJSONObject(i);
// Storing JSON item in a Variable
String
Id=res.getString("Id");
String
Name=res.getString("Name");
String
TotalPassengers=res.getString("TotalPassengers");
String
TotalHandLuggages=res.getString("TotalHandLuggages");
String
TotalLuggages=res.getString("TotalLuggages");
String
SortOrderNo=res.getString("SortOrderNo");
Log.i("Id", Id);
Log.i("Name", Name);
Log.i("TotalPassengers", TotalPassengers);
Log.i("TotalHandLuggages", TotalHandLuggages);
Log.i("TotalLuggages", TotalLuggages);
Log.i("SortOrderNo", SortOrderNo);
Objdbhandler.saveVehicles(Name,
TotalPassengers, TotalHandLuggages, TotalLuggages, SortOrderNo);
}//End for loop
}
catch (JSONException e) {
// TODO Auto-generated
catch block
e.printStackTrace();
}
}
catch (SoapFault e) {
// TODO Auto-generated
catch block
e.printStackTrace();
}
return null;
}//End
doInBackground
}// End
vehiclesAsyncTask
/** Called when the
user clicks the GetVehicles button */
public void getVehicle(View v) {
String str = "You have clicked GetVehicles
…";
Toast.makeText(this, str, 0).show();
vehiclesAsyncTask
vehiclesRequest = new vehiclesAsyncTask();
vehiclesRequest.execute();
}//End getVehicle()
public void listViewBtnClick(View v) {
Intent
i = new Intent(this,ListVehicleActivity.class);
startActivity(i);
}
//End
listViewBtnClick
}//End class
GetVehiclesActivity
how to create login page in android with internal database connectivity?
dear kalm down bcoz no one can give your answer……
very useful
goo tutorials
nice
yes it is realy good tutotrials
yes
df
efd
ds
This site could be very useful for beginner: http://android-arsenal.com
nice tutorials
good
Sir …can i display date in gridview like calender (sun11th mon12th tus13th…)like this …
hi sir,iam Ramesh.b iam doing dummy project of metro trins in this iam using two spinner one is source station another one is destination stations when iam click find trains button i want open another page display train timings. same as it is if select different source and different destination display like that pages please help me
hi frds how create sudoku grid in android eclipse
Thank u very much for your demos. It’s very helpfull!
Tell somethink about Databases please 🙂
Your tutorials are amazing. Could you please make tutorials on mySQLite database and how to save data from radio buttons, date picker and the likes.
Sir, I’m a computer science student can you teach me how to create a simple media player for my project. thank you
i m also
I think you need to check this
https://google.github.io/ExoPlayer/guide.html
Its an open source media player by google. Hope it helps.
Respect u sir.. #heads of..f
abe pagle rulayega kya ????
Nice Tutorials..But still need Sqlite db ,Webservices,Xml parsers,Orientation changes ,How to create dynamic layout via Java code ,Fragmentation,Gmaps ,Camera etc ..We want more
hello sir, i need to know how can i connect android application to server. Please can u help me by sending mail..
email id- [email protected]…
How can i randomly change the current activity Layout when i click a Button ? i don’t really know how and where to start coding.
According to me.. There might used “Random” function! You have to create some .xml file for switch activity. Than in the pass the value of that all activities through loop in RANDOM()’s obj u can change according to the requirements.
Here is the syntax of Random():-
http://developer.android.com/reference/java/util/Random.html
please check this code what is wrong with this code, when i scroll listview randomly checkboexes selected at random position automatically….
I will be thankful for your kind help…………
private class ListAdapter extends BaseAdapter implements CompoundButton.OnCheckedChangeListener {
private SparseBooleanArray mCheckStates;
LayoutInflater inflater;
ViewHolder viewHolder;
CheckBox cb;
public ListAdapter(Context context) {
mCheckStates = new SparseBooleanArray(arrayContacts.size());
inflater = LayoutInflater.from(context);
}
@Override
public int getCount() {
// TODO Auto-generated method stub
return arrayContacts.size();
}
@Override
public Object getItem(int position) {
// TODO Auto-generated method stub
return position;
}
@Override
public long getItemId(int position) {
// TODO Auto-generated method stub
return position;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
// TODO Auto-generated method stub
View rowView = convertView;
if (rowView == null) {
inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
rowView = inflater.inflate(R.layout.listview_row, null);
cb = (CheckBox) rowView.findViewById(R.id.checkox);
cb.setTag(position);
cb.setChecked(mCheckStates.get(position, false));
cb.setOnCheckedChangeListener(this);
viewHolder = new ViewHolder();
viewHolder.txtName = (TextView) rowView.findViewById(R.id.txtdisplaypname);
rowView.setTag(viewHolder);
}
else{
viewHolder = (ViewHolder) rowView.getTag();
}
viewHolder.txtName.setText(arrayContacts.get(position).getContactName().trim());
return rowView;
}
you are masters of android,
thank you sir
really helpful!! 🙂 🙂
but u wanted to learn action bar usage in android??
hello.
can you tell me how can i login and register in my application using asp.net web-services ?
Great tutorial set thank you
http://android-tutorials1.blogspot.in/
hi mkyong
i’ve a class library in c#.net and i want to import this dll into eclipse project and use it function in android activity,
how can i do it?
Hi,
I have a text box. But I want to connect my phone’s contact list to this Text-box.
So, when user clicks on this text box, he can select the contacts available.
On top of this, I would like to have multiple selection of contacts within the same text box.
Can you please guide.
Thanks
Saurabh
user content provider to get contacts from android phone
How to create dynamic area chart using real time data and graph will be move left to right continuously???
how can i download Android E-books and softwares to biuld Android App for free of cost….
Android Developer? StartApp offers the best app monetization and now you get a great sign up bonus! . It is an icon ad network, and they pay on per download basis.
Get bonus $15 for the first 1000 downloads with my referral link here: http://startapp.com/rf4hfnr
Your site is very useful to learner for android developer. I learned android from yuor site. I am very much disappoint because you didn’t update your android tutorial for long time. I am waiting for updated tutorial much for ……
good tutorial sir mkyong can you give me and example of auto test responder
Hi,
These are very good tutorials on Android. I am myself an Android developer and create android games. You can check my website http://www.nerdyguru.com for the tutorials on andengine games.
There is also good tutorial on http://www.luvcelebs.com
Thank you sooooo much for tutorials ! Perfect website !
For Google Tranlaters this is Portuguese – Brazil.
Rapaz, seu site é realmente incrÃvel… Adorei. Acabei de me formar e estou iniciando alguns projetos em Android. Simplesmente adotei grande parte do seu material.
Conte comigo caso precise de ajuda para editar algum arquivo ou post.
Um Abraço!
sir, i’m an I.T student and i want to make an android apps for reservation using MySQL database. and i don’t have any background of java. can you please help me.
can you show me the code of adding products/reserving using android and by using MySQL database….thank you very much…
Mkyong sir,
how can i connect my app to wifi for controlling things .?
can you please give some example of it.
I wanted to thank you for this good read!! I definitely loved every
little bit of it. I have got you book-marked to look at new things you post…
Great!! thanks so much Yong.. Have a look at this http://www.compiletimeerror.com/2013/07/android-tutorials.html for more tutorials..
Can you tell me how to access list collection from asp.net web service into android application.i am trying using ksoap.jar file but problem is that web service is working fine but i can’t get that list collection in android app.please give me replay as soon as possible
plz plz plz ………. sir .I am the student of computer science ..
already thnkx sir …
i learn andriod of you plz….
sir if u can please show the code about XML parser,JSON parser,u give the simplest way to solve the problem please,thanx in advance
The site is very helpful but it can be much better if the part of database connectivity has also been covered in these tutorials.
yeah.. I’m agree with you..
Hey great work …..can you help me with parser tutorials of SOAP and JSON used in web service integration
Thanks…
This nice tutorial. but sir can you put web services request and responses example with explanation that would be help for us a lot.
Thanks
This website is very useful for Beginners in Android. I would suggest to refer this site.
Hi sir
I want to send digital serial via Bluetooth to my MicroCont .can you please sent a prog for this.
thanking you
send me your email and i will share. i have done it till sending serial out. serial recieve still to do
Excuse me sir how can i set sender email id?
Hi ,
How to send Image from android apps to Server using Socket datainputstream, In server receive the image & store it drive , I tried alot but it not help me out please help me out
thanks
bhagavath
Hi
VerYYyyyyyyy thanKS :X
Hi
the application xxx has stopped unexpectedly please try again
what is solution of the android pro………..
Try this it’ll help u
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
StrictMode.setThreadPolicy(policy);
hello ,sir can you help me to create a photo albums and how i can add albums to classify photo !!!! 🙂
Sir, your tutorials are very helpfull for me.
but i need a tutorial on framents.
can you please give the tutorial on fragments
you can see fragment tutorial here
http://androidfreakers.com/androidtutorial/android-fragment-example/
It might help you.
Domain is for sale now …
It is great tutorial, thanks sir for Support.
sir,i want to take some string data from user and process them in database using php and mysql no sqlite and return the result to the application……pls help me ..i am new to android…..
Really helpful.Thank you very much .
hi,
i’m very glad to see this link. i have already get enough idea on spring-jsf from your site,now time for android.
Thanks for your excellent support
Great tutorial I am new in android and its vary help full ……
Thanks
sir I need a help regarding
I want to display multiple(4) buttons randomly on screen
every button created in java file extend views
plllllllzzzzzzzzzzzzzz help
hi guys i want to know how to comvert a program to .apk file,
and even i tried these steps -> project_name -> bin -> .apk file….. but its not working..
and even i tried export to android project then also im getting error like “failed because of parsing in package” so anyone help me out of this
Im a follower of your website and its really useful for me till now. I have a doubt, as like IF I WANT AN OVERLAY IN MY ANDROID APP ON ALL ACTIVITIES, what should i do, will be helpful if u make an example
I found your blog pretty cool, keep posting these kind of articles. You really helped me, i have a good start with android, thanks a ton.
great tutorials, direct and to the point
please post more
when will other tutorial for android will be posted?? I am waiting for next tutorial desperately
great tutors broda, im wait and still follow for next
Hi Mkyong i m making a project in mobile tracking with android application n data of that would sent to php server . Can u plzzzzzzz help me in my project by providing source code it’s very urgent. Any type of help would be a great boon.. . Continue with ur good works bye……………….
SKobu I may try to help you.Please drop in your email.
Nice tutorial to get started…!
Hello Sir , these are very good tutorials and are in understandable way..thank u very much for that.
I have a query to ask you. I donot know its a small task or big task .but Suppose i have 20 lines of a text. In that when i click on some word it should popup an alert..
For instance lets take some text
“When I had a financial setback in the early 1990s, I saw it
more as an “ABBERATION ” from the norm than as a final sentence. I
knew what it was like to be whole, and all I had to do was get
back to that place.”
In the text when i click or touched the word ABBERATION (quoted and capitalized ) in above text it should give me a pop-up with my own text ( i’ll write while coding)
I know one way is writing the text in set message method (alert.setMessage (“”)) but i donot want to write for each word in the text..can you please tell me the way to solve this problem..
I have one more que to as but not now..
Thankyou and love to here back with your reply…Have a Great Day 🙂
Hi,
This is possible through
.
Check this out:
http://developer.android.com/reference/android/text/Spannable.html
http://stackoverflow.com/questions/7338697/android-development-how-to-replace-part-of-an-edittext-with-a-spannable
Hello sir, i’m making an android app. which is totally in “hindi(language)”, in which i need, hindi fonts,hindi onscreen keyboard in emulator, i need help, how i use hindi fonts and how i add hindi onscreen keyboard in emulator
package grimbo.android.demo.slidingmenu;
import grimbo.android.demo.slidingmenu.MyHorizontalScrollView.SizeCallback;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.ResponseHandler;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.params.HttpConnectionParams;
import org.apache.http.params.HttpParams;
import org.apache.http.params.HttpProtocolParams;
import org.apache.http.util.EntityUtils;
import org.json.JSONArray;
import org.json.JSONObject;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.text.Html;
import android.text.Spanned;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.Button;
import android.widget.HorizontalScrollView;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.Toast;
/**
* This demo uses a custom HorizontalScrollView that ignores touch events, and
* therefore does NOT allow manual scrolling.
*
* The only scrolling allowed is scrolling in code triggered by the menu button.
*
* When the button is pressed, both the menu and the app will scroll. So the
* menu isn’t revealed from beneath the app, it adjoins the app and moves with
* the app.
*/
public class HorzScrollWithListMenu extends Activity
{
final String KEY_TAG = “weatherdata”; // parent node
final String KEY_ID = “id”;
final String KEY_CITY = “city”;
final String KEY_TEMP_C = “tempc”;
final String KEY_TEMP_F = “tempf”;
final String KEY_CONDN = “condition”;
final String KEY_SPEED = “windspeed”;
final String KEY_ICON = “icon”;
// List items
ListView list;
BinderData adapter = null;
List<HashMap> weatherDataCollection;
MyHorizontalScrollView scrollView;
View menu, demo,profile;
View app;
ImageView btnSlide;
boolean menuOut = false;
Handler handler = new Handler();
int btnWidth;
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
final LayoutInflater inflater = LayoutInflater.from(this);
scrollView = (MyHorizontalScrollView) inflater.inflate(
R.layout.horz_scroll_with_list_menu, null);
setContentView(scrollView);
menu = inflater.inflate(R.layout.horz_scroll_menu, null);
// ///demo= inflater.inflate(R.layout.demo, null);
app = inflater.inflate(R.layout.horz_scroll_app, null);
ViewGroup tabBar = (ViewGroup) app.findViewById(R.id.tabBar);
btnSlide = (ImageView) tabBar.findViewById(R.id.BtnSlide);
btnSlide.setOnClickListener(new ClickListenerForScrolling(scrollView,
menu));
final View[] children = new View[] { menu, app };
// Scroll to app (view[1]) when layout finished.
final int scrollToViewIdx = 1;
scrollView.initViews(children, scrollToViewIdx,
new SizeCallbackForMenu(btnSlide));
Button logout=(Button)findViewById(R.id.Button08);
Button profile=(Button)findViewById(R.id.Button4);
Button profile1=(Button)findViewById(R.id.Button01);
Button follower=(Button)findViewById(R.id.Button04);
Button following=(Button)findViewById(R.id.Button02);
profile.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Intent i= new Intent(HorzScrollWithListMenu.this,Themes.class);
startActivity(i);
}
});
following.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
WebService_oGoingfollowing();
}
private void WebService_oGoingfollowing() {
// TODO Auto-generated method stub
String name;
JSONArray c = null;
// Live
//static String urlmain = “http://api.ogoing.com/”;
// Mobile QA
String urlmain = “http://ogoingritts.rigelnetworks.com/”;
String inputPortalName = “http://ogoingqa.rigelnetworks.com”;
String inputUserName = “chiragmankani”;
String inputPassword = “123@chiragG”;
String ID = “4776”;
String deviceid = “3bf19e537d8dedb6ec2e6b461945c8638e54a4871caba10c8b485ebc3bab5691”;
String portal = “http://ogoingqa.rigelnetworks.com”;
// TODO Auto-generated method stub
//private static final String URL = “http://api.ogoing.com/user.asmx?op=ValidUser”;
final String URL = urlmain+”UserProfile.asmx?op=GetFollowingOfUsers”;
final String SOAP_ACTION_NEW = “http://www.ogoingapi.com/GetFollowingOfUsers”;
/**
* Getting Contact information
*
* @param attendeeCredentials
* @param inSeqNum
* @return GetAttendeesContactInfoResponse
*/
/// JSONObject callWebServiceJson(String UserName, String Password,String PortalName, String DeviceId) {
JSONObject jsonObj = null;
String ValidLogin=””
+””
+””
+””
+””+inputUserName+””
+””+inputPassword+””
+””+portal+””
+””+ID+””
+””+0+””
+””+”getall”+””
+””
+””
+””;
DefaultHttpClient httpClient = new DefaultHttpClient();
String envoloper = String.format(ValidLogin);
// request parameters
HttpParams params = httpClient.getParams();
HttpConnectionParams.setConnectionTimeout(params, 10000);
HttpConnectionParams.setSoTimeout(params, 15000);
// set parameter
HttpProtocolParams.setUseExpectContinue(httpClient.getParams(),true);
// POST the envelope
HttpPost httppost = new HttpPost(URL);
// add headers
// Set Method Action
httppost.setHeader(“soapaction”, SOAP_ACTION_NEW);
httppost.setHeader(“Content-Type”, “text/xml; charset=utf-8”);
String response = “”;
try
{
// the entity holds the request
HttpEntity entity = new StringEntity(envoloper);
httppost.setEntity(entity);
// Response Handler
ResponseHandler responseHandler = new ResponseHandler()
{
@Override
public String handleResponse(HttpResponse response)
throws ClientProtocolException, IOException {
// get response entity
HttpEntity entity = response.getEntity();
// read the response as byte array
StringBuffer out = new StringBuffer();
byte[] b = EntityUtils.toByteArray(entity);
// write the response byte array to a string buffer
out.append(new String(b, 0, b.length));
return out.toString();
}
};
// Getting the response
response = httpClient.execute(httppost, responseHandler);
// Sending the Response to parsing class
String stt[] = response.split(“”);
String stt2[] = stt[1].split(“”);
Log.i(“”, “stt” + stt);
Log.i(“”, “stt2” + stt2);
String my_string = stt2[0];
Spanned abc = Html.fromHtml(Html.fromHtml(my_string).toString());
String my_final_string = abc.toString();
// jsonObj = new JSONObject(my_final_string);
// DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
// DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
//Document doc = docBuilder.parse (getAssets().open(“weatherdata.xml”));
weatherDataCollection = new ArrayList<HashMap>();
// normalize text representation
//doc.getDocumentElement ().normalize ();
// NodeList weatherList = doc.getElementsByTagName(“weatherdata”);
HashMap map = null;
JSONArray jarray = new JSONArray(my_final_string);
for (int i = 0; i < jarray.length(); i++) {
//for (int i = 0; i < weatherList.getLength(); i++) {
map = new HashMap();
//// Node firstWeatherNode = weatherList.item(i);
JSONObject menuObject = jarray.getJSONObject(i);
String uname1 = menuObject.getString(“UserName”);
String image = menuObject.getString(“ImageURL”);
map.put(KEY_CITY, (uname1));
map.put(KEY_ICON, (image));
weatherDataCollection.add(map);
}
followerBinderData bindingData = new followerBinderData(HorzScrollWithListMenu.this,weatherDataCollection);
list = (ListView)app.findViewById(R.id.list);
Log.i(“BEFORE”, “<>”);
list.setAdapter(bindingData);
list.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView parent, View view,
int position, long id) {
Intent i = new Intent(HorzScrollWithListMenu.this, Followerprofile.class);
i.putExtra(“Username”, weatherDataCollection.get(position).get(KEY_CITY));
// start the sample activity
startActivity(i);
}
});
}
catch (Exception exc) {
exc.printStackTrace();
}
}
});
follower.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
WebService_oGoingfollower();
}
private void WebService_oGoingfollower() {
// TODO Auto-generated method stub
// TODO Auto-generated method stub
String name;
JSONArray c = null;
// Live
//static String urlmain = “http://api.ogoing.com/”;
// Mobile QA
String urlmain = “http://ogoingritts.rigelnetworks.com/”;
String inputPortalName = “http://ogoingqa.rigelnetworks.com”;
String inputUserName = “chiragmankani”;
String inputPassword = “123@chiragG”;
String ID = “4776”;
String deviceid = “3bf19e537d8dedb6ec2e6b461945c8638e54a4871caba10c8b485ebc3bab5691”;
String portal = “http://ogoingqa.rigelnetworks.com”;
// TODO Auto-generated method stub
//private static final String URL = “http://api.ogoing.com/user.asmx?op=ValidUser”;
final String URL = urlmain+”UserProfile.asmx?op=GetFollowersOfUsers”;
final String SOAP_ACTION_NEW = “http://www.ogoingapi.com/GetFollowersOfUsers”;
/**
* Getting Contact information
*
* @param attendeeCredentials
* @param inSeqNum
* @return GetAttendeesContactInfoResponse
*/
/// JSONObject callWebServiceJson(String UserName, String Password,String PortalName, String DeviceId) {
JSONObject jsonObj = null;
/* String ValidLogin=””+
“”
+ “”+””
+””+portal+””
+””
+””
+””;*/
String ValidLogin=””+
“”
+””+
“”
+””+inputUserName+””
+””+inputPassword+””
+””+portal+””
+””+ID+””
+””+0+””
+””+”getall”+””
+””
+””
+””;
DefaultHttpClient httpClient = new DefaultHttpClient();
String envoloper = String.format(ValidLogin);
// request parameters
HttpParams params = httpClient.getParams();
HttpConnectionParams.setConnectionTimeout(params, 10000);
HttpConnectionParams.setSoTimeout(params, 15000);
// set parameter
HttpProtocolParams.setUseExpectContinue(httpClient.getParams(),true);
// POST the envelope
HttpPost httppost = new HttpPost(URL);
// add headers
// Set Method Action
httppost.setHeader(“soapaction”, SOAP_ACTION_NEW);
httppost.setHeader(“Content-Type”, “text/xml; charset=utf-8”);
String response = “”;
try
{
// the entity holds the request
HttpEntity entity = new StringEntity(envoloper);
httppost.setEntity(entity);
// Response Handler
ResponseHandler responseHandler = new ResponseHandler()
{
@Override
public String handleResponse(HttpResponse response)
throws ClientProtocolException, IOException {
// get response entity
HttpEntity entity = response.getEntity();
// read the response as byte array
StringBuffer out = new StringBuffer();
byte[] b = EntityUtils.toByteArray(entity);
// write the response byte array to a string buffer
out.append(new String(b, 0, b.length));
return out.toString();
}
};
// Getting the response
response = httpClient.execute(httppost, responseHandler);
// Sending the Response to parsing class
String stt[] = response.split(“”);
String stt2[] = stt[1].split(“”);
Log.i(“”, “stt” + stt);
Log.i(“”, “stt2” + stt2);
String my_string = stt2[0];
Spanned abc = Html.fromHtml(Html.fromHtml(my_string).toString());
String my_final_string = abc.toString();
// jsonObj = new JSONObject(my_final_string);
// DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
// DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
//Document doc = docBuilder.parse (getAssets().open(“weatherdata.xml”));
weatherDataCollection = new ArrayList<HashMap>();
// normalize text representation
//doc.getDocumentElement ().normalize ();
// NodeList weatherList = doc.getElementsByTagName(“weatherdata”);
HashMap map = null;
JSONArray jarray = new JSONArray(my_final_string);
for (int i = 0; i < jarray.length(); i++) {
//for (int i = 0; i < weatherList.getLength(); i++) {
map = new HashMap();
//// Node firstWeatherNode = weatherList.item(i);
JSONObject menuObject = jarray.getJSONObject(i);
String uname1 = menuObject.getString(“UserName”);
String image = menuObject.getString(“ImageURL”);
map.put(KEY_CITY, (uname1));
map.put(KEY_ICON, (image));
weatherDataCollection.add(map);
}
followerBinderData bindingData = new followerBinderData(HorzScrollWithListMenu.this,weatherDataCollection);
list = (ListView)app.findViewById(R.id.list);
Log.i(“BEFORE”, “<>”);
list.setAdapter(bindingData);
list.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView parent, View view,
int position, long id) {
Intent i = new Intent(HorzScrollWithListMenu.this, Followerprofile.class);
i.putExtra(“Username”, weatherDataCollection.get(position).get(KEY_CITY));
// start the sample activity
startActivity(i);
}
});
}
catch (Exception exc) {
exc.printStackTrace();
}
}
});
logout.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Intent i=new Intent(HorzScrollWithListMenu.this,LoginActivity.class);
startActivity(i);
finish();
}
});
I’m really enjoying the theme/design of your site. Do you ever run into any browser compatibility problems? A handful of my blog audience have complained about my blog not working correctly in Explorer but looks great in Safari. Do you have any solutions to help fix this issue?
send and receive data from local machine via JSP web service in android
hi could u give me sample code for remote service in android with clear explanation
very less topics
like adapters , fragments and so on are missing ….. keep trying to add these things as well
more over i really appreciate ur efforts
Hi,
Your site is wonderful. It will surely help upcoming android programmers. Is it possible for you to write some articles for sensors which are present inside android device? If you can write some samples will be helpful.
Kind regards,
Vishal Kulkarni
Please help me how can we upload a file from Andriod to FTP Server (Source code).
Sir,how to store the android apps data,stored to cloud(Eucalyptus cloud).
hello sir….Could u tell me how to send data to server with example….
You need to learn web services to know how to save your data in database or any external server.
Hello sir its very interesting to learn android from your tutorials and its great experience to learn android through your tutorials thank you sir
Hi Sir,
Please upload android XML parsing with good example and description.
I wait for your response…
Really Great Tutorial… Thank you so much Mr.Mkyong…
hi could u tel me how to download a file in android using service class with example plzzzzzz
hi could u tel me how to download a file in android using service with example code plzzzzzzzzzzzzzzz
Hi.These are very useful for us.Thanks for tutorial.I want to ask question with your permission.I’m studying android application that it’s need android device connect to Mssql Server without web services.How can ? do it.I wait your responds.
I want to know 1.how will be store and connect backend
2. how to link .xml and .java files please help me
it is a gate way of develop android application. it is very useful for beginner
Thanks for the tutorials. Very easy to follow and learn step by step. Make me feel more confident after each tutorial. Nice!
Thank You for the tutorial..It’s Really helpful for those who wants to get started with android apps.Once again Thank you So much Mr. Yong
it is nice tutorial to get started thank you 🙂
Sir U want the cod about the sqlite connection and all other required information because u are giving very easy
Hello frnz,
I need an urgent help. I want to create a login page with name, mobile no, email id. I need to store it on web server database(using mysql). When the user uses the app again, he don’t need to login again.. The app should check for his validation in the created database and take him to the next page automatically. If any of you or your frnz can help me out in this then please post the code here or mail me at [email protected]. I have tried JSon and http method but its not getting posted on the server.
Generally this type of logic is implemented using localstorage and not by Web Server.
Advantage of using localstorage instead of Web Server is you can readily save / retrieved the login information (provided the login is successful). There is no need to make two way MySQL query to store / fetch for future login.
If you still want to use MySQL on WebServer, You can try doing like this…
It is not difficult.
I have made use of jQuery and getJSON
Below code is for Login Page front end JavaScript placed at the end of the page
<script> $('#signup').bind('pagecreate pageshow',function(event){ $('#BtnSubmit').bind('click',function(){ var form = $('#LoginForm'); var formData = form.serialize(); $.getJSON("http://www. [[yourserver address]] .com/ [[you PHP script login.php]]?callback=?",FormLogin, function(data) { alert(data); //based on this data you can redirect the user to next page }); }); }); </script>For the above code to work, you need another file on your web server, say for example login.php, in this PHP file you just use routine PHP and MySQL code to determine the POSTED data from the Login Form, Search your MySQL database and then based on result you set and return a value.
Hope this helps…
for this problem have one way solution
1. using row count function.
first time your row count is zero then we insert value in database.
2. when you application start on second time that time if your row count is greater then 0(zero) that time you van use or give next page address.
sir how to create contacts application in android plz tell me sir.
thank you sir,
hello…
i want to create google map event handling application..
plz , can u tell me about how to use javascript in android app for google map v3.
Stumbled upon this wonderful site and fell in love with it instantly! Wonderful tutorials, Yong!
Good evening sir
what a tutorial sir before seeing in your blog i am afraid about android but now i understood very well !!!!!!!!!!!!!!!!!!!!
Thank your so much for giving this tutorial
Hello M. K. Yong, thanks for the tutorial, It is what i was looking for.
i love your helpfull nature…sooo good…..:-)
First of all i should say thank you to you such wonderfull tutorial especially Andriod Apps. and also i have question that is how to input the other laguage keyboard such “Tamil,…” on android devices? is that posiible? the please let me know if you have any idea about this.
this is my e-mail id: [email protected]
What a man?
Nice Tutorials.
Thanks a lot…………………….
thank you so much 😉
how to send mail without chossing email client
hi could u tell me is it easy to learn android basics & related to android everything & is there anything more which u had provided in ur material
nice….easy 2 understand
Great tutorials! Good job, man 😉
thank u sir.
your android tutorial help me a lot as a beginners.
will u please upload tutorials like SQlite , animation,
service etc.
thank a lot for uplift my confidence in android
Hi,
I have to scan the barcode using mobile camera. is there any jquery files for that? Pls help me on this issue
tel me abt SQLite in Android
How can I overcome deprecation of TabActivity in version Android 4.1.2…??? please reply me 🙂
Thanks and regards,
Sachin Bharadwaj
Dear Sir,
Let met know how android is simulated on wireless ad hoc network. Does Android work together in NS -2 simulator? Can anyone can suggest me on implementation mobile device on network simulation tools. Thank in advance.
hi mkyong,your website is providing a lot of knowledge to all beginners in programming language.would u plz post some advanced topics on android it will very much usefull 2 me & for the Android developers
i really liked your efforts in guiding ..kip it up
hi sir,
i am new to Android , I making program in android that is for calculating the average
of 8 numbers which having only one edittext and one button
after taking the all numbers from users one by one it display the result on same edit text box
Hi ,
Just enter the values with comma (,) as delimiter in the EDIT TEXT when button is clicked , in this click event handler use StringTokenizer with comma(,) as delimiter and parse to their values and compute.
Thanks a lot.Your tutorial helped me a lot as a beginner in Android.
but now please provide more example to create app like Google map navigation,make a music player,voice recording,etc….
can anybody plz provide me a link for an example of panning in android?????
Thanks dude for sharing all these things……
Thanx a lot sir…. I love ur website…. wish u ol the bst fr Future!!!! DO well and spread the knowlegde!!!! BE ROK vth ANDROID!!!! 🙂
I love your website. It always helps me to learn and create an interactive android mobile applications.
Thank you dear sir and co.
By your friend Jona from Yellagiri
Thanks a lot.Your tutorial helped me a lot as a beginner in Android.
Thanks a lot.Your tutorial helped me a lot as a beginner in Android.Please do post some more tutorials.
Thanku sir, your tutorial very helpful for us
thanks again.
Nicely presented tutorials. Very good for the complete novice.
Would it be possible to produce a tutorial that explains how to place icons on the status bar.
For example, a battery status indicator showing a percentage of power?
Keep up this great resource.
thanks sir for sharing all these things.
thank you sir for your valuable sharings…….Can you help me to implement an ExpandableListView in which the groups will be automatically closed while we are opening any other group… Please sir, I am expecting help from you…
Thanks Sir,for this best tutorial.
Will you please upload web service examples in android?
Thanks for this nice tutorial.
Nice tutorial, created my first helloworld program on the android itself by using AIDE.
Would love to see an action bar and fragments tutorial!
Great Work!
Thnk u sir…
Thnk u so much…
Because of this tutorial nw i m understand android properly….
n sir pls upload other tutorial for android like Animation,SQLite and other Dynamic tutorial…
very helpfulll….
thanks Sir,
Lova
thank for this usefull informatiom,
sir,
i want how to use and creste Sqlite database and webservices
hi,,,
You provide such a great resource ,,,which really helps..Thanks!!!!!!!!
I am doing a project on Android XML data parsing and showing them in Customised ListView
Would You provide Some help for the same…as I am Novice to Android….
Thanks!!!
Its very useful tutorials and this help in efficient way
so please try to give me more to help me improve my my skills in android programming…
Best regards…
Nice tutorial
How To Create Content Dynamically please Help me?
how to set animation in android?
Thank you sir!
This tutorial really helped me a lot
hello,
What is a Mashrey URL ?
We are advised to use something of this kind for OAM authentication.
Thanks and Regards,
Hari
Awesome tutorials for beginners to get some confidence about android programming.
Hats off to you mkyong.
Please keep posting new programs like twitter and other apps as well.
Thanks a lot
Vijay
ca u give me a stepwise of hoe to create an android code?how to compile and how to run?
plz…………………
Thanks, great tutorial for android
I am using webserivce to access android application using ksaop jar file. When I install into mobile the jar file also need to install into mobile ?. Please send me solution.
Thank you very much,
your android sample code very useful to learn android application.
very nice android tutorial
Indeed, very nice tutorial. Thank you.
i am new to android and i have done an image gallery with zoomin.its working properly for small number of images.but when i increase the size of the number of images in gallery its showing “force close” and project will be closed.what can i do for this problem
Sir,
Is it possible to fetch myphpadmin’s mysql data from android device directly like Jdbc connection in java.?I am not asking for sqllite connection.
Please reply me asap.
Thanks for sharing these tutorials
These are great tutorials and they have been a great help to me personally. Could you please write a post on its database connection and its use please. That would be really helpful and would actually complete the basic tutorial for android app development. Thanx in advance.
very helpful tutorial…..
Hi MyKong,I want Android Application works as a Scheduler. i.e to fire an action when some System time is set. Could you please guide me how to go about it. I have created an Intent Also if my Android App is minimised will it be able to receive notification of the time, how to do about it.
hi,
Can you help me to develop an android application having horizontal scrolling for gridview ?
or any useful links ???
Many people are suffering on this topic…
Thanks in advance?
Write post on Android notification and its usage.
Android Blogger
thanx boss……
Your tutorials on Android programming is good..
Keep posting such wonderful posts.. 🙂
help me for a simple program to access all data from one activity and show all those data in another activity
Use put extra in the intent which will load next activity…
Hello Sir,
I am learning Android and your tutorials are good for learning.
Sir, I want to connect a USB device to my Android-phone and receive data on my phone. Could you please help me how should I go about with it??
Thanks.
Dis is gr8 tutorial 2 start developing android application.
It’s really a fun developing applications.
I develop android apps in my smartphone.
Thanx a lot mkyong!!!
i want to show allt eh contacts in a list ..can u tell em how to do it..i am just a beginner in android
ya i m help, sent u r e mail id
Hello,
how to copy file from asset folder to /data/local/tmp and chmod all file is copying to 777, if sdcard is can copy but not chmod 777,
Hi,
How to send an sms to multiple recipients from my contacts…?
Thanks in Advance..
Regards,
Habeeb
i have created android Calculator app in Eclipse. if i want to run that app i need eclipse must and should.
But i want to make that app run without eclipse in any system as a normal apps run .
just download and run then time app has to be run.
If any one knows help me Pls
If I start my emulator, my Eclipse apps still work. But if you need the “release version”, you need to look in your project for a file with the same name as your project and the extension APK.
Upload it somewhere and people can download this APK file which will install the app on their phones.
Gorove tut.
Keep writing.
Please upload the program to make a ProgressDialog without the numbers (20% 30/100). I know this can be done by extending the progressdialog class but that is where my knowledge ends.
i knw how to zoomIn but going ti infinite n its dragging….i dnt want to drag n i dnt want to zoom out the current image..and i need to ZoomOut the extended image,,,please can u help me…thanku
hi..plz can u send how to zoomIn an image without infinite? i’m struggling from last few days…
how to share photo in android?
thanks a milion for your usefull website…
very useful brother..
i need source code for download and upload file..
Keep up the great work. Your tutorials are amazing!
how I can make application android with langue arabe cos I try many time and it doesn’t can read it…plz any idea
This is an excellent tutorial for the beginner one of the easy way to understand the android.
Now that Android has finally come to your website, its going to be even better.
Good luck, keep it up!
so greatfull post and tnx alot….
Hello,
This is really a great work done by you without expectations and with an attitude of letting the newbies know about in and out of the basic features of Android.
This is really a web page that a newbie should start from.
Thanks for all your hard work and looking forward for your further webpages.
Regards,
Arun.AR
Hi how can i use Apache tomcat in Android apps.Please kindly inform me. How can i develop android apps easily.
Hi,
I am beginner in Andriod programming. I would like to know how long it will take to see the result of Andriod program. Now, it takes about 15 minutes to see the result for me. That makes me so impatient. So, I also want to know whether andriod programs takes long time and how I fix this problem.
My system ….
320 GB HDD
2 GB Memory
I would like to know next system requirements are required for andriod. Thank in advance.
change skin of avd to HVGA and enable snapshot and for super fast response buy any cheep android device……
really helpful for newbie,a very helpful site
thanks a lot
this article helped me allot am new in android
sir can you send your email id
great examples for beginners
Thanks.
thanks a lot
How to retreive data after recption of USSD message ?
THanks
mkyong, You had given a simplied way of understanding Topics, Your Android Tutorials are must watch for newbies
Thanks, still many articles in pending.
u r tutorial is such a helpful that any begginner easily grasp all of the basic concept.i really salute to u r hard working.
sir plz start a tutorial for jsp and servlet also .
mkyong doesn reply for any of our question.
I think this is the great tutorial for every new android developers.
Thanks a lot,
mkyong
Hi mkyong
I am starting to write first application for android and do not exprience
for first job add a clock and set alarm system
tanks a lot help me help me
This is great..!Just what i’m looking for..
Thanks.
Thanks for the good writeup. It in truth was a enjoyment account it. Glance complicated to far introduced agreeable from you! By the way, how could we be in contact?
Just drop me email via contact form 🙂
thx mkyong , very nice
Wow!
Great place to start with…
Thanks!
thanks a lot
i check your web site each day
your web site help me to do every things in java