Posts

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: " + refreshedTok...

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

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

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

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

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