[Q] Creating an Index/navigation page for an app - Android Studio

Hi, I'm new to Android Studios and have to develop a main menu for an application I have been set for school work. The main menu is very simple and only has to include one Picture (Company logo), a Title (Company name) and 4 Buttons that can be later used to navigate. I would appreciate it if anyone could point me in the direction of any tutorials for the process of creating such a page or provide me with some tips.
Thanks

There are many navigation methods that you can use for example navigation drawer, action bar buttons, tabs, etc.
Take a look at the following tutorial:
http://www.vogella.com/tutorials/AndroidActionBar/article.html

Related

[Q] Where are the Home Layout data stored.

Sorry if this is a very noobish question.
Currently on the Honeycomb build, there is a quick google search on the left top of the home screen. When adding app shortcuts to the home, some of them play hide and seek behind the google search bar. I, with my thick fingers, just can't get them out. (Well if I really tried, maybe )
Also, to have a simple grasp of android, could anybody point where the configuration/data/whatever storing the home layout is? It would be much simpler to just edit it with vim.(I though that was the point of having a android device!)

[Q] Launcher Pro shortcut help!

Hi guys, first post! Loving the forum by the way, very helpful. I'm not sure if this is the right board to post it on but I need help with the Launcher Pro shortcut editor / creator. Basically all I want to do is to create a dock shortcut that toggles wifi, and maybe one for mobile data so that it is available easily on any of my homescreens. Is this possible? I don't really understand the editor but it would seem possible is anyone knew the intent etc for this action?
Looking forward to any suggestions!
Mark
Anyone at all?
no idea how to do it - but there are plenty of other apps that will do that for you
Possible - Try Tasker
Don't think this would be possible as the dock can only hold shortcuts, not widgets.
Sent from my HTC Desire using Tapatalk
Why don't you use the default power widget?
But Tasker allows shortcuts - Task
you can use quickdesk. its pretty much a second home on top of the existing main home your using like launcherpro. you just double tap home button and brings up an overlay of anything you want to put on there for shortcuts or widgets. pretty handy and accessible while doing anything like being on the phone. just double tap home and there ya go. i know its not what your wanting by the post. but it does do pretty good.
Thanks for the replys guys, most helpful! Yeah not as keen on a widget, wanted it on the dock so it's there which ever screen I'm in and doesn't take up any extra real estate on screen. I'll give that quick desk a blast though
I just installed this rom, but I am facing some issues:
1. At startup Launcher pro is fails to launch, I need to force close it all the time.
2. When I open & close an app from app drawer, phone doesn't returns to it's app drawer screen, instead it goes tohome screen.
3. I tried the camera.apk , but it doesn't zoom, even after setting volume keys to do that operation.
4. Contacts looks very messed up & mms.apk don't have option to select the contacts, they only appears when i start typing letters.
Please tell me how make the whole appearance more easy & functional. Thanks

Changing nav bar buttons and their functions - is this possible?

