Android Code for Bar Chart With Animation.


Adding bar charts to android is good UI . Charts are used to show data more efficiently.  To add charts various libraries are used. lets start one of the example to add chart to android app. AndroidManifest.xml 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18…

Android code for Popup on all the Installed Apps


Here is example  android code for show popup on each app that is installed on your mobile. As like App-lock screen if you click on any app it show the app-lock password screen first and then it open the app. it is only a simple code for show the popup on any app. Lets Start…

Android login and Signup Php.


In this android tutorial we are going to learn how to implement android login and registration with Php and Mysql database. This is going to be a long tutorial and will involve Php and Mysql.

New features in DatyalTech


1         ASK A QUESTION:- Now you can ask questions related to android code problems . we will try to give solutions code to the problems. simple click on the link :- ASK A QUESTION  and fill form and send your question and code in which you have some problem. 2    …

Weather app android code


create a Weather API from OpenWeatherMap. //ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=IN&source=ac&ref=tf_til&ad_type=product_link&tracking_id=mukes-21&marketplace=amazon&region=IN&placement=B01DB93B6G&asins=B01DB93B6G&linkId=2a3051c4ef156d7fd1e530126635df9c&show_border=true&link_opens_in_new_window=true&price_color=333333&title_color=0066c0&bg_color=ffffff//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=IN&source=ac&ref=tf_til&ad_type=product_link&tracking_id=mukes-21&marketplace=amazon&region=IN&placement=B06XQKMDTJ&asins=B06XQKMDTJ&linkId=2bbef01e5603af1a3e2d66cf8f293a74&show_border=true&link_opens_in_new_window=true&price_color=333333&title_color=0066c0&bg_color=ffffff//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=IN&source=ac&ref=tf_til&ad_type=product_link&tracking_id=mukes-21&marketplace=amazon&region=IN&placement=B00130WAQS&asins=B00130WAQS&linkId=2768a93fdb329a8fa6e61d294b116b69&show_border=true&link_opens_in_new_window=true&price_color=333333&title_color=0066c0&bg_color=ffffff//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=IN&source=ac&ref=tf_til&ad_type=product_link&tracking_id=mukes-21&marketplace=amazon&region=IN&placement=B01N2XLSMW&asins=B01N2XLSMW&linkId=41ad0022b3ba5089762754c04c310049&show_border=true&link_opens_in_new_window=true&price_color=333333&title_color=0066c0&bg_color=ffffff//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=IN&source=ac&ref=tf_til&ad_type=product_link&tracking_id=mukes-21&marketplace=amazon&region=IN&placement=B0036E2VB8&asins=B0036E2VB8&linkId=60cae8465a135031f8e1a3e26187749b&show_border=true&link_opens_in_new_window=true&price_color=333333&title_color=0066c0&bg_color=ffffff Copy weathericons-regular-webfont.ttf to your project’s src/main/assets/fonts directory. download the font from here. Open  AndroidManifest.xml file and add internet connect permission. Your manifest file will look like this- 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23…

Android CardView Example


In this tutorial we would use a RecyclerView to show a list of CardViews. Since this tutorial is not about the working of Android RecyclerView, we would not be discussing the detailed working of RecyclerView. If you wish to learn in detail about it, please refer to this RecyclerView tutorial. card_view_row.xml XHTML 1 2 3…

Android code for rate us and more apps


First we look at Rate Us : Code Snippet: final String appPackageName = getPackageName(); // getPackageName() from Context or Activity object try { startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(your link here))); } catch (android.content.ActivityNotFoundException anfe) { startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(your link here))); } Here the app actually search for the certain package name in the market. So, if your…

Parsing json with Retrofit


Retrofit Android Retrofit is type-safe REST client for Android and Java which aims to make it easier to consume RESTful web services. We’ll not go into the details of Retrofit 1.x versions and jump onto Retrofit 2 directly which has a lot of new features and a changed internal API compared to the previous versions….

Simple JSON Parsing Using Volley


first install valley to your project : Volley is now officially available on JCenter: Add this line to your gradle dependencies for your Android project’s app module: compile ‘com.android.volley:volley:1.0.0’ create android project Click on Start a New Android Studio Project. Write your Application Name “JsonVolley”. Leave other fields blank as it is. Click NEXT. Write the activity name “MainActivity”….

Android JSON Parser Tutorial


JSON (Javascript Object Notation) is a programming language . It is minimal, textual, and a subset of JavaScript. It is an alternative to XML. Android provides support to parse the JSON object and array. Advantage of JSON over XML 1) JSON is faster and easier than xml for AJAX applications. 2) Unlike XML, it is…

