Nested Fragments - C++ or Other Android Development Languages

Hi all,
Im trying to develop an android application in which a user will have access to navigation drawer or sliding menu all the time. im trying to use fragments to replace the data in the content frame. im inflating a Frame Layout programmatically. im having problems when i try to replace the parent fragment with child fragment completely. For Example Im in Accounts page, in which on menu click navigates to Add Account Page. im trying to replace the Accounts Listing page to Edit Account page. both are fragments. Can anyone guide me or point to good working example of nested fragments. i can post my code snippets if it helps you understand better.
Thanks in Advance

Related

[Q] traversing through Hierarchy viewer

I have a peculiar request.
Currently we see the home screen of the phone . Contains home icon,
maybe Browser icon (atleast 4 icon present)
Now i am given a coordinate (x,y) i know that coordinates is the point
where user clicked on the screen.
Using that coordinate i need to get the icon/image which was
clicked .eg. coordinate x,y is of the Browser image. my aim is to
fetch the browser image based on the coordiantes. For this i checked
hierarchy viewer.
1.
Now how to traverse through the hierarchy to get the exact location
(i.e Browser image) the issue..
Does hierachyviewer uses xml? Can i use xpath to get to the node
element?
2.
Now the cooridnate points : can be part of the Full frame view, it is
also part of the pane without status bar, it also exists on the
relative layout of the last row. It also exists inside the relative
layout of the Browser , it also exists inside the Imageview of the
Browser.
i hope you understood my scenario.
3.
How to reach to the last leaf node to be shown to user (Browser Image
View) which contains the coordinate. How can i traverse through the
Hierarchy and determine where the point is and what to show to the
user.
I just want the Browser image view to be shown as the png image to the
user (the last leaf node).
is it possible to traverse and fetch the image as shown in Hierarchy
viewer?

[Q] How to get a reference to the stock launcher activity object?

I want to read out the shortcuts' and widgets' position and name on the screens of the launcher. Since every launcher is different, I will focus on the stock launcher of Android for the moment. I have not found an API to do this, so I am trying my luck with Java's Reflection API. So far I have been able to get the class and read out the type of the variable holding the items on the desktop called mDesktopItems. But to read out the variable's content, I need a reference to the launcher activity object. It's obvious that this object does not have to exist, but I can probably check regularly and once it does, I would fetch the data.
So how do I get a reference to the launcher activity object? Or could you think of a better way of fetching the required data?

[ help needed ]

Hello everyone. I have started to learn making android apps. I have just played wid buttons textviews editTexts layouts.
So now I have planned to make something usefull which can be used by other. I have think of to make app which can take attendance directly in our phone.
For that I need a 1st page just to display the welcome screen and author name etc. then I need a second page in which the actual content will be there I.e my attendance stuff with button etc.
So I have created a splash. xml in which there a custom background which I made in PS , a analog clock in middle of layout and a textView.
the text of textView is "press to continue" and I have set the property clickable to true so that if I press on that textView I want to transfer my control from splash.xml to main_activity.xml.
So my questions is
1. how to transfer control from one .xml to another .xml
2. how to add a list in layout which is scrollable
3. how to store abset and present list separately in sdcard and each time the user save the result it should keep all the record and should not erase the previously saved records
This is related to the i9300... how? Just because you own one?
Why not try posting here?
http://forum.xda-developers.com/android/help
Choristav said:
This is related to the i9300... how? Just because you own one?
Why not try posting here?
http://forum.xda-developers.com/android/help
Click to expand...
Click to collapse
Sure mate.
I will be if I get any help from anywhere

[ help needed in developing an app ]

Hello everyone. I have started to learn making android apps. I have just played wid buttons textviews editTexts layouts.
So now I have planned to make something usefull which can be used by other. I have think of to make app which can take attendance directly in our phone.
For that I need a 1st page just to display the welcome screen and author name etc. then I need a second page in which the actual content will be there I.e my attendance stuff with button etc.
So I have created a splash. xml in which there a custom background which I made in PS , a analog clock in middle of layout and a textView.
the text of textView is "press to continue" and I have set the property clickable to true so that if I press on that textView I want to transfer my control from splash.xml to main_activity.xml.
So my questions is
1. how to transfer control from one .xml to another .xml
2. how to add a list in layout which is scrollable
3. how to store abset and present list separately in sdcard and each time the user save the result it should keep all the record and should not erase the previously saved records

Help with android development please

Hey xda, I have begun working on an app for a friend with android studio and I am having trouble with the slide out menu. I am wondering how to link pages to the menu?
Right now I have a slide out menu with different tabs, bit is all blank pages.
Thanks for any advice/help everyone!
You mean a navigation drawer. You need to inflate the view either programmatically or using XML files. Suppose you want a list view you would create a listview obj and then and make it a fragment of one of the tab's container
Thanks for the reply MasterAwesome! I'll take a look at it..

Categories

Resources