- Home
- Archives
Android – Get Current Date and Time
Problem: How to get current current date and time in Android? Description: For fetching current date and time, we use Calendar class to get the current instance of system clock of phone: Once we are having object of Calendar, we can retrieve date/time value in any desirable format, say for example yyyy-MM-dd HH:mm:ss, now to […]
-
Paresh Mayani
- November 3, 2011
Android – create EditText programatically
Problem: How to create EditText programatically? Solution: [sourecode language=”java”] EditText ed = new EditText(this); // Type of input that you want from user to input i.e. number, text ed.setInputType(InputType.TYPE_CLASS_TEXT); // set the width/height of edittext ed.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); // text color ed.setTextColor(Color.MAGENTA); // text to view initially inside the edit text ed.setText(“Hello this is the […]
-
Paresh Mayani
- November 2, 2011
Android – Bullets in ListView
Problem: How to show bullets in ListView/TextView in Android? Description: There is no easy way to show indentation in ListView/TextView, so here i made a trick and define a drawable to display Bullet at left side of each item of the ListView. And i have defined a custom listview row file and used the same […]
-
Paresh Mayani
- November 1, 2011
Android – Multi Column ListView
Description: I know many novice android programmer are facing problem to implement multi-column listview or in confusion to implement this kind of view. so let me write here to implement multi columnr listview by using ListView itself.
-
Paresh Mayani
- October 22, 2011
Android – Check whether the SD-card is available or not
Problem: How to check whether the SD-card is available or not programmatically? Solution:
-
Paresh Mayani
- October 21, 2011
Android – Loading remote images
Problem: How to load images from web/remote images? Description: This tutorial is going to be a demo for loading images resides at a remote location. For this tutorial, i have implemented AsyncTask to show prorgress bar until the whole image gets loaded fully. Solution: FYI, i have made progress bar visible inside the onPreExecute() method. […]
-
Paresh Mayani
- October 18, 2011
Android – SAX Parsing Example
Problem: how to use SAX to parse XML? This tutorial is for the Android novice programmer who want to learn how to parse XML using SAX parser. I have also used Custom ListView inside this tutorial to display parsing result into the ListView. If you don’t know how to define a custom adapter for ListView […]
-
Paresh Mayani
- October 15, 2011
Search
Explore Topics
Short Stories
From Payroll to People: The Evolution of
- 7 min read
How to Host a Web App :
- 6 min read
Why Hiring a Flutter Developer is the
- 10 min read