Android Scrapbook

JSOUP | Web Scraping

1. http://www.androidbegin.com/tutorial/android-basic-jsoup-tutorial/


Intent

We all intent to do something in life. In android, you can use Intent to start an Activity. Create an instance of the Intent class and pass the context and the name of the class of the activity that you want to start. Finally use the startActivity method and pass the intent object. The activity will start and you will be able to see it.

Intent intent = new Intent(getApplicationContext(), SomeActivity.class);
intent.putExtra("link","link"); // sending a string
startActivity(intent);

How to catch the intent:

Intent intent = getIntent();
int option = Integer.valueOf(intent.getStringExtra("option")); // receiving a string and parsing to integer

 

Database Upgrading

ANDROID SQLITE DATABASE – HOW TO USE ONUPGRADE() CORRECTLY

Leave a comment