Featured
-
How Regression Testing Detects Integral Errors In Business Processes
Humans are forever changing and evolving and so to
by kristina.rigina -
Get Display Banner Advertising Opportunity on FindNerd Platform
“Do you have a product or service that nee
by manoj.rawat -
Android O Released with Top 7 New Features for App Developers
Android was founded by Andy Rubin, Rich Miner, Nic
by sudhanshu.tripathi -
Top 5 Features That Make Laravel the Best PHP Framework for Development
Laravel is a free open source Web Framework of PHP
by abhishek.tiwari.458 -
Objective C or Swift - Which Technology to Learn for iOS Development?
Swift programming language is completely based on
by siddharth.sindhi
Tags
How to get Package information programmatically in Android
In some cases we have to get global information about application environment programmatically. We will get package name, version name, version code, application info and last updated time using the PackageInfo class which contains all of the inf...
How to change backgraund color View on select radio button in android?
Here I have created change backgraund color View app. when we select any radio button then it will change the backgraund color. In the below example i have use four radio button on diffrent colour id. You can use the below code to change backgrau...
How to make Popup function in android?
Here I have created Popup function , Popup function can be used to display menu item list, anchor text and listitem etc. In the below example when we clicked on menu button the popup will be open and if we click outside the popup it will disappea...
How to get Exact path of a photo saved in Mobile Gallery?
1)Suppose we have a Button and a TextView in XML:
activity_main.xml
<Button
android:id="@+id/btnGet"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="GET IMAGES" />
<TextVi...
get Added accounts email from device Android
Blow code get list of Emails account from AccountManager.
AccountManager manager = (AccountManager) mActivity.getSystemService(mActivity.ACCOUNT_SERVICE);
Account[] list = manager.getAccounts();
if (list.length &g...
How to Select specific category by writing PHP code to show lat & lng location in google map using volley library
I want to display location (lat & lng) markers in Android google map using volley library by selecting the category.
I am not able to get individual selected item locations but I am able to get all locations markers in map. Please help in ...
Date Picker Dialog and Time Picker Dialog in Android
Android provides Date and Time Picker dialog, user can select appropriate date and time as per his need.
With DatePickerDialog we can select date, month and year using Calendar class. setMaxDate(long maxDate) and setMinDate(long minDate) meth...
Customize seekbar in android
If you want to customize seekbar in Android then follow the steps mentioned below:-
1) To customize seekbar background create a new xml file in your project's drawable folder .
seekbar_background.xml
<?xml version="1.0" encoding="utf-...
How to make Toast with AlertDialog in android?
Here I have created Toast with alertDialog code function, according to below code both function runs in same time and display same time when we clicked listview item. In the below code I have explain how to make toast with AlertDialog function in...
Android Expandable ListView
Expandable listview is used to categorise data in some specific type. Expandable list can have a two level scrolling list. Using ChildDivider feature we divide list items with drawables or colors, and ChildIndicator & GroupIndicator is for st...
How to Search in a List using Search Button in ToolBar?
1)In your XML,make a ListView:
<ListView
android:id="@+id/mylist"
android:layout_width="match_parent"
android:layout_height="match_parent"></ListView>
2)Go to menu.xml and add a Search Button:
<item an...
How to make Toast in android ?
Here I have created Toast function in android. Toast function can be used to display information or message for the very short period of time. In the below code I have explain how to make Toast function.
lvList.setOnItemClickListener(new Adap...
Add items to RecyclerView at runtime
To add data to RecyclerView at runtime follow the steps mentioned below:-
1) Start a new project and add support library dependency <compile 'com.android.support:recyclerview-v7'>.
2) Declare layout for your activity(MainActiv...
How to get Latitude and Longitude On a button click using GPS?
1)Firstly in your XML,Make a Button and TextView :
<Button
android:id="@+id/btnMyLocation"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/mylocation"/>
<TextView
...
How to make AlertDialog in android ?
Here I have created AlertDialog function in android. We can use alertdialog for choice to continue or discontinue. AlertDialog can be used to display the dialog message with OK and Cancel buttons. Android AlertDialog is the subclass of Dialog cla...
How to make Spinner in android ?
Here I have created spinner function in android. Spinner can be used to display the multiple options to the user in which only one item can be selected by the user. Android spinner works like dropdown menu. In dropdown menu there will be multiple...
How to add and remove items to RecyclerView in android ?
Here I have created a RecyclerView app in android. In this app we have added item in RecyclerView and when we click on the item in RecyclerView the item will be removed. In this recycler view I have used notifyItem Inserted() and notifyItemRemove...
How to create Registration form in android ?
Here I have created a registration form in android. In my registration form i have used validation function to check inputs like email ,name,age etc. And I have also used check box , radio button and spinner function. Therefor below example will ...
IllegalStateException not on main thread
class LoadImage extends AsyncTask<Void, Void, Void> {
@Override
protected Void doInBackground(Void... urls) {
Bitmap theBitmap = null;
...
How to make Fragment app in android ?
Below I have created fragment app in android. In Fragment class we can insert a fragment into our activity layout by declaring the fragment in the activity's layout file.
Fragment Features-
1. Fragment has its own layout and its own behavior w...
Uploading captured image into the specific folder server using volley library
This is one of the famous question which is unanswered clearly. I have posted it on stackoverflow link as follow:
http://stackoverflow.com/questions/33341069/uploading-captured-image-into-the-specific-folder-server-using-volley-library
I wa...
Google Map showing only one marker
Hi,
I am using Google Map in my app. I have added treeid, and its lat and lng location. I want to retreive these location and show in google marker using volley library.
But I am able to get only one marker location.Please help me where I a...
Please help to design the layout with attached image in Android
Please help in design the layout with attached image. please find the attached screen shot for reference
Suggest whether we go with grid layout or Relative layout . Please provide the respective xml layout.
If you suggest grid layout could ...
Retrieving Objects parse.com android
Hi,
After saving object Saving Object parse.com Android
Now I am writing here how to retrieve object using some key here using objectId.
If you have objectId then it is very easy to retrieve object value.
parseObject use ParseQuery to han...
Phone number Regex Java
Regex for mobile number validation with prefix of '+'
^[+][0-9]{12,13}$
Regex for mobile number validation with optional '+'
^[+]?[0-9]{10,13}$
Use in Code:-
Pattern.matches("^[+][0-9]{12,13}$",mobilenumber);
Ha...
Saving Object parse.com Android
Hi,
Here I am writing way to save object to the parse cloud.
Parse provides ParseObject to handle to saving object.
ParseObject has saveInBackground() method that need to invoke to save.
Let's consider you have to save EmployeeInfo.
...
Android Parse.com Simple SignIn
Hi,
Here I am writing simple way to login after creating user in parse.
Tutorial for Sign Up
ParseUser handles all sign in and sign up functionality.
We login through logInInBackground() method of ParseUser. We need to pass username and...
How to Save Data in Android
In below example I have created a save data app code in android. In this save data we can save our data and then load the back-up. In this I have also described how to make save data.
public class MainActivity extends Activity {
EditTex...
How to read sms from a particular date in Android
You can create a method readSMS() as shown below where you can pass date and time to read the sms from that particular date.
private void readSMS(String date, String time) {
// Now create a SimpleDateFormat object.
SimpleDate...
Device Art Generator
To show your screenshots of device more attractive and you want to wrap the screenshots in a
particular device artwork so it is very easy.
Visit here
submit png screenshot.
and drag your
screenshot png image in the device which you want t...
how to access restful webservice using volley library
I have created a restful web service using this tutorial http://www.tutecentral.com/restful-api-for-android-part-1/
after running this i got an auto generated java file which contains the following code
public class RestAPI {
private fin...
Android Parse.com Simple Signup
After set up and integrate parse.com on your project the important thing is to sign up or can say
create users.
Parse provides facility to their users to access their information in a secure manner.
ParseUser is the class that handles muc...
Clipboard Android
Android gives us the facility to copy and paste the data by providing clipboard.
We can copy text, binary stream, images or other data.
Android provides ClipboardManager to handle all this.
We have to instantiate the object of ClipboardMana...
How to generate debug SHA1 in android
Here I write command by which we can get debug SHA1 that is use to generate debug SHA1 in android.
This SHA1 further use for Google Map V2.
Below is the command
keytool -list -v -keystore ~/.android/debug.keystore -alias androidde...
How to make ListView in Android studio ?
Here I have create a ListView app in android. In the Listview numbers of items shown in vertical scrollable list. In Listview items are automatically inserted to the list and In ListView Adapter pulls content and image from a source database cla...
android google map is showing only one marker using volley library
I am using Google Map inside the "Fragment" using sqlite database connection through volley library.
I have 4 location, but my map is showing only one marker. I don't know where exactly getting wrong.
Where do I need to change in my code to...
How to make RecyclerView in Android studio?
Here, I have create a RecyclerView app in android .The RecyclerView is new advanced widget and flexible version of ListView.Below i have described step by step recycler view ..
Step(1)- In (build.gradle) folder Add first dependencies .
...
Convert SASS Application to Android App
I have a SASS Application built on Rub on Rails [ Responsive Design]. Is there any way I can convert App to Android application and use it
Regards
Surya
adb shell command to toggle google location reporting
Hi Android Nerds,
I'm looking for a solution to enable high accuracy GPS without any prompt so and it will also enable google location reporting is there any way to do this by android terminal or using adb shell on windows ?
errror come on run time to connect my android app with mysql
my code this
AllProductsActivity Class
public class AllProductsActivity extends ListActivity {
// Progress Dialog
private ProgressDialog pDialog;
// Creating JSON Parser object
JSONParser jParser = new JSONParser();
ArrayList<H...
Simple way to convert Json data to Java Model/Bean/Pojo
There is easy way to create Pojo/Bean class for any Json scheme.
http://www.jsonschema2pojo.org/
Convert json data to Gson Pojo class:
Copy and paste Json text to http://www.jsonschema2pojo.org/
Enter package name and class name f...
Phone number validation using libPhoneNumber Library
libPhoneNumber
libphoneNumber Library is used to validate the phone number and it is a google's library mostly used by google products and Whatsapp
phone number validation is important for app so that you can get valid number from your use...
How can we prepare JSON Array by using List View in Android
I would like to prepare the JSON array by using the list view.
Prepared the CustomListView and adapted the data and performing onClikclistener() to give input and set the data. Now trying to use data in list adapter with some custom data to pre...
Populating listview with various custom objects in separate sections
I have 3 array list which gets data from various model classes.. I want to display these 3 in a single listview with separate headers. How can I achieve this? Can anyone help me?
Android How to upload image into the server using Volley library
I want to upload my captured images from camera to my 000webhost.com server using the volley library.
I want where I am getting wrong and suggest me full code solution.
I have tried to write the code, But its not working.
I am getti...
Using Parcelable in Android
In simple words , Send the complete object to other views like (switching b/w different Activity).
What if you need to send 50 value to other Activity, Don't write 50 putExtra to your code as it will increase the size of code ,just use Parcel...
Deep Linking for App content Android
Deep Linking enable user to enter into app from Search.
For enable Deep Linking we must add intent filters for the relevant activities in application manifest. These intent filters allow deep linking to the content in any activity of applicat...
How to start debugging on a specific frame while debugging an android app using android studio?
I am using android studio. While debugging my app I want to jump to the specific frame and start debugging from that frame, skipping the other frames in the frames tab.
I want to see the frames that are only related to my android application a...
Butterknife (Easy way to Eliminate findViewById)
Remove findViewById calls by using @Bind on widgets and fields.
Remove the click listeners by annotating methods with @OnClick and others.
class MainActivity extends Activity {
@Bind(R.id.user) EditText username;
@Bin...
How to implement the different views dynamically and handle input data and set the data
I would like to add different kinds of dynamic views like textview, edittext, datepicker etc to already existed layout. With this existed layout have some static views which are mandatory. this dynamic views have to add based on API response co...