Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Save Image File on Parse.com Android

Here I am getting image path from Native data Here IMAGEPATH is the path of image from Camera. ByteArrayOutputStream stream1 = new ByteArrayOutputStream(); // Compress image to lower quality scale 1 - 100 bitmap1...

Retrieve Image file from parse.com and set on ImageView android

It is very easy to retrieve image file from parse.com. For example the image file name profilePicture is save on User class and I am going to retrieve the image below. ImageView profilePic = (ImageView)findViewById(R.id.image_profile); P...

Transparent Button with Border

Here I am writing code to create transparent button with border. First create xml file transparent_button.xml for selector where I am describing the properties of button like border width, color etc <!--?xml version="1.0" encoding="utf-8...

How to make RatingBar in android ?

Here I have created RatingBar function in android. In android RatingBar can be used to get the rating from the user, it is also used for creating RatingBar. Below code example will described you how to make RatingBar function in Android. Step(...

To create database and insert data in SQLite, in android

If you are looking for the code in android to create database and insert data in SQLite then follow the steps mentioned below:- 1) Create a layout in which the data will be filled that will be inserted into database. activity_signup_form....

How to make CheckBox in android ?

Here I have created Checkbox function in android. In android CheckBox is a type of two state button either checked or unchecked. We can use checkbox to activate/deactivate the specific action. In the below code example, I have described how to ma...

How to pass value from one Activity to Another through Bundle Intent?

1)Suppose need to pass value from MainActivity to SubActivity.We will first make xml of both Activity: activity_main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android....

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&#95;SERVICE); Account[] list = manager.getAccounts(); if (list.length &g...

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...

How to apply Big View Style in notification in android

If you are looking to apply the big view style to a notification, here is the solution you are looking for:- Uri notificationsound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); String notificationText; NotificationMana...

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 Change Language in Android Application Programmatically?

Sometimes We need to give options to the user to change language of application, regardless of the locale device. In this blog we are providing opportunity to the user to change language programmatically by press the button individually. Here are...

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...

Creating complex Lists and Cards using Material design style.

To create complex list and cards we have to use RecyclerView and CardView. RecyclerView is a view that shows items in scrolling list (vertical/horizontal) or in grid layout. RecyclerView have advanced features over ListView. RecyclerView prov...

How to get screen width and screen height in pixels programmatically ?

This blog help you to find screen dimensions in pixels programmatically as well as get the screen width and screen height and then set position. You can use DisplayMetrics class. DisplayMetrics class is a structure describing general information ...

How to save state of an activity in android?

If you need to save state of an activity then you have to @override onSaveInstanceState(Bundle savedInstanceState) method of activity and put some states values that you want change to the Bundle parameter as below: @Override public void on...

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...

If you are looking to override your device home button to work as you desired

If you are looking to know, How to override home button programmatically in android, then below I have provided the simple solution. You have to do just a simple thing i.e to override the onKeyDown function in your application, given is the co...

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...

Getting orientation value when you are capturing video in android

If you are looking to know, How to get camera rotation while capturing video with custom camera in android, follow below steps Step 1:-Declare OrientationEventListener and the variable that hold the orientation value. OrientationEventLis...

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 ...

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...

How to rotate the image in Android?

If you are looking to rotate an image that is selected image from device then please go through the following steps:- Step 1:- select image from gallery to which requires rotation Bitmap bitmapImage; File fpath; String root=Envir...

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...

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...

Volley Tutorial

Here is a simple implementation of volley library in android , Create a calls and extend Application class, implements the volley request queue in it also initialize the static class object in it. @Override public void onCreate() { su...

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...

New Layout Features

Hello people, With the new roll of android studio 1.4 we have received many cool features one of them is Branching of layout into precise manner. Android has introduced two different layouts while we create the main activity, these two acti...

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...

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...

Floating Labels for EditText in Material Design

Hi, We can show floating label for EditText by using android design support library. When we input text on EditText, it shows animation by floating labels. TextInputlayout is newly introduced to show floating label on EditText in design ...

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...

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 . ...

Base64 encoding decoding in Android

For encoding and decoding we have Base64 class in android. For encoding in String we can use encodeToString (byte[] input, int flags) This method Base64-encode the given data and return a newly allocated String with the result. Parameters in...

Different transformations in android using Seekbar.

Some of the basic 2-D Geometrical transformations which we can perform in android. Translation:- Translation is the moving of object from one place to another. Rotation:- If we wish to rotate an object in a certain angle/degree. Scaling:...

Locating Debug keystore in android

Hello guies, I was working on key stores and found a bit tricky to locate the debug.keystore on ubuntu system so thought to share the details with you. Follow the steps in order to locate the debug.keystore on ubuntu 1) Go to the home d...
1 15 21
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: