D
D
Dmitry Chilikin2017-01-26 16:33:08
Android
Dmitry Chilikin, 2017-01-26 16:33:08

How to generate a new Activity inside the application?

Good afternoon!
The task is to implement a hybrid application (android + webView). There are some developments, in particular - 5 Activities are created inside which webView. When you click on a link inside one intent, another one slides to the right and a page opens in it, etc. up to 5 nesting levels. From each you can return to the level back by clicking on the arrow on the top left (back). In order to optimize the code, the question is: is it possible to generate new activities from the application itself, put a webView in it and pass the required url to it through the extra parameters? An example of this is the VKontakte application - there you can endlessly follow links inside posts and groups, for example, when reposting. Or is there a different application structure? How to be?
In the search engine, information is only for 2012, that this cannot be done, but after all, everything has already changed in 5 years. Please help, thanks!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Gamega, 2017-01-26
@peacock

You are fundamentally wrong, no one generates a new Activity, and nothing has changed in this regard.
You have one Activity that accepts from an extra url and shows the content, but you can have many instances of this activity running with different content

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question