AlarmManager-
This class provides access to the system alarm services. These allow you
to schedule your application to be run at some point in the future. When
an alarm goes off, the Intent that had been registered for it
is broadcast by the system, automatically starting the target application
if it is not already running. Registered alarms are retained while the
device is asleep (and can optionally wake the device up if they go off
during that time), but will be cleared if it is turned off and rebooted. |
Monday, December 21, 2015
Setting multiple alarms in android (Alarm Manager)
Friday, December 18, 2015
Friday, November 27, 2015
Bhagavad Gita Summary for Programmers
Bhagavad Gita Summary for Programmers
Labels:
funny-web-developers
Wednesday, November 4, 2015
Real Web Designing
Web design means a lot, but for whom!!! This is how the designers work and developers finish their work..
Labels:
funny-web-developers
Monday, October 19, 2015
Circular reveal animation on dialog in android
Defining Custom Animations
Animations in material design give users feedback on their actions and provide visual continuity as users interact with your app. The material theme provides some default animations for buttons and activity transitions, and Android 5.0 (API level 21) and above lets you customize these animations and create new ones:
Thursday, October 15, 2015
Using android.support.design in android
Android Design Support Library
With a little help from the new Android Design Support Library, Google bringing a number of important material design components to all developers and to all Android 2.1 or higher devices. You’ll find a navigation drawer view, floating labels for editing text, a floating action button, snackbar, tabs, and a motion and scroll framework to tie them together.Thursday, October 1, 2015
Transitions in android
Shared Element Activity Transition
Traditionally transitions between different activities or fragments involved enter and exit transitions that animated entire view hierarchies independent to each other. Example of such transitions are a fade transition, slide transition or the newly introduced explode transition.
Many times, there are elements common to both activities and providing the ability to transition these shared elements separately emphasizes continuity between transitions and breaks activity boundaries as the user navigates the app.
Traditionally transitions between different activities or fragments involved enter and exit transitions that animated entire view hierarchies independent to each other. Example of such transitions are a fade transition, slide transition or the newly introduced explode transition.
Many times, there are elements common to both activities and providing the ability to transition these shared elements separately emphasizes continuity between transitions and breaks activity boundaries as the user navigates the app.
Friday, September 18, 2015
Android 6.0 Marshmallow due this month
Marshmallow will fundamentally concentrate on enhancing the general user experience, and will bring a couple elements like an updated authorization model in which applications are no more consequently allowed the greater part of their predefined consents at establishment time, Doze force plan for expanded battery life when a gadget is not controlled by the user, and local backing for unique finger print acknowledgment.
Labels:
android,
Android Marshmallow,
HTC,
Nexus
Tuesday, August 25, 2015
How to call REST (POST) or GET webservice from Android
RESTful Web services: The basics
Representational State Transfer (REST) has gained widespread acceptance across the Web as a simpler alternative to SOAP- and Web Services Description Language (WSDL)-based Web services. Key evidence of this shift in interface design is the adoption of REST by mainstream Web 2.0 service providers—including Yahoo, Google, and Facebook—who have deprecated or passed on SOAP and WSDL-based interfaces in favor of an easier-to-use, resource-oriented model to expose their services. In this article, Alex Rodriguez introduces you to the basic principles of REST.for more info click here .
Friday, August 14, 2015
Broadcast receivers in android
Broadcast Receiver
Class Overview
Base class for code that will receive intents sent by sendBroadcast().
LocalBroadcastManager
instead
of the more general facilities described below. This will give you a much
more efficient implementation (no cross-process communication needed) and allow
you to avoid thinking about any security issues related to other applications
being able to receive or send your broadcasts.Thursday, August 6, 2015
Change status bar color in android
You can customize the look of the material theme according to your brand identity with a color palette you control. You can tint the action bar and the status bar using theme attributes
The system widgets have a new design and touch feedback animations. You can customize the color palette, the touch feedback animations, and the activity transitions for your app.
The material theme is defined as:
Wednesday, June 3, 2015
Implementing PayPal in android
For implementing PayPal in your android app ..firstly you need PayPal lib ,import PayPal lib into your project .You should have a paypal account ,as we need PayPal API key to use PayPal.(You will get all instructions here -->https://developer.paypal.com/docs/classic/mobile/ht_mpl-itemPayment-Android/ )
Thursday, May 14, 2015
Best Smart Phones in 2015
Its just may and half of the year is still left. Here are few upcoming smart phones that will excite you in 2015 and you wanna buy them online.
Labels:
android,
mobile,
Samsung Galaxy S6,
sony xperia Z4
Monday, April 20, 2015
Handler in android
Handler:
A Handler allows you to send and process Message and run-able objects associated with a thread's MessageQueue. Each Handler instance is associated with a single thread and that thread's message queue. When you create a new Handler, it is bound to the thread / message queue of the thread that is creating it -- from that point on, it will deliver messages and run-able to that message queue and execute them as they come out of the message queue.Thursday, April 16, 2015
Set more than one animation on a view programatically in android
For this you can use AnimatorSet class of android
This class plays a set of Animator objects in the specified order. Animations can be set up to play together, in sequence, or after a specified delay.
Tuesday, April 14, 2015
Open facebook with intent in android
Android: Open Facebook official app from your own app with different intents
Opening Facebook's official android app from your own app is really easy. You just need to create an intent with correct uri and start and activity with that intent. The app will open with the right page, group, picture, video or etc.
Opening Facebook's official android app from your own app is really easy. You just need to create an intent with correct uri and start and activity with that intent. The app will open with the right page, group, picture, video or etc.
Monday, April 13, 2015
Drag a view with finger in android
Here is a example of Dragging or moving a view in android,this example will also detect left or right movement of your view and you can perform any thing you want.... on drag left or right..
class MyDragListener implements OnDragListener {
Wednesday, April 8, 2015
Android Studio vs Eclipse Differences
Most of Google’s 2013 I/O event was about Android. One specific announcement managed to attract a lot of hype and that was no other than Google’s own Android IDE, Android Studio. It has been just over a year now since the first public release and Android Studio has come a long way, despite still being in beta. The IDE itself is based off the very popular IntelliJ IDEA from JetBrains and is being offered by Google for free.
Monday, April 6, 2015
Difference b/w interface and a class
The key technical differences between an abstract class and an interface are:
- Abstract classes can have constants, members, method stubs and defined methods, whereas interfaces can only have consts and methods stubs.
- Methods and members of an abstract class can be defined with any visibility, whereas all methods of an interface must be defined as public.
Tuesday, March 31, 2015
Get current latitude and longitude in android
By using this class you can get current latitude and longitude and it can open location settings if required. Its a easy way to get your current location.
Usage:
Thursday, March 26, 2015
Read or Write a serializable ArrayList into a text file in android
You can save your ArrayList in a File and can fetch when needed and its a good practice to not using sharedprefrence for large files,You can use Sqllite database or you can save them in a file for better performance.
Use this method to write a serializable Arraylist in a file
Friday, March 20, 2015
Get incoming message text in android
Lots of applications required a text message verification with a code in order to work. If you are also looking to implement such functionality and want to receive an incoming text message in Android using code than use the below:
Tuesday, March 17, 2015
Send application invites to facebook friends in android
Facebook is used by every individual in their normal life, so increasing the visibility of an android application or game is easily achieved if we send application invite to our facebook friends. If you are also looking for a code that send invites of the application to facebook friends than use the below.
Saturday, March 14, 2015
Set transparency level for a view in android
You can set alpha value(transparency level) by using setAlpha in xml or in java one more way to set alpha value is ..by defining transparency level in color code which you set on your view background.
Just add any one of these code before your color code
Thursday, March 12, 2015
Sorting a ArrayList in android
If you are having a string arraylist which contains names of people and you want to sort the arraylist in alphabetical order than use the below code.
Sorting a ArrayList
Most easy method to do so is..using Collections .You can use Collections to perform sorting or any other function on ArrayList.
Most easy method to do so is..using Collections .You can use Collections to perform sorting or any other function on ArrayList.
Tuesday, March 10, 2015
Making ListView Scrolling Smooth
Many a time we face a problem where due to large number of images the listview is not srolling smoothly. If you are also facing the same problem than, Instead of using ImageView Use this class as your Imageview in your ListView adapter.
Monday, March 9, 2015
Animation in android using xml
Animation in Android takes few parameters, for example begin value, end value, size , time span , pivot point e.t.c and perform the obliged activity on that the selected object. Below are examples of few animations performed in Android like bounce, rotate, zoom, fadeout, blink.
First create an an im folder in res,then create an xml with name.xml :
First create an an im folder in res,then create an xml with name.xml :
Thursday, March 5, 2015
Convert date in hours ago or days ago in android
When you see a post it always shows time posted in hours ago or days ago. If you are also kooing to implement the same functionality using Android than use the below method that convert date or time in " hours or days".
//firstly find out difference between current time and other time
long diff = currentdate.getTime() - temp_date.getTime();
//firstly find out difference between current time and other time
long diff = currentdate.getTime() - temp_date.getTime();
Wednesday, March 4, 2015
Get all phone contacts in android
If you are looking to fetch all the phone contacts in android application or want to fecth google contact in android application similar to "whatsapp: than here is the method which will return all device contacts.
private void gettingPhoneContacts() {
Monday, March 2, 2015
Watch Youtube video using intent in android
We can see parcel of android applications playing videos inside the application. Putting videos inside the application will increase the application size and make it heavy. So considering all these things in our mind, we can transfer the video to Youtube and stream it in the application to reduction the application size.
Friday, February 27, 2015
Set textview style Programmatically in android
Setting the textview font size programatically is a simple procedure. For doing the same you can follow the below code:
Programmatically set text as bold,italic or underline :
Programmatically set text as bold,italic or underline :
Thursday, February 26, 2015
Reopen an activity in notification click in android
If you are looking to implement code for reopen an activity in notification click in android than follow the below code.
Example flow of the application for this type of functionality : If the application is not running and user click on notification than it will open the user dashboard and if the application is and user click on notification than it will close the dashboard activity and reopen the activity page.
Example flow of the application for this type of functionality : If the application is not running and user click on notification than it will open the user dashboard and if the application is and user click on notification than it will close the dashboard activity and reopen the activity page.
How to get package name in android
If you want to fetch the package name of your app or currently opened app in android, than use the below code. Please let me know if you face any problem here.
//this will return package name of your app
//this will return package name of your app
Labels:
get package name in android
Wednesday, February 25, 2015
Convert bitmap to String or vice-versa in android
If you want to convert a string to bitmap and bitmap into string than use the below code. please feel free to contact if you face any problem here.
//this method will convert bitmap to base64 String
public static String BitMapToString(Bitmap bitmap) {
//this method will convert bitmap to base64 String
public static String BitMapToString(Bitmap bitmap) {
Tuesday, February 24, 2015
Execute multiple asynctask at same time in android
AsyncTask empowers fitting and simple utilization of the UI string. This class permits to perform background operations and show results on the UI thread.
When we use AsyncTasks, than it only execute on a single background thread. Beginning with DONUT, this was changed to a pool of strings permitting numerous tasks to work in parallel. Beginning with HONEYCOMB, assignments are executed on a single string to stay away from regular application errors created by parallel execution.
When we use AsyncTasks, than it only execute on a single background thread. Beginning with DONUT, this was changed to a pool of strings permitting numerous tasks to work in parallel. Beginning with HONEYCOMB, assignments are executed on a single string to stay away from regular application errors created by parallel execution.
Monday, February 23, 2015
Check network connectivity in android
Before providing any activity like accessing an application, loading emails, chatting, a user need to check whether he or she is connected to a network or not. For doing the same ConnectivityManager is used. It check whether a user is connected to a network or not and if the user is not connected than show an error message.
Saturday, February 21, 2015
Create a Circular image view in android
Here is my article which is showing code for creating a circular image view in android using canvas. Using canvas it is easy to make circular image with some java code and there is no library required to implement this functionality.
Create a Circular image view in android
Create a Circular image view in android
Friday, February 20, 2015
Multiline Notification with user define tone in android
Today, I am explaining how to generate an individual notification with multiple lines of text similar to gmail.
Notification : A message which display to the user outside of the application's. User check the notification and open the notification for viewing the complete message.
Notification : A message which display to the user outside of the application's. User check the notification and open the notification for viewing the complete message.
Thursday, February 19, 2015
Custom progress dialog with animation in android
Loading images looks boring in "Android" with same arrangement of circle with Loading image. So here we run with some custom process dialog that will show some cool things. For doing or implementing the same you can use the below code.
public class TransparentProgressDialog extends Dialog {
public class TransparentProgressDialog extends Dialog {
Wednesday, February 18, 2015
Get list of YouTube video's URL (API v3)
Hello everyone, today I am providing a code for those android developers who wants to fetch the list of Youtube videos on their application rather than upload the same on the application and making it heavy and slow.
How to create a text view programmatically with required attributes
Here I am providing a way to create a text view programmatically with required attributes. Please check and let me know if you have any query for me.
LinearLayout.LayoutParams lparams = new LinearLayout.LayoutParams( LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
lparams .gravity = Gravity.CENTER;
LinearLayout.LayoutParams lparams = new LinearLayout.LayoutParams( LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
lparams .gravity = Gravity.CENTER;
Monday, February 16, 2015
How to fetch registration ID for GCM in android
To send or get messages in Android, your application firstly needs to get an enrolment/registration ID. The enrolment/registration ID which recognizes the gadget and application, furthermore figures out which third gathering application servers are permitted to send messages to this application case.
To get an enrolment / registration ID, you must supply one or more sender IDs.
To get an enrolment / registration ID, you must supply one or more sender IDs.
Labels:
GCM in andriod,
registration Id
Subscribe to:
Posts (Atom)
Don't lose faith when you see others receive answers to their prayers
An elephant and a dog became pregnant at same time. Three months down the line the dog gave birth to six puppies. Six months later the dog...