[Q] Need help, just starting on Android - Android Software Development

I'm just now starting Android, and I'm a bit confused, sorry if this isn't the right place to put this thread, or even the right forum at all. I just need some help and this is the only place I knew where to come.
http://dl.dropbox.com/u/3965132/****%20past%201013/goddaaaaaaaaaaaaaaaaaaaaaamn.png
Am I doing something really obvious wrong?
I might post multiple questions here in the future, if that's ok.

I'm just getting started too. Buy try giving your textview an id, then on your button assign the [email protected] I know that syntax isn't right. But on my phone right now and can't get into eclipse to look.
Example: http://developer.android.com/resources/tutorials/views/hello-relativelayout.html
________________________________
Unrevoked forever
SkyRaider Sense 3.5
Radio 2.15.00.09.01

http://dl.dropbox.com/u/3965132/****%20past%201013/huh.png
???
Is it not seeing it as a Button?
Ok I needed quotations, but then it broke everything, uh.
Ok I managed to get the text and buttons, can someone tell me how to make a dialog pop-up when the button is pressed, and then make the back button close the dialog?

You really should work thru all the tutorials on here;
http://developer.android.com/guide/topics/ui/dialogs.html
________________________________
Unrevoked forever
SkyRaider Sense 3.5
Radio 2.15.00.09.01

rigman said:
I'm just getting started too. Buy try giving your textview an id, then on your button assign the [email protected] I know that syntax isn't right. But on my phone right now and can't get into eclipse to look.
Example: http://developer.android.com/resources/tutorials/views/hello-relativelayout.html
________________________________
Unrevoked forever
SkyRaider Sense 3.5
Radio 2.15.00.09.01
Click to expand...
Click to collapse
That would be if you were using a RelativeLayout, not a LinearLayout

Zombii said:
http://dl.dropbox.com/u/3965132/****%20past%201013/huh.png
???
Is it not seeing it as a Button?
Ok I needed quotations, but then it broke everything, uh.
Ok I managed to get the text and buttons, can someone tell me how to make a dialog pop-up when the button is pressed, and then make the back button close the dialog?
Click to expand...
Click to collapse
Create a simple activity and set its theme to dialog. If you do so the back button will work. (Use intent to start the activity)
Sent from my GT-I5700 using XDA Premium App

edit: double post ><

Zombii said:
http://dl.dropbox.com/u/3965132/****%20past%201013/huh.png
???
Is it not seeing it as a Button?
Ok I needed quotations, but then it broke everything, uh.
Ok I managed to get the text and buttons, can someone tell me how to make a dialog pop-up when the button is pressed, and then make the back button close the dialog?
Click to expand...
Click to collapse
You could make a blank alert box with no button. Probably not good practise to do that, but it would work.
something like:
Code:
AlertDialog.Builder alertbox = new AlertDialog.Builder(CLASSNAME.this);
alertbox.setMessage("This is the alertbox!");
alertbox.show();

Related

CommManager on a button like Hermes