Hi, newbie here trying to find out if it’s possible to turn an android phone into a fast desktop type multitasker. Was told I need a combination of AOSP ROM + eXposed, +Tasker +plugins, and a launcher like Lightning Launcher Extreme. so trying to assemble a list of things I’ll need, and find out if it’s even possible or not to achieve these tasks. In priority sequence:
1) Add as many as 15 buttons to nav bar. would love to change the size and more impornt spacing maybe even location of each button.
2) Optional (ability to lock some of the buttons across the board so lets say, on left side I have a locked home and back button, btu the ones on the right I can swipe left or right and move the nav bar buttons just like on Xtended NavBar app , so it’s kind of like a split nav bar.
Is it possible to add specific functions to each nav bar button I create:
3) Three zoom buttons, one with preset zoom %, so I click it once it zooms in to my preset % I click it second time zoom out must be able to preset the % of zoom somewhere. The other two zoom buttons are regular zoom in and out by increments (if possible preset increments as well per each click)
4) Multitask, instead of resent app, where it shows my open apps as smaller windows, I’d rather switch between them in full screen view, so the navbar recent app button must be mapped to simply switch between all open apps in rotation with each click.
5) Copy/ paste/ cut / undo / 4 buttons, not sure if it needs mapping in each app I use or universal, if each app, can it be done in Firefox or any other web browser, and in Microsoft office or any other office program so when I highlight text I can use these buttons, just like they normally would work in desktop versions?
6) 4 arrow keys, this is for Microsoft excel to shift quickly between cells so in each direction. Or as scrolling in web browser in all 4 directions.
7) search button, same concept as copy paste only once I highlight a text this button will search the net for highlighted text not sure if it’s possible to do from office app as well.
8) Now this is a tricky one, is it possible to automate the nav bar buttons, so if I had 10 or more buttons in total, they can’t fit the screen obviously, os once I open a certain app, the nav bar would move left or right depending on my app, so lets say I open an office app, the cut/paste /undo are automatically in front of me, if I open a excel then the arrow keys are in front……and so on
9) Is it also possible to remap volume keys in certain apps, so lets say I open excel, I have space in my nav bar only for 4 arrow keys, so in this case the volume buttons would become copy/paste.
If some could list the ROM, which launcher, specific modules, specific takser plug ins that could accomplish this or some things, well in an optimized way so I’m not running 15 apps for each request, then I will research each one individually.
Sorry for the long post.
Cheers
I have honestly never heard of such things...
And I think (having owned a Note 3 and now a Nexus 5) that the closest you can ever get to such multitasking experience is to own a Galaxy Note 4, with all the S-Pen functionality that's been added so that it'll work like a mouse on a computer. I know this may not add a lot to your cause; it's just what my knowledge offers.
Well for a newbie the confusion comes to me from not understanding the fundamentals of the android, what things are in the core and what things are on top as a layer? So for example if there is a back button on most phones that’s a fundamental core feature, does that mean it will be easy to add a forward button, so this way I’m compromising on my number 4) request and trying to go more a long the lines of android fundamentals.
As for the note 4 if it does add some mouse like functionality it’s only 50% since some things are faster via keyboard shortcuts rather then a mouse.
The problem I see is too many menus, so you select a text even with an s pen you must open a menu then select a copy, then open another app where you want to paste it in a specific location first you must zoom in that means turn the pen away and zoom then turn the pen towards another menu to open so you can select paste… The pen only has one or two buttons so if it has the zoom buttons I can’t paste quickly with a pen, if it has the paste buttons then I need to use my fingers to zoom in again turning my hand back and forth
way too many menus and not very productive way of working in trying to accomplish a small task of coping a text in one app and pasting in another in specific location. As you can see I’m trying to combine both mouse and keyboard shortcuts into one nav bar button this is to overcome the shortcomings of a small size screen and lack of keyboard and mouse of course.
I realize maybe the whole goal of android was never geared towards my way of thinking, but if it’s open source platform and as I see it there are many things that can be changed compared to a more closed system, it’s how difficult to do it only a programmer will understand, a I’m not a programmer. So I’m here trying to get some answers.
Cheers

Switch Fragments or new Activities?

Hi guys,
I am new to android app development and have started creating my first simple app in Android Studio. So far everything is working, I have a drawer menu, the user can switch between screens, back button in the activity bar etc.
As I learned the basics with tutorials on the internet I could not find an answer to one question.
Some tutorials suggest/show that you should switch the Fragments when navigating to another screens when selecting an item from the drawer. So I create Fragments and when someone clicks on a button I change the fragment.
However there are also Activities, and I can make the same thing work by creating new Activities for each screen the user should see.
I cannot really see a clear benefit from one method compared to the other. Switching Fragments may be less work but may also get more messy.
What is in general the best practice here? Create Fragments for each menu item and switch the Fragments or create a new Activity for each menu item?
thanks
Arret
Arret said:
Hi guys,
I am new to android app development and have started creating my first simple app in Android Studio. So far everything is working, I have a drawer menu, the user can switch between screens, back button in the activity bar etc.
As I learned the basics with tutorials on the internet I could not find an answer to one question.
Some tutorials suggest/show that you should switch the Fragments when navigating to another screens when selecting an item from the drawer. So I create Fragments and when someone clicks on a button I change the fragment.
However there are also Activities, and I can make the same thing work by creating new Activities for each screen the user should see.
I cannot really see a clear benefit from one method compared to the other. Switching Fragments may be less work but may also get more messy.
What is in general the best practice here? Create Fragments for each menu item and switch the Fragments or create a new Activity for each menu item?
thanks
Arret
Click to expand...
Click to collapse
When using a navigation drawer fragments is the best technique.
All your fragments are housed inside one activity which will allow navigation through drawer. If you start new activity on item select, you will lose the navigation drawer(because new activity will not have the navigation drawer). Even if you add a navigation drawer in all activities you create, the flow itself will be a mess.
Also using many activities can make app look heavy. Fragments on the other hand are very light and provide good layout options(search coordinator layout).
Fragments vs Activity
It depends on the app that your working on.
With activity, it is very hard to achieve re-usability of components. Where as fragments can be used to create reusable modules.
If you see in modules in your activity, then go for one activity and fragment each module.
It may not be strictly one activity per app.

