I developed a dictionary where i'm launching "MainActivity" when the app launchs. So user will put a hint in the Searchview and the list of words will load in this activity. When we click on a word, a "DefinitionActivity" will launch where we can the the definition and details of the clicked word. So how can i convert this same app to an app where the main list and the details page will load in the same layout so the list of words (MainActivity) will appear on left and the "DefinitionActivity" will load on the right of the page. I need the best way to make this conversion using my existing code and layouts. So the same app loaded on a mobile phone will appear as i developed before and opened on a tablet: list of words and the details page in the same page.
You will need to use the Fragments API introduced in API Level 11.
To get started with check out this example on Android Blog. (http://android-developers.blogspot.in/2011/02/android-30-fragments-api.html)
Related
I want to know what is single View Application.
what are its properties and is it different from single page application.
and if yes how?
I want to know what is single View Application. what are its
properties
If you create a single View Application, you can see the description in the screenshot:
An Android app with a single Activity and simple layout file. Use this basic template as a starting point for any Android app.
is it different from single page application.
I think it's same as single page application because it created a default Activity as a starting point of your app. If you don't like the default Activity, you can choose to create a Blank App and create your own activity.
I am creating an app in android which loads text(HTML) and images, this app is a book. I have a listview with a search box on top. On selecting an item, (which is simply a page) the app loads it for the user to read. I am stuck in that I have to created an activity for each page. I wanted to reuse one activity which I named DisplayActity , this activity contains a webview to display my content. I am somehow still an android newbie
Must I do this in as many pages as I have and also create as many activities as the number of my book pages?
No. When the user elects to switch pages, just update the content in your existing DisplayActivity. For example, if DisplayActivity shows the content via a WebView, update the WebView for the newly-selected page.
Hi I am building an android app which contains information regarding some 11 steps of a process. The 11 steps are displayed in a recyclerview in a activity. When you click on any topic its brief introducton appears in a separate activity. When you click on the details button one more activity appears with the full details regarding the step. Note the details contain Headings, sub headings, images and descriptions like in a book. I want to load the data dynamically in the same activity for every step instead of making 11 separate description activities. How do I acheive that.Add snapshot of what I am trying to acheive.
Instead of opening activity from details button you can use expandable list view .
I want to build a simple book app for android that contains 100 pages of text-only content using android studio.
First activity to enter , 2 buttons for navigating to next and previous page and page number indicator. Also when page indicator clicked, a window pops up for entering specific page number.
Which way is better for this purpose ? Database or HTML method ?
Is there any source code or tutorial resources ?
I have done this using HTML method. What I did is I created HTML files for all the pages, then zipped all the pages.
After that unzipped it into android file system then using WebView I am able to view all the pages like a book app does.
I have added next page, previous page, and search button also.
I am working on a simple project with NavigationDrawer in Android. The drawer has three items Game, Settings, About Us. The app loads the Game fragment first. Let us say in the Settings fragment there is on control to select the Level. Say I select level 3. Now whenever I go to Games fragment again the game should be loaded with Level 3.
Using interfaces and implementing the methods calls the Game fragment immediately. What if i have other settings to change? I want the Game with level 3 only when I click Game in the drawer.
Please help!!!
You can find the image here : http://i.stack.imgur.com/DXxFO.png