Posts

Showing posts from July, 2018

Push_Notification_guj

//aama sv thi phela firebase jode connect karvu //pche Cloud Messaging ma jvanu pche New Message pr Click karvu then Message Text ma lkhvu the aapdo pooject select karvu Spinner pr Click karvu APP lkhelu chu aeni right side pr Spinner hse Step 1:activity_main.xml And java Step 2:MyFirebaseInstanceIdService.java Step 3:  MyFirebaseMessagingService Step 4:Manifest  //aama services lkhelu che ie j add karvu Step 1:activity_main.xml & java //activity_main.xml and java ma ksho change nai karvano Step 2;MyFirebaseInstanceIdService.java public class MyFirebaseInstanceIdService extends FirebaseInstanceIdService {     private static final String TAG ="" ;     @Override     public void onTokenRefresh() {         // Get updated InstanceID token.         String refreshedToken = FirebaseInstanceId.getInstance().getToken();         Log.d(TAG, "Refreshed token: " + refreshedToken);         // If you want to send messages to this application instance or

Date_picker & Time_picker

Step 1:xml & java Step 1:XML <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:app="http://schemas.android.com/apk/res-auto"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:orientation="vertical"     tools:context="demoproject.aalap.com.datepicker_time_picker.MainActivity">    <TextView        android:layout_width="match_parent"        android:layout_height="wrap_content"        android:id="@+id/date"        android:text="select date"/>    <TextView        android:layout_width="match_parent"        android:layout_height="wrap_content"        android:id="@+id/time"        android:text="select time"/>

json_parsing & web view gujinfo

//aama click kreye url opern tay ie webview lidhi che Step 1:main_activity xml  &  java Step 2:simple.xml Step 3:Heo.java(pojo) Step 4:jsonadapter.java Step 5:jsonclass.java Step 6:webview_xml &java Step 1:main_activity xml  &  java <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:app="http://schemas.android.com/apk/res-auto"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:orientation="vertical"     tools:context="demoproject.aalap.com.web.MainActivity">     <LinearLayout         xmlns:android="http://schemas.android.com/apk/res/android"         xmlns:app="http://schemas.android.com/apk/res-auto"         xmlns:tools="http://schemas.android.com/tools"

SQLLITE_GUJ_INFO_ListView

Step 1:activity_main &java Step 2:delete xml & java Step 3:update xml & java Atep 4;single.xml Step 5:dbhelper.java Step 6:persondata.java(pojo) Step 1:activity_main &java <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:app="http://schemas.android.com/apk/res-auto"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:orientation="vertical"     tools:context="demoproject.aalap.com.myapplication.MainActivity">     <EditText         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:id="@+id/txtemail"         android:hint="enter email"/>     <EditText         android:layout_width="matc

CustomToast_gujinfo

//Custom_Toast ie whatsup jevu page 1>MainActivity.xml 2>second.xml & java 3>mylist.xml 4>MainActivity.java 5>Adapter.java 6>pojo.java 7>second.java step 1:MainActivity.xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:app="http://schemas.android.com/apk/res-auto"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     tools:context="demoproject.aalap.com.custom_listview.MainActivity">    <ListView        android:layout_width="match_parent"        android:layout_height="wrap_content"        android:id="@+id/list">    </ListView> </RelativeLayout> Step 2:second.xml <?xml version="1.0" encoding="utf-8"?> <Lin

Share_prefrence_guj

//aa share preference ma simple login and logout che //aama ek vkhart je name thi login kreyu hse to pche ae page nai khule direct second page khulse step 1:xmal1 step 2:java1 step 3:xml2 step 4:java2 Step 1:xml1 <?xml version="1.0" encoding="utf-8"?> <LinearLayout     xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:orientation="vertical">     <EditText         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:id="@+id/editText"         android:layout_below="@+id/textView2"         android:layout_marginTop="67dp"         android:hint="Name"         android:layout_alignParentRight="true"         android:layout_alignParentEnd="true"         android:layout_align

Spiner_gujinfo

//aama java ma String[] name ma "select value" lkhele che ae toast nai tay baki bdhe value toast tse Step 1:xml  <TextView        android:layout_width="match_parent"        android:layout_height="wrap_content"        android:layout_marginTop="10dip"        android:text="Select Item"        android:layout_marginBottom="5dp"/>    <Spinner        android:id="@+id/sp"        android:layout_width="fill_parent"        android:layout_height="wrap_content" /> Step 2:Java package demoproject.aalap.com.spinner; import android.app.Activity; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.Spinner; import android.widget.Toast; import java.util.ArrayList; import java.util.List; public class MainActivity extends Activity i

Multiple_languge_support

//multiple languge ie aama hindi english bdhi languge aave(hindi languge ma bdhu hindi ma lkhelu aave) //youtube vidio:How to make our app to supprt multiple languge?androi studio 23:8min   //aama main string ma right click karvu and open translation pr click karvu //pche +-o aa 3 symbol mathi round vadu symbol pr click karvu and jetli languge joi te hoy ie select karve //aa program ma 2 languge select kre che hindi and english //hindi ma translate google translate mathi karvu vidio jovo Step 1:xml Step 2:java Step 3:String.xml  //jelti languge joi te hoy ae string ma add kre deve Step 1:activity_main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:app="http://schemas.android.com/apk/res-auto"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_p

Rate app

//Rate app ie click krishu ie direct aapde app playstore pr khulse Step 1:rate.xml Step 2:rate.java Step 3:String.xml Step 1:rate.xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:app="http://schemas.android.com/apk/res-auto"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     tools:context="demoproject.aalap.com.retrofit.Main3Activity">     <ImageView         android:id="@+id/imageView1"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_centerHorizontal="true"         android:layout_centerVertical="true"         android:src="@drawable/ic_launcher_background" /> </RelativeLayout>

Share app

Step 1;share.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:app="http://schemas.android.com/apk/res-auto"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:orientation="vertical"     tools:context="demoproject.aalap.com.retrofit.MainActivity">   <Button       android:layout_width="match_parent"       android:layout_height="wrap_content"       android:id="@+id/share"       android:text="SHARE"/> </LinearLayout> Step 2:Share.java public class MainActivity extends AppCompatActivity {     Button share;     @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.

Google_Map_Application(ie je state nu location set kreye tya red location symbol btavse)

//aa google map vado code che ie aama current location btavse ie vadodara no location krishu to red symbol vadodata btavse //youtube vidio jovo:Android Studio Tutorial - 72 - Create Google Map Application Step 1:google_map_activity.xml aevu ne aevu kai change nai karvano Step 2:Map Activity.java aama pn kai change nai karvano aama LatLng sydney = new LatLng (22.312559, 73.182353); aa line ma je number lkheya che ae chage karva ie aapde vadodata nu location joi tu hoy to google ma google map search karvu pche vadoda lkhvu and pche red colour nu location no symbol che tya right click kaarvu and pche what's here? lkheyu che tya click krarvu and je number btave ae copy paste kre deva new LatLng ma Step 3:values ma google_maps_api.xml  //aama YOUR_KEY_HERE aavu lkheyu che aema key aapda project nu lkh deve 1.https:// aavi aakhe line copy karve and google ma paste karve 2.pche create project karvo and api copy karve and YOUR_KEY_HERE aane kadi ne paste karvu

Send_emai_direct_msg_gmail_ma_jse

//send email vado che program ie me je email nakis aena mail ma msg poche jse ie aa program ma maro emai id and pwd che to me je msg kris ae msg mara email id pr msg aavi jse //aama fragment che ie drawer activity lai leve aema fragment lai levu and je fragment nu name hoy ae drawer parse krave devu(parse ie fragment manager vadp code) //and pche gmail account open karvanu aema  google account ma click karvanu then Sign in and Security pr click karvanu and and last ma Allow less secure apps:ON kre devu //aama library ma jai ne jar file nakhi deve =library ma jvu hoy to android pr click karvu aema pkg ma jvanu pche app pr click kre ne library aavse aama 3 jar file nakhi deve //jar file nakha mate 1)file ma jvanu and project structure pr click karvu 2)app ma click karvu and dependancy ma jvu 3)last ma green color na plus synbol pr click karvu and and jar dependancy ma add kre devu dependancy4) jar dependacy ma jai ne 3 jar file libs ma copy paste kre deve *jar file drive mati l