ReLaunch 1.4 (repost)

Can someone kindly repost the APK of ReLaunch 1.4?
The links on the original post are dead now.
Thanks!
marcoNST said:
Can someone kindly repost the APK of ReLaunch 1.4?
The links on the original post are dead now.
Thanks!
Click to expand...
Click to collapse
There seem to be at least 3 ReLaunch forks. The original ends at 1.3.8 (the easiest one to find--Google is your friend). There is then the sequence you are asking about, moving from 1.4 to now 1.4.8. I've attached 1.4.8 below. Don't know anything about it. The source is the Russian The-eBook.org forum and the original ReLaunch thread. Going back from the end of the thread, all earlier versions (all dropbox links) seem to not be available, just like 1.4.
Then there is ReLaunchX which supposedly takes up where the original 1.3.8 left off and renumbers the newer versions starting again with 1.0 (now at 2.x). The GitHub for ReLaunchX is here: https://github.com/Leszek111/ReLaunchX and the app is available on F-Droid: https://f-droid.org/en/packages/com.gacode.relaunchx/
You have many choices!
Edit: one more choice. Member @digixmax offers 1.4.3 here: https://forum.xda-developers.com/showpost.php?p=72246935&postcount=42
Thank you so much @nmyshkin !
You are a star
nmyshkin said:
There seem to be at least 3 ReLaunch forks. The original ends at 1.3.8 (the easiest one to find--Google is your friend). There is then the sequence you are asking about, moving from 1.4 to now 1.4.8. I've attached 1.4.8 below. Don't know anything about it. The source is the Russian The-eBook.org forum and the original ReLaunch thread. Going back from the end of the thread, all earlier versions (all dropbox links) seem to not be available, just like 1.4.
Then there is ReLaunchX which supposedly takes up where the original 1.3.8 left off and renumbers the newer versions starting again with 1.0 (now at 2.x). The GitHub for ReLaunchX is here: https://github.com/Leszek111/ReLaunchX and the app is available on F-Droid: https://f-droid.org/en/packages/com.gacode.relaunchx/
You have many choices!
Edit: one more choice. Member @digixmax offers 1.4.3 here: https://forum.xda-developers.com/showpost.php?p=72246935&postcount=42
Click to expand...
Click to collapse
marcoNST said:
Thank you so much @nmyshkin !
You are a star
Click to expand...
Click to collapse
I just rooted using NM and I am using the default system. ReLaunch seems to have a very barebones interface, and I wish I could do certain things (the two main ones is to toggle visibility of the statusbar at will (making any application full screen) using some button or button combination, and the other is to change orientation.
What benefits are there to using a new version?
Thanks!
Winston S. said:
I just rooted using NM and I am using the default system. ReLaunch seems to have a very barebones interface, and I wish I could do certain things (the two main ones is to toggle visibility of the statusbar at will (making any application full screen) using some button or button combination, and the other is to change orientation.
Thanks!
Click to expand...
Click to collapse
I don't think you can exercise much control over the visibility of the status bar--at least not in Android 2.1. App developers either choose full-screen as the default display mode or give a programmed option which regulates the size of the window in which the app is viewed (essentially covering the status bar). I'd like to be wrong about that and I'll keep looking around a little, but I am not hopeful.
Screen orientation is easily regulated with an app. Probably the best one for the NST is Rotation Locker (there's a copy attached to this post: https://forum.xda-developers.com/nook-touch/themes-apps/app-reading-button-menu-t3815212).
You could theoretically assign a hardware button to the app. All it does is bring up a small menu (Portrait, Landscape, Auto). A simple tap on your choice makes the change, but a long-press sets up a background service that forces the change, even when apps want to resist. You'll see a notification that the service is running. You really need this for the NST because it does not much care for being in landscape mode and many apps will try to escape back into portrait with only a single tap on landscape.
Unfortunately the app suffers from a problem common to many in that it was not designed with e-ink devices in mind. Colors were used in the menu system and they are such that you don't see anything but the menu boxes! I've given you the correct order above, from top to bottom in the menu. A better and more general solution is to slightly darken the background color on all NST menus. This makes most of the offending "invisible" menu choices at least somewhat visible. The change is effected by replacing about 30 images in framework-res.apk. Two sets of images were prepared by someone on the Russian e-book forum. One is lighter and the other darker, but both are darker than the originals. I use the lighter ones.
Alternatively, if you don't expect to be running a lot of apps with potentially unreadable settings or menus but you would like a simple orientation toggle to assign to a hardware button, I could probably just extract that portion from my Reading Now menu app and assemble it as a stand-alone. It still relies on the Rotation Locker app, but you'd never see or interact with the menu, just press a hardware button.
nmyshkin said:
I don't think you can exercise much control over the visibility of the status bar--at least not in Android 2.1. App developers either choose full-screen as the default display mode or give a programmed option which regulates the size of the window in which the app is viewed (essentially covering the status bar). I'd like to be wrong about that and I'll keep looking around a little, but I am not hopeful.
Screen orientation is easily regulated with an app. Probably the best one for the NST is Rotation Locker (there's a copy attached to this post: https://forum.xda-developers.com/nook-touch/themes-apps/app-reading-button-menu-t3815212).
You could theoretically assign a hardware button to the app. All it does is bring up a small menu (Portrait, Landscape, Auto). A simple tap on your choice makes the change, but a long-press sets up a background service that forces the change, even when apps want to resist. You'll see a notification that the service is running. You really need this for the NST because it does not much care for being in landscape mode and many apps will try to escape back into portrait with only a single tap on landscape.
Unfortunately the app suffers from a problem common to many in that it was not designed with e-ink devices in mind. Colors were used in the menu system and they are such that you don't see anything but the menu boxes! I've given you the correct order above, from top to bottom in the menu. A better and more general solution is to slightly darken the background color on all NST menus. This makes most of the offending "invisible" menu choices at least somewhat visible. The change is effected by replacing about 30 images in framework-res.apk. Two sets of images were prepared by someone on the Russian e-book forum. One is lighter and the other darker, but both are darker than the originals. I use the lighter ones.
Alternatively, if you don't expect to be running a lot of apps with potentially unreadable settings or menus but you would like a simple orientation toggle to assign to a hardware button, I could probably just extract that portion from my Reading Now menu app and assemble it as a stand-alone. It still relies on the Rotation Locker app, but you'd never see or interact with the menu, just press a hardware button.
Click to expand...
Click to collapse
You are correct about the status bar visibility, I think there is nothing you can do about it if any specific app forces that setting. There is a configuration setting for ReLaunch to not show the status bar, but even then PocketBook Reader will display it.
For the orientation right now I am resorting to starting APV PDF Viewer (which I have set to landscape,) and then starting PocketBook Reader. Because PocketBook doesn't force a specific setting, it will continue on Landscape until I go out and something else changes orientation to Portrait. Rotation Locker seems like the perfect solution to somewhat streamline orientation selection a bit more. Also, I think I'll manage by knowing which selection to press and not care about the lack of visibility of its menu.
Thank you for your kind offer to assemble that menu app with the toggle built in, but I'd hate you to spend time doing that. Instead, I'll investigate more and go through all the posts you have already provided! :good:

Categories

Resources