Android Upload file to Server


creat a New Project Named UploadFileToServer. Now first declare the permissions required in our Android Manifest file. 1 2 3     <uses–permission android:name=“android.permission.INTERNET”/>     <uses–permission android:name=“android.permission.ACCESS_NETWORK_STATE”/>     <uses–permission android:name=“android.permission.READ_EXTERNAL_STORAGE”/> The above permissions are required to access Internet and to Read Android External Storage files. write the following code in activity_main.xml: 1 2 3 4 5 6 7 8…

Fragments in android (multi-pane)


1. Fragments 1.1. What are single-pane or multi-pane layouts? A panel or pane represents a part of the user interface. The term pane is a general term used to describe the concept that multiple views are combined into one compound view depending on the actual available space. If not enough space is available only one…

Some of the hidden android devices codes


  Best Android Secret Codes List     Codes      Functioning *#*#778O#*#*  Factory Data Reset *#*#2664#*#* Test the touchscreen *#*#I472365#*#* Quick GPS Test *#*#0673#*#* Audio Test *#*#0289#*#* Audio Test *#*#0283#*#* Packet Loopback Test *#*#232339#*#* wireless Lan Test *#*#526#*#* wireless Lan Test *2767*3855# Format Your Phone & Reinstalls The Phones Firmware #’#273283*255*663282*#*#* Backup Media Files…

Integration of Admob banner and InterstitialAd to your app


GETTING STARTED Sign up as an Admob Publisher here. Log in to your dashboard once you have your account approved. Identify your publisher ID on the top right of your dashboard. Open the Monetize tab and create an ad unit for your application. You should be able to see your ad unit after selecting an app on…

Intro slider (onetime Intro)


Introduction one time slider for android apps: 1.create a android project intro slide 2.create activity – MainActivity 3.Add some images in Drawable folder : 4.Open colors.xml located under res ⇒ values and add the below color values. #f64c73 #20d2bb #3395ff #c873f4 #d1395c #14a895 #2278d4 #a854d4 #f98da5 #8cf9eb #93c6fd #e4b5fc @color/dot_light_screen1 @color/dot_light_screen2 @color/dot_light_screen3 @color/dot_light_screen4 @color/dot_dark_screen1 @color/dot_dark_screen2…

Android StartActivityForResult Example


Let’s see the simple example of android startActivityForResult method. activity_main.xml Drag one textview and one button from the pallete, now the xml file will look like this. File: activity_main.xml <RelativeLayout xmlns:androclass=“http://schemas.android.com/apk/res/android&#8221;     xmlns:tools=“http://schemas.android.com/tools&#8221;     android:layout_width=“match_parent”     android:layout_height=“match_parent”     android:paddingBottom=“@dimen/activity_vertical_margin”     android:paddingLeft=“@dimen/activity_horizontal_margin”     android:paddingRight=“@dimen/activity_horizontal_margin”     android:paddingTop=“@dimen/activity_vertical_margin”     tools:context=“.MainActivity” >     <TextView         android:id=“@+id/textView1”         android:layout_width=“wrap_content”         android:layout_height=“wrap_content”         android:layout_alignLeft=“@+id/button1”         android:layout_alignParentTop=“true”         android:layout_marginTop=“48dp”         android:text=“Default Message” />     <Button         android:id=“@+id/button1”         android:layout_width=“wrap_content”         android:layout_height=“wrap_content”         android:layout_below=“@+id/textView1”         android:layout_centerHorizontal=“true”         android:layout_marginTop=“42dp”         android:text=“GetMessage” /> RelativeLayout>…

Add google map in your app


This post provides step-by-step guideline for adding Google Map in your application. Whether you want to show some location or provide directions to some place or any other usage of a map in your application, you need to follow these steps first to just add a simple map in your application. (This post provides information…

Android SQLite Database Tutorial


SQLite Database Create a new Project Go to android studio -> File -> New -> New project Give your application name select blank activity and the finish ( as we always do ) Now you have your MainActivity.java and activity_main.xml. First we will create the Layout for our android sqlite database tutorial. So from the below…

Android Paypal Integration Tutorial


Paypal Integration In this post we will learn how to integrate paypal payment in your android application. In this Android Paypal Integration Tutorial we will be using the official SDK provided by paypal. Now days a payment option is very much essential for many apps if you are selling something through your apps. And PayPal…