fundamental of android
TRANSCRIPT
![Page 1: Fundamental of android](https://reader031.vdocuments.site/reader031/viewer/2022022413/58ee8ed91a28ab5b2e8b45cd/html5/thumbnails/1.jpg)
B Y A D A R S H P A T E L
W O R K S H O P O N
![Page 2: Fundamental of android](https://reader031.vdocuments.site/reader031/viewer/2022022413/58ee8ed91a28ab5b2e8b45cd/html5/thumbnails/2.jpg)
Index
Introduction to Android
Introduction to Android Studio IDE
Introduction to Activity
Goto Next Activity
Goto Next Activity with Data
Manage User Sessions
Receive Single Data from Server
Receive Multiple Data from Server
Bind Single Column Data with ListView
Bind Multi Column Data with ListView
http://arthtechnology.com
![Page 3: Fundamental of android](https://reader031.vdocuments.site/reader031/viewer/2022022413/58ee8ed91a28ab5b2e8b45cd/html5/thumbnails/3.jpg)
Introduction to Android
http://arthtechnology.com
![Page 4: Fundamental of android](https://reader031.vdocuments.site/reader031/viewer/2022022413/58ee8ed91a28ab5b2e8b45cd/html5/thumbnails/4.jpg)
Introduction toAndroid Studio IDE
![Page 5: Fundamental of android](https://reader031.vdocuments.site/reader031/viewer/2022022413/58ee8ed91a28ab5b2e8b45cd/html5/thumbnails/5.jpg)
Introduction to Activity
http://arthtechnology.com
![Page 6: Fundamental of android](https://reader031.vdocuments.site/reader031/viewer/2022022413/58ee8ed91a28ab5b2e8b45cd/html5/thumbnails/6.jpg)
Goto Next Activity
http://arthtechnology.com
![Page 7: Fundamental of android](https://reader031.vdocuments.site/reader031/viewer/2022022413/58ee8ed91a28ab5b2e8b45cd/html5/thumbnails/7.jpg)
Actually There are many options
Goto Another Activity
Goto Another Activity with Data
Open Browser
Open Share Intent
Open Another Activity to Select Image
Open Another Activity to Select File
http://arthtechnology.com
![Page 8: Fundamental of android](https://reader031.vdocuments.site/reader031/viewer/2022022413/58ee8ed91a28ab5b2e8b45cd/html5/thumbnails/8.jpg)
Goto Another Activity
Intent intent = new Intent(getApplicationContext(),
MainActivityHome.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
http://arthtechnology.com
![Page 9: Fundamental of android](https://reader031.vdocuments.site/reader031/viewer/2022022413/58ee8ed91a28ab5b2e8b45cd/html5/thumbnails/9.jpg)
Goto Another Activity with Data(Temporary)
Display one item when you click on list of item
Pass just true/false or just id
Pass Index (like from where you are coming...) (Eg. Login
page is only one and we are using from workshop and
training both so we need to
http://arthtechnology.com
![Page 10: Fundamental of android](https://reader031.vdocuments.site/reader031/viewer/2022022413/58ee8ed91a28ab5b2e8b45cd/html5/thumbnails/10.jpg)
Goto Another Activity with Data(Temporary) (Example)
Intent intent = new Intent(getApplicationContext(),
MainActivityHome.class);
intent.putExtra("varable1","value")
startActivity(intent);
varable1= getIntent().getStringExtra("varable1");
http://arthtechnology.com
![Page 11: Fundamental of android](https://reader031.vdocuments.site/reader031/viewer/2022022413/58ee8ed91a28ab5b2e8b45cd/html5/thumbnails/11.jpg)
Manage User Sessions(Permanent)
public static final String PREFS_NAME = "Preference";
SharedPreferences settings =
getSharedPreferences(PREFS_NAME, 0);
SharedPreferences.Editor editor = settings.edit();
editor.putString("mobiletatus", "Y").apply();
String par1 = settings.getString("mobile", "9898036028");
http://arthtechnology.com
![Page 12: Fundamental of android](https://reader031.vdocuments.site/reader031/viewer/2022022413/58ee8ed91a28ab5b2e8b45cd/html5/thumbnails/12.jpg)
Share IntentIntent share = newIntent(android.content.Intent.ACTION_SEND);
share.setType("text/plain");
share.putExtra(Intent.EXTRA_SUBJECT, "RTO CodeApps"); share.putExtra(Intent.EXTRA_TEXT, "Try RTO Code Apps(Link : https://goo.gl/isqXV7 ) Provides All Vehicle RegCode "); startActivity(Intent.createChooser(share, "Share link!"));
http://arthtechnology.com
![Page 13: Fundamental of android](https://reader031.vdocuments.site/reader031/viewer/2022022413/58ee8ed91a28ab5b2e8b45cd/html5/thumbnails/13.jpg)
Open Another Activity to SelectImage
http://arthtechnology.com
![Page 14: Fundamental of android](https://reader031.vdocuments.site/reader031/viewer/2022022413/58ee8ed91a28ab5b2e8b45cd/html5/thumbnails/14.jpg)
Open Another Activity to Select File
http://arthtechnology.com
![Page 15: Fundamental of android](https://reader031.vdocuments.site/reader031/viewer/2022022413/58ee8ed91a28ab5b2e8b45cd/html5/thumbnails/15.jpg)
Its all about sending data one Activity to another activity
or
Get some data/File/Imagefrom Android
http://arthtechnology.com
![Page 16: Fundamental of android](https://reader031.vdocuments.site/reader031/viewer/2022022413/58ee8ed91a28ab5b2e8b45cd/html5/thumbnails/16.jpg)
Now its time to fetch data from Server
http://arthtechnology.com
![Page 17: Fundamental of android](https://reader031.vdocuments.site/reader031/viewer/2022022413/58ee8ed91a28ab5b2e8b45cd/html5/thumbnails/17.jpg)
Fetch Data from Server (some cases)
Validate User (Is userid and password is correct or not)Change User PasswordUser forgot his/her password send by smsSend otp to verify mobile numbersend invitation to their friends about app via serverCheck I have applied for Android FundamentalworkshopFetch list of upcoming workshops of Arth TechnologyFetch list of completed workshops of Arth TechnologyFetch list of workshops I have applied
http://arthtechnology.com
![Page 18: Fundamental of android](https://reader031.vdocuments.site/reader031/viewer/2022022413/58ee8ed91a28ab5b2e8b45cd/html5/thumbnails/18.jpg)
Example to fetch data
http://arthtechnology.com
![Page 19: Fundamental of android](https://reader031.vdocuments.site/reader031/viewer/2022022413/58ee8ed91a28ab5b2e8b45cd/html5/thumbnails/19.jpg)
Example to fetch data
Login with okhttp (Fetch Data from Server)
Login with AsyncTask (Fetch Data from Server)
Save data to Preference
Load data from Preference
http://arthtechnology.com
![Page 20: Fundamental of android](https://reader031.vdocuments.site/reader031/viewer/2022022413/58ee8ed91a28ab5b2e8b45cd/html5/thumbnails/20.jpg)
A R T H T E C H N O L O G Y
T H A N K Y O U !