Linking page to menu item - Android Q&A, Help & Troubleshooting

Hello everybody,
For some days now, I'm struggling with my first app. I use Android Studio to make my app. It takes some time, but it is fun to do.
Some background information about my app:
In my company new employees get a binder with all the information they need about the company. Houserules, what to do in case of fire, the history and more. All this still on paper and I want to change that. Less paper in a era where there are a lot of digital devices.
It took some time and research, but I 'm capable enough to build a simple app. There is only one problem I can't solve. I want to use an menu structure (three little dots and then a menu pops up.) I can assign menu items to this structure and then it goes wrong. I want to link a menu item to a page (let's say: activity_history.xml) with onClick, but nothing happens. Nothing, the app crashes all the time.
Is there someone who can help me to solve this problem?

Related

[Q] Save a number while on call

Hy everyone,
I've tried searching the forums for a solution but no luck..
Is there any way to save a number while having a conversation?
if i select the "keypad" during a call, and write down a number, there isn't a "save to contacts" option or anything similar to that..
i've fiddled around a bit and the only thing remotely similar to what i need is only an option to save a note during the call, but that is absolutely ridiculous, why would i want to save a note and then go and retrieve it.. i just want to save a contact while talking...
I take it that the phone number you want to save to contacts is different to the telephone call you are currently connected to.
Why not, while on a call, press the Home button, then select the Contacts tab, then select New Contact. You can then write the number in the new contact, along with other details.
hey fred_up thanks for the reply!
actually i did thought of that right after i posted the question, but i just think it's sad that we need to perfotm so many actions in order to do such a simple task... one i used to do once without even taking the phone away from my ear... (and no - i'm not complaining about my hd2, i love it despite its little flaws).
A very handy bit of software is called AutoLoudspeaker - if you do a search, you'll find it on this site. As soon as you take the phone away from your ear (ie the screen lights up via the proximity sensors) the phone goes automatically into loudspeaker mode. That'll take one step out of the process.
No doubt some clever clogs will develop some registry edit that means a long press of the Windows button will open up a new contact page.
Yeh i'm aware of that option, and i use it sometimes when at home, doing the coocking or dishes when the GF is out or while playing pc games but it doesnt really meet my needs when i need to remember a nuber for just a second after i hang up..
fred_up said:
No doubt some clever clogs will develop some registry edit that means a long press of the Windows button will open up a new contact page.
Click to expand...
Click to collapse
Now THAT WOULD BE GENIOUSLY AWESOME!
or maybe even a little app, that is called "numbers" for that matter, which can be located on the home tab and when opening it you'll get a numpad and a screen, and would be able to save numbers in a big font, only numbers, nothing else, the numbers will stay on the screen untill you decide to delete them.
unlike the notepad which saves the notes in a file you need to open, and which is not so finger friendly when coming to fast numbering..
food for thought
maybe i'll just forward the idea to a new app request
omricn said:
or maybe even a little app, that is called "numbers" for that matter, which can be located on the home tab and when opening it you'll get a numpad and a screen, and would be able to save numbers in a big font, only numbers, nothing else, the numbers will stay on the screen untill you decide to delete them.
unlike the notepad which saves the notes in a file you need to open, and which is not so finger friendly when coming to fast numbering..
food for thought
maybe i'll just forward the idea to a new app request
Click to expand...
Click to collapse
may be you can put in a quicklink for 'calculator' on home screen..
I have one, but for that matter - you cannot save numbers you type in the calc, they just vanish once the app is closed, and also - i don't like using things for a purpose they were not meant for, it feels a little stupid..
use panaromic calculator, pressing the x only minimises the program

App Development - Multiple Contact Selection

I am developing an app that sends a text to a group of people (my fellow firefighters) when we get a call. I have everything working but I have to hard code the phone numbers in.
What I want to do is to be able to hit menu and then 'select contacts' or whatever. In the new screen, I just want a simple contact selection with a checkbox so I can select/deselect people and the rest of the program runs with that list so I don't have to hard code the phone number, export, move apk to my phone, install, etc. every time I have to change something.
I have googled for about 3 days using many various terms and can only find guides to a single contact selection. None of them allow you to select multiple contacts.
Does anyone know a way to make this happen? I am pretty new to java so I don't know much about it.
Eclipse with the android base 2.2 (SDK v. 8)
Any help is appreciated.
Any help please? I am quickly coming up to this part of my project and it's the last thing I need to do.

Is there one decent timer for Android?

This may be an area where the dumbphones win, but I've only been able to find one app that is just a timer--open the app, you've got a timer--and it's way too cumbersome.
When the app opens, I need to see:
A number pad.
A Next button (for moving from hh/mm/ss).
A Start button.
ETA: Also, number pad input needs to overwrite the current field, not insert.
These features have been available on every dumbphone for over a decade. Can't they be done in Android?
This isn't exactly what you are looking for, but I use it.
https://market.android.com/details?id=com.hybrid.stopwatch
It has a stopwatch, too, but remembers which mode you chose and launches in that mode.
Yeah, I tried that one and it has all the same issues as Kitchen Timer, though it's nicer to look at. Who decided an Android timer would use this cumbersome +/- interface? It's made worse by the fact that once you get a cursor in a field, it inserts rather than overwrites, and won't jump fields.
Ideally, the only actions necessary to set a timer should be open-0-0-7-3-5-start, no navigation, no clicking up and down as if we had a device with two buttons (i.e. a watch).
Yeah, I looked around for a timer too. This was the easiest to use that I found. I rarely have to change the time on it so for me I launch it and hit go. But if I was constantly changing the value, it would be annoying. Makes you want to go out and write your own!
I'm poking around in App Inventor to see what I can manage--I would be lost writing code from the ground up. I think I should at least be able to come up with something with multiple one-button presets on the starting page, and they can probably be user-programmable, but I don't think App Inventor has the commands to give focus to a numerical text-box (thereby highlighting the contents for replacement and launching the number pad) on app initialization.
If you want, take the time to send me some EXACT specifications and I'll see if I have time to whip something up; we're not talking 10 year global weather modeling here! LOL
TIA,
Roots
Rootstonian said:
If you want, take the time to send me some EXACT specifications and I'll see if I have time to whip something up; we're not talking 10 year global weather modeling here! LOL
TIA,
Roots
Click to expand...
Click to collapse
I'm actually making progress in App Inventor, but if it comes to naught, I'll PM you.
Well, it's not finished and it's not pretty, but it's a timer
So far, I can't get the box to grab focus when the app opens, but it's still quicker for entering a new value than the others on the market. The empty red bar will bring up the number pad. Hit hours, mins, or secs to start the timer with the relevant units. Start/Pause work, and if you enter, for instance, "90 + Mins" it will convert it to 1 hour 30 mins. More than two digits in the Hours box will break the UI, but it will count them down
The preset buttons and persistent notification box don't do anything yet, and it doesn't remember the last value entered if you close the app yet, but the core functionality is there.
http://dl.dropbox.com/u/7299403/TimerSAUR.apk
ETA: enabled persistent notifications and shake-to-stop.
ETA2: remembers last value entered and whether Persist was checked, made some visual tweaks and added an icon.
ETA3: re-skinned the whole thing and hid the preset buttons for now. I can add features, but I'd call it a complete app, and more functional than anything on the market, for my purposes.
ETA4: I, um, even fixed those script errors that caused FCs if you tried to start a timer with all fields empty. Details.
D'oh! As far as I can tell, the App Inventor "clock" function pauses if the device is sleeping--not exactly practical for a timer :/
Maybe I'll have another run at it tomorrow.
Maybe you can save the time that it paused, then calculate how much time has passed when it wakes up and start from there. That won't help much if your time expires while it is sleeping, though. Will App Inventor let you prevent sleeping?
Talking to App Inventor community members, I think the clock provided is just not workable for something like this. Maybe if I'm willing to build a windmill to turn a doorknob, I could figure something out, but I'd probably be better advised to start learning real code if I want to pursue the matter.
Better yet, I could take Rootstonian up on his/her offer
Yeah, it shouldn't be too difficult to build. And since you already have some of the GUI worked out, you can just pass that on.
I've built one Android app but it was a while ago so I'm very rusty. But it sounds like it can be done pretty quickly.
Jason

Can aspx-based sites function properly on smartphones?

I ask this because the site I have to be able to visit and function 24/7 is aspx-based. Here is some details to understand my issue.
The site is an affiliate-type one and I transfer money from once bank account to users, and I have to do it, when they ask it.
So, it's not a big deal for me to do that, when I'm at my workplace or my home, but I have life and I cannot be 16 hours a day at home. When I tried to access the website from my smartphone (TCL 5042D) using Chrome and Firefox and Browser (phone's own browser)(I encountered the same problem at the same spot from all 3 of them-I'll explain the problem right now), I logged in just fine. The customer's accounts are in one page and from there simply press the + or - buttons (depends on what the customer wants) and then a popup will appear, having a 2 boxes that I have to write the amount of money and a description for the transaction. As soon as I press to the boxes, the smartphone zooms as it supposed to be (in order to see what you're typing) and the popup disappears from the screen disabling me to press the ok and to put description.
What, do you believe? Could it be a bad-written aspx site, or is it natural to react that way? And what do you suggest?
(English is not my mother language, and if you find any difficulty to comprehend the text above, post to the thread your question, in order to clarify what you didn't understand)

How to enter app settings from home screen?

I have a Samsung SM-T378V tablet running Android 8.1.0. I used to be able to press and hold any app on the home screen and a whole list of options would come up, one of them being the app settings, which no longer seems to exist. As you can see from the title I'm obviously trying to bring that back. Please let me know how to do this. Thanks!
I think you are talking about a small menu that appears when we tap and hold on an app icon. there is a general bug in oreo roms. that whole menu doesn't appear after the tap and hold. there is a workaround that you can try. just go to the apps section in settings and try to force stop your launcher app. if it doesn't work then clear data of launcher app.
Well that's embarrassing. I guess just like my friend who's a lawyer that works for Google once told me: GNHGJG. He used to say this to me all the time whenever we would talk about how bad they are at development yet continue to hire the same inadequately-skilled technicians and engineers for the sake of minimizing expenditures, which literally means "Google Needs Help, Good Job Google!" and since they have already spread thoroughly the notion of their superiority over iPhones, their place in the tech industry is virtually unchallenged. Thanks anyways.

Categories

Resources