Hi guys, just wondering. Can anyone tell me how i can get commmanager on a button like on my hermes. Obviously there is no dedicated button but i would like to use the voice dial button when held down instead or recording notes.
On my hermes the commanager is in the list but the trinity it isnt so i dont know how i can set this.
Thanks guys
Rob
Dude, if you had just typed in the same words you used to open up this entirely new thread into the search engine instead, you would have found your answer in like 30 seconds...
Here is the answer from someone else who did the same thing:
http://forum.xda-developers.com/showthread.php?t=295349&highlight=comm+manager+on+button
Remember - search first, post second!!!
Oh yeah.
You are absolutely correct and i apologise. I did search but i searched for "hardware buttons" and stuff like that and read through loads of stuff.
Thanks very much.
Rob
psargent said:
Dude, if you had just typed in the same words you used to open up this entirely new thread into the search engine instead, you would have found your answer in like 30 seconds...
Here is the answer from someone else who did the same thing:
http://forum.xda-developers.com/showthread.php?t=295349&highlight=comm+manager+on+button
Remember - search first, post second!!!
Click to expand...
Click to collapse
Yes, he would have found that, but then, when he tried the method suggested, he would have asked again anyway as it doesnt work! I copied the shortcut to the right place and selected it in buttons but the button now simply does nothing!
rjefferis said:
Hi guys, just wondering. Can anyone tell me how i can get commmanager on a button like on my hermes. Obviously there is no dedicated button but i would like to use the voice dial button when held down instead or recording notes.
On my hermes the commanager is in the list but the trinity it isnt so i dont know how i can set this.
Thanks guys
Rob
Click to expand...
Click to collapse
There is a program called iLauncher that will allow you to assign the ComManager to "quick launch" you can then assign the quick launch to a hardware button. I use the voicedial button.
Warny
Hi again Warny, people must be getting sick of us. lol
Mine worked ok. I set it to launch on holding the voice command button. I did what they said. copied the shortcut in.
Have you tested your shortcut directly buy checking that it launches from the program menu. At least that will tell us whether it is the shortcut not working or the button talking to the shortcut that is not.
Rob
warnysouth said:
Yes, he would have found that, but then, when he tried the method suggested, he would have asked again anyway as it doesnt work! I copied the shortcut to the right place and selected it in buttons but the button now simply does nothing!
Click to expand...
Click to collapse
rjefferis said:
Mine worked ok. I set it to launch on holding the voice command button. I did what they said. copied the shortcut in.
Click to expand...
Click to collapse
I expect a full apology.....just kidding
Glad it is working for you guys!
psargent said:
I expect a full apology.....just kidding
Glad it is working for you guys!
Click to expand...
Click to collapse
Sorry but it sill doesnt work for me. Firstly the file I see is connmgr.exe is this the right file?
If so Ive tried several times and pressing the button does nothing
Any ideas?
Wanry
warnysouth said:
Sorry but it sill doesnt work for me. Firstly the file I see is connmgr.exe is this the right file?
If so Ive tried several times and pressing the button does nothing
Any ideas?
Wanry
Click to expand...
Click to collapse
OK I fixed it the real file is in the windows\AppButtons folder not the windows\ dir on my spv.

Blueangel WM6 Contact list problem.

Ok so here's the problem:
Whenever i want to go to my contact list, either by pressing the contact button, or going to my contact list via, Phone or "Contacts" on the start menu, it just flashes "contacts" at the top, doesn't display my contacts, and then just goes back to the today screen.
Is there a fix for this?
Many thanks.
Anyone?
did you perform "power&reset + no/yes/yes + mail button" the first time?
raymonds said:
did you perform "power&reset + no/yes/yes + mail button" the first time?
Click to expand...
Click to collapse
No i didn't, is there anyway i can sort that out?
well, as nike said, "just do it". your problem would most likely be solved.
raymonds said:
well, as nike said, "just do it". your problem would most likely be solved.
Click to expand...
Click to collapse
I've pushed power&reset,.. but nothings come up, and it goes through the usual boot up.
As for the mail button, where do i find that?
are u sure u have a blueangel device ?
Xeon said:
are u sure u have a blueangel device ?
Click to expand...
Click to collapse
Hell yes i'm sure XDA IIs, PH20B.
Written on the back, underneath the battery.
Steve123456 said:
I've pushed power&reset,.. but nothings come up, and it goes through the usual boot up.
As for the mail button, where do i find that?
Click to expand...
Click to collapse
as soon as you push power&reset, you now press the camera&record buttons simultaneously. three lines will come up, and you use both camera & record buttons to navigate and toggle from no to yes to no... so at the end you'll get no/yes/yes (1st line/2nd line/3rd line)
the mail button is the 2nd button from the left (the one with the envelope icon).
all of these are in the wiki, which you're supposed to read before you attempt to upgrade. it appears you haven't done any reading yet, hehe...
Lool ok , now the mail button is the SECOND BUTTON BELOW THE SCREEN , with the Mailbox icon, next to Start up menu button on the left and the IE button on the right , to be more specific , the one with the set of 4 buttons . U can easily find it by look at the FRONT SIDE of the device . In Any case , you DID NOT find it , ill post you a Screenshot . cheersss
raymonds said:
as soon as you push power&reset, you now press the camera&record buttons simultaneously. three lines will come up, and you use both camera & record buttons to navigate and toggle from no to yes to no...
the mail button is the 2nd button from the left (the one with the envelope icon).
all of these are in the wiki, which you're supposed to read before you attempt to upgrade, hehe...
Click to expand...
Click to collapse
Silly me!
I did read the Wiki (Much help), and from there it was straight forward, it was just this little problem that was bugging me, but thank you very very much.
you're welcome. have fun with your new wm6!
raymonds said:
you're welcome. have fun with your new wm6!
Click to expand...
Click to collapse
Bingo,.. it's working.
Everythings running in order, just like it did when i had WM5.
oooh,.. i wonder if i still have Worms World Party on it.
that will be lost... a result of the no/yes/yes action you did.
in any case, i assume you wouldn't have any problem installing the said game.
cheers!
raymonds said:
that will be lost... a result of the no/yes/yes action you did.
in any case, i assume you wouldn't have any problem installing the said game.
cheers!
Click to expand...
Click to collapse
I got a backup sitting somewhere.
I'm not too fussed though that i've lost it, cause this device serves me alot more than just a games device.
(Jawbreaker is a time waster enough)

menu icon on home screen removal and bind to phisical key

The menu icon on the home screen takes a lot of space. There could be 4 icons in there instead. Can it be removed and then bond to another phisical key like the press of the ball?
zenderady said:
The menu icon on the home screen takes a lot of space. There could be 4 icons in there instead. Can it be removed and then bond to another phisical key like the press of the ball?
Click to expand...
Click to collapse
Not really understanding what your asking. Are you talking about when you hit your menu button?
I am also not really understanding the question which is why I didn't respond the first time the OP created the thread.
To OP:
Please don't make multiple threads for the same question just because your not getting a response!
DirectMatrix said:
I am also not really understanding the question which is why I didn't respond the first time the OP created the thread.
To OP:
Please don't make multiple threads for the same question just because your not getting a response!
Click to expand...
Click to collapse
Ok I'm glad I wasn't the only one. This was the first thread I looked at when I got into work. Had to wipe the sleep out my eyes take a sip of coffee and try to figure out this question.
Are they talking about the app drawer and phone tab slider on a Hero ROM maybe?????
DirectMatrix said:
Are they talking about the app drawer and phone tab slider on a Hero ROM maybe?????
Click to expand...
Click to collapse
Thats what I was thinking, but not quite sure. Just waiting on OP to respond.
I think he/she means the app draw, that's the only thing that makes sense.
1) That would require a complete re-write of the app
2) It wouldn't give you enough vertical space for the icon and text
3) All the buttons are already used (shocker!) The trackball can be used to select an icon and click on it, so that would have to be disbaled.
ok thx for the answears and sorry I crated 2 threads about this one. On the first one I messed up the thread name so I thought nobody would read it. Going back, I am talking about the button that is on the bottom of the screen, the one that pulls up all the apps. That one takes a lot of space, actually a whole row where there could be other icons instead.
So I was thinking if there is a possibility to link that menu to an actual phisical key, like pressing the scrolling ball.
zenderady said:
ok thx for the answears and sorry I crated 2 threads about this one. On the first one I messed up the thread name so I thought nobody would read it. Going back, I am talking about the button that is on the bottom of the screen, the one that pulls up all the apps. That one takes a lot of space, actually a whole row where there could be other icons instead.
So I was thinking if there is a possibility to link that menu to an actual phisical key, like pressing the scrolling ball.
Click to expand...
Click to collapse
Yep, that's what I thought, read my post above, it will explain why it's pointless.
actually the ahome does put 4 new icons on that bottom part but I don't know how to bind the trackball. No it would not have to be disabled the trackball action as long as there is no icon pressed. So the drawar would be pulled when the trackball would be pressed only if no icon is pressed, otherwise the icon would start
Yes because aHome moves all the other icons closer together, which would require lots of work to get launcher.apk to do the same.
dxtop has a 5 icon dock, and can deploy launcher by holding menu key.

Sym on hardkeyboard

It drives me nuts there are no '<' '>' symbols on the hard keyboard. When you press alt+space it brings up a popup of extra symbols. Anybody have an idea of how we can make this popup editable? I'm pretty sure its not tied to your IME because it doesn't change when I install a new one or use swype, etc.
I'm not sure where to look on this anyone have an idea?
Looking for the alt+space popup in ASOP
schwiz said:
It drives me nuts there are no '<' '>' symbols on the hard keyboard. When you press alt+space it brings up a popup of extra symbols. Anybody have an idea of how we can make this popup editable? I'm pretty sure its not tied to your IME because it doesn't change when I install a new one or use swype, etc.
I'm not sure where to look on this anyone have an idea?
Click to expand...
Click to collapse
im pretty sure you are posting on the wrong section... but
hold alt+K for ], } and >
hold alt+J for [, { and <
hold alt+L for \
What about a "\"?
EDIT: Ah I see. The same works for "\" however only with the stock keyboard enabled. If you're using swift key, the key you're pressing just repeats.
theclueless said:
im pretty sure you are posting on the wrong section... but
hold alt+K for ], } and >
hold alt+J for [, { and <
hold alt+L for \
Click to expand...
Click to collapse
I thought this was section for brainstorming mods... Where should I repost for better results? Also, alt+L just gives me ')' how do you cycle through them?
Edit: ok I see it is tied to the IME cause switching to a differnt one wouldn't let me cycle through like you explained, switching back to stock keyboard now I can. Guess that sums it up.
schwiz said:
I thought this was section for brainstorming mods... Where should I repost for better results? Also, alt+L just gives me ')' how do you cycle through them?
Click to expand...
Click to collapse
you hold both keys until an onscreen menu pops up
Would you be able to set one of the quick keys up to do it ???
bled82 said:
Would you be able to set one of the quick keys up to do it ???
Click to expand...
Click to collapse
yeah I thought about making a little app to do that but hate to waste a quick key for that, although I do have an extra one right now. But I just put in a feature request with smart keyboard pro for them to make the symbols popup editable when pressing alt+space. Hopefully they will do it, shouldn't be to tough.
Just heard back from SmartKeyboard dev and he says the popup from pressing alt+space actually isn't tied to the IME and he can't override it. Still waiting back to hear if he know how to mod it. In the meantime back to the drawing board. Anyone know where this popup lives in ASOP?
I would like the quick keys to be the option. I never use them.
I would like a program or hack to remap the quick keys to something.
one would be switching WiFi on and off.
Perhaps I can find an app in the market that does just that with one click, and i can then set that quick key to that prog?
I'll have to look.
ps. Corylulu, your back down to number 4 again
i think i looked through every alt+key hold combo, but i could not find a ^ ?
wilnotdie said:
I would like a program or hack to remap the quick keys to something.
one would be switching WiFi on and off.
Perhaps I can find an app in the market that does just that with one click, and i can then set that quick key to that prog?
I'll have to look.
ps. Corylulu, your back down to number 4 again
Click to expand...
Click to collapse
Yeah, I know. Really I still consider it number 3 since the 2nd and 3rd is the same guy.

Handling the genius button press

We need to figure out a way to customize the genius button. It would be a great service to everyone, especially if it doesn't require root.
I looked at logCat, and I see that the button fires up the following intent:
Code:
{ flg=0x10000000 cmp=com.nuance.android.vsuite.vsuiteapp/.VSuiteStartSession }
I'm not quite sure how to create an intent handler for something that doesn't have an action or a category. I even created a test app that matches the intent above exactly, but only the stock genius app launches, and I'm not given an option to choose my default handler for the action. I don't think there is a key handler to intercept either. Any ideas
You know, I was thinking about this all morning (eventhough I don't have the device). Back in the day we remapped functions for certain keys (as g1 didn not have search key of any kind). Can someone go into /system/usr and look what's in there? I believe we are looking for keylayout folder. In that folder we should have some .kl files. They named different from device to device (using Cliq now and they are all named MorrisonXXXXX.kl). Look through those files and find genious button function. From there it should be very easy to change it to google search (or voice search) but substituting the function and pushing the file back in its location. I would have no problem doing it but as I said, I don't own the device myself.
Couple more option (highly unlikely to work):
Clear defaults in Genious app
Freeze Genious app
I don't see those working but who knows... we may be able to assign new default after doing this.
kl files
Here are the files from /system/usr/keylayout
Looks like the correct entry is in glacier-keypad.kl, but it is mapped to a "search" function.
Not sure it will help, but I'd love to see search there instead.
I don't mind the genius button, it actually works fairly well the more you use it. However, I don't like that it disables the search button.
It should be single press for search, long press for genius.
That would be perfect.
rjgii said:
Here are the files from /system/usr/keylayout
Looks like the correct entry is in glacier-keypad.kl, but it is mapped to a "search" function.
Not sure it will help, but I'd love to see search there instead.
Click to expand...
Click to collapse
Ok, I'm at work so I can't really do anything with this but I will look into into it later, when I get home. You are correct, it's in the glacier-keypad.kl. Unfortunately, it's set to the same thing as regular search i.e. In G1 we used to set it to SEARCH as well but it would bring up regular search.
I will try to PM GeniusDog (the guy who figured out how to remap keys) when I get home to see if he can give me some insight on this.
Did anyone try to freeze (disable) Genious app to see if it releases G key to regular search?
We should also contact ChiefzReloaded, he would know how to do it since they put CM on Slide which did have Genious on it to begin with.
Ok, so I guess this is a little different then the Slide. Slides G key was mapped to FUNC_4. Our G key already mapped to SEARCH, its just that Genious overtakes it. I twitted Eugene_73 to see if he could help, he was the brain behind Slide's development in this area.
If its helpful to anyone, holding down the menu button will bring out search keyboard. I really wish the would give us a option to chose from the voicesearch ¦,/
Sent from my HTC Glacier using XDA App
borodin1 said:
Ok, so I guess this is a little different then the Slide. Slides G key was mapped to FUNC_4. Our G key already mapped to SEARCH, its just that Genious overtakes it. I twitted Eugene_73 to see if he could help, he was the brain behind Slide's development in this area.
Click to expand...
Click to collapse
Hmm...what about mapping it to a function key (like on the G2) and then assign whatever action we want to that function key? I will try that out as soon as I get some free time.
Alright, so I tried modifying the key layout file on my G2 (vision-keypad.kl) just to test the process and I am not allowed to make any changes. Just get a "Read-only file system" response. I'm sure it would be the same for the MT4G. Anyone have ideas on what else to try? I really want to find a solution without rooting, but any solution would be a good start.
root
We have root now, so we should be able to modify the key mapping files.
If I find any time today I'll give it a shot.
rjgii said:
We have root now, so we should be able to modify the key mapping files.
If I find any time today I'll give it a shot.
Click to expand...
Click to collapse
Great. You will probably have to remount the system partition like this before you can write to it:
su
mount -o remount, rw /system
Oh how I hate that genius button..I would absolutely donate immediately for an app to remap it to search. That would be amazing.
Sent from my HTC Glacier using XDA App
Did anyone try to uninstall (disable) Genious app yet? Since the G key mapped to SEARCH already, this may release it to actuall Google search.... just thinking out loud
I froze it last night. No response from the G button after that.
21productionz said:
I froze it last night. No response from the G button after that.
Click to expand...
Click to collapse
LOL...
They really mean "you" in the commercials!
You gotta customize everything..
Sent From The Moon... With a HTC Glacier
I updated my voice search in the market when I first got the phone, and for a time when I pushed the button is would actually give me the option to choose what app handled the action and I could choose voice search. However, after one time choosing the Genius button it never asked again. I wonder if there would be a way to continuously clear the Default so that it always asked.
borodin1 said:
Did anyone try to uninstall (disable) Genious app yet? Since the G key mapped to SEARCH already, this may release it to actuall Google search.... just thinking out loud
Click to expand...
Click to collapse
I disabled dragon dictation and genius, and after holding the button for a couple seconds, my phone crashed and rebooted. Multiple taps on the button seemed to do the same thing. Leaving dragon dictation enabled and genius disabled seemed to be less prone to crashing.
This has been solved in this thread:
http://forum.xda-developers.com/showthread.php?t=836702

Categories

Resources