java - Create dynamic android activities -
i trying create android app has multiple "pages" , example : can choose city in world (e.g : rome,berlin,new york..), , click on move specific city activity , specific information, such as: country, nubmer of people.. etc (all categories same, , information changes each city )
the specific information should stored on mysql database
i ask - how can implement on android application?
thanks!
you have open new activity (cityactivity) adding selected city intent:
intent cityintent = new intent(this, cityactivity.class); cityintent.putextra("city", selectedcity); startactivity(cityintent); then in city activity have value sent via intent:
string city = getintent().getstringextra("city"); now able information of corresponding city , draw information in common view.
Comments
Post a Comment