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

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -