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..
Related
I am trying to create forum specific shortcuts for XDA Premium app.
Looking around the net everyone I've found so far says to use AnyCut or Folder Organizer for custom shortcuts. This does not produce the desired product.
There are two actions for XDA app (intents?) listed, but they are not identified as to which is which, I will explain my findings so far.
The device I am currently using is SGSII Epic 4G Touch, but if I can get it working, should not be device specific.
So on my SGSII if I long press and select Shortcuts, scroll to the bottom I can choose "xda premium". This is not a shortcut to the app, but creates a shortcut to individual main forums. For this example I'll choose Developer Forums.
The icon created says only "Shortcut to", and I can't read the rest. This is annoying.
Alternatively, long press -> shortcuts -> AnyCut -> Activity
There are 2 "xda premium" options.
The first one will create a regular shortcut to the app, the second one creates a shortcut to the function that creates a shortcut to the different forums. This icon can be named whatever I want, however, when I click it I have to choose a forum, then that creates a new shortcut called "Shortcut to"
This is useless.
The effect with Folder Organizer is similar. Additionally, with either app, on my phone the links I create do not show up in the Edit Existing(anycut) or Shortcuts(Folder Organizer) menus in the respective programs.
I've found this thread: http://forum.xda-developers.com/showthread.php?p=6081250
Which addresses watching the adb logs for the action being performed, which I could then use (hopefully) to create a custom action in AnyCut.
Currently I'm at work, I can get the SDK installed, and it would probably take all freakin day to get installed.
So now to the question.
Would anyone happen to know what "intent" is required to create shortcuts to individual forums through the XDA app?
Maybe there is a far simpler way of accomplishing the same thing AND having shortcuts with reasonable names.
***Mods please move to appropriate forum, I didn't know where else to post something like this***
Got SDK installed and ADB working (finally ugh)
Code:
adb logcat > output.txt
so I have the output of me clicking on the stupid "Shortcut to"
but when I look through it for anything that contains "xda" I haven't found anything that calls to a specific forum
There's a bunch of places where "com.quoord.tapatalkxdapre.activity" occur
Not sure what it is exactly I'm looking for.
64 views of this thread, I'm assuming no one that knows has viewed yet.
still digging..
Does this mean anything to anyone?
I/Launcher( 2872): added a item in workspace. com.sec.android.app.twlauncher.UserFolderInfo XDA -1 -1 -1 61|-100|6|3|2|2 [email protected]
I/Launcher( 2872): added a item in workspace. com.sec.android.app.twlauncher.ApplicationInfo Shortcut to Samsung Epic 4G Touch -1 -1 -1 62|-100|6|0|2|1 [email protected]
I/Launcher( 2872): --> title=Shortcut to Samsung Epic 4G Touch
Figured it out.
Stay tuned, explanation after qdoba.
Sent from my SPH-D710 using XDA Premium App
Hi guys
I've had a sniff round and couldn't find an answer to this, so was hoping you could help; can you create a URL link with icon to a favourite website on a page on your phone?
cheers
Robsa
Ah, it's Ok, I just worked it out! If you create the bookmark in Chrome, then go into bookmarks and long press it. One option is to add it to your home screen page.
Sorry to trouble you!
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
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
Hello
So, I'm a complete N00b on android development and java and want to work with a Navigation Drawer.
I'm using the template, yet I don't know where to define if an item (button, text field, anything) should be in tab 1 or tab 2, main activity's xml places it in both of the tabs.
I'm using android studio.
If there's anything you wanna know, just ask it.
Luke