[Q] Output and Input via Lockscreen - Design, Prototyping, UI, Graphics

Hi,
I'm currently trying to program my first android app and I want to put a textfield and some buttons on the lockscreen.
I've watched some tutorials on youtube for basic information but I don't have a clue how to get the bottons or the textfield on the lockscreen. I am using eclipse,by the way.
Does anyone know how this is done? I hoped there might be a command I can put in the xml file, like android:display="showOnLockscreen" or somesthing like that.
Thanks for your help.
Simon
PS: can someone move this to the Java for Android App Development section?

Related

Need some help... Please

I don't know if this has been asked and answered before, but I need some help please.. Okay you know how on the T-Mobile Dash when you select a program or whatever and when you go back to the homescreen the program is displayed?? Well I was wondering does anyone know how to clear them from there when you are done using it?? Any help would be greatly appreciated..
Also I installed a program and didn't like it so I deleted it but the short cut or whatever was still on my homescreen so I had to reset my phone to get it cleared..
Thanks as always
Doesn't the default homescreen display your most recently used programs? If so, just use other programs until the one in question is pushed off of the list.
outphase said:
Doesn't the default homescreen display your most recently used programs? If so, just use other programs until the one in question is pushed off of the list.
Click to expand...
Click to collapse
I know that, I was wondering if there was something else I could use..
If you never want to see those icons go and edit the home xml. Your home screens are in Application Data/Home (or something like that, I'm not sure). Find the xml file you are currently using as Home screen and edit it on a PC. Remove the snippet of the MRU list.
Sorry I don't know a way to actually clear the list on the go.
(BTW, a quick note: please refrain yourself from using red. It's pretty hard to read.)

Bit of a problem with an app Im making...

Hi,
I am new to android development so sorry if this question has a really obvious answer. I am hoping to make a game for the platform but to start with I have just tried to make a basic layout of 4 buttons to move in different directions and then have a background and an image in front which will be my sprite and move across the screen depending on what button is pressed.
At the moment I have created two views. One via the main xml document and the other through the java code itself. The java code one contains the background and image to be drawn and the main.xml contains the buttons.
At the moment I have my code set up like this:
this.setContentView(R.layout.main); <<<<<<<<<< xml
this.setContentView(this.myTestView); <<<<<<<<<<<<<< java
I am aware that I am basically setting one and then setting the other over the top of it and this means that only one of these views will appear. Does anyone know of a way I can use these views in conjunction so that both the images frm the java file and the layout from the xml can both be used?
Cheers for any help.
ExO
As far as I know you cannot do this. By calling setContentView you are overwriting the object which held the content previously.
Once the view is set you can add items in code after this call.
Why do you not have all the elements in the xml?
aw ok, i wasnt sure if it was possible or not. The reason I did it like this was just because I'm still learning to use both languages. Aswell as that I am using droiddraw to generate my xml and couldnt see an option within that to add images etc. Cheers for the reply .

Desktop Shortcuts (coding/management apps)

Hi, new user here, thanks for a great forum.
I just got my HTC Hero and i am loving it. The only thing i am missing very much is a working application for renaming shortcuts. If you add a shortcut to a person "James", default action create message, it shows on the desktop as "Send to J...", which would be great to be able to change.
I have tried both Anycut and Bettercut but none of these work on my phone. I am currently using Modaco 2.5 Core, but i haven't been able to make any of th apps work with the generic european 2.73 rom either - the icons i create do not show up, the Edit button shows no shortcuts to edit, and the apps crash.
Question is then,
1) do anybody have any idea where shortcuts are stored in the filesystem, and how they are represented, data wise? I created a new shortcut and then copied all .db and .xml files to the pc and started looking for it with a sqlite client and file search I but couldn't find anything there. (lol, hey, had to try something
2) do anybody know a combination of a custom rom and a shortcut management application that work together on the HTC Hero?
3) do anybody have any pointers to how to manipulate the shortcuts through java code/api?
Thank you in advance. Hope to be contributing to the forum, im truly fascinated with this thing ! Truly a great gadget.
Best regards

how to customise home screen, help needed

hi guys,
I was wondering if someone could help. I have done a lot of searching but unable to find an answer. I am using the GXFX's rom which I am very pleased with. I also tried to install sushi's touchflo 3d config.cab file on top of this but get errors referring to 'exception errors', so I removed it. What I would like to do is
a. customise the home screen to add new icons. At the moment I have the large clock, call history and calendar. Is tehre any way of adding more icons or changing this screen without losing existing functionality and stability ?
b. How can i put an icon that open a web page to a certain url address, is this possible. I am thinking of terms of say windows XP. Maybe I am asking too much.
many thanks for your help.
can anyone help please ?

[Q] A Few Themeing Questions

Hello GUIse,
I am sort of new to theme porting, I have ported 2 themes from the SGS (Gingerbread Theme & Black Android Theme by Pele) the Gingerbread Theme ported fine with no issues, on the other hand, the Black Android Theme went across fine but there was an issue with the notification area, the "clear" button to clear all notifications has gone the incorrect colour (The button itself not the text) I was wondering, where is this button based so I can change the colour?
I presumed it was on Framework-res.apk but found nothing.
I heard you have to edit the XML settings but was unsure which XML it was as there are plenty.
Second Question: What program do you use to edit XML files? I used notepad and it came up with mumbo jumbo.
Thanks in advance, I appreciate any help.
Everyone has to start somewhere, but if you do please show some self-initiative and search a bit for yourself. There are tons of topics on how to start on advanced themeing. Here's one: http://forum.xda-developers.com/showthread.php?t=916814
To answer your second question, you can use notepad++ although i use UltraEdit.
Notepad may work but you have to decompile the apk to view the xml correctly (you may already know this). As far as the clear button goes, ive done this before ages ago but cant remember, ill try and dig out the info unless someone gets there first.
I can tell you where to find one thing thats totally unrelated but you could use it as a test : to change the volume bar you have to edit progress_horizontal.xml which is within framework-res.apk/res/drawable/
Hope some of this helps.
cTrox said:
Everyone has to start somewhere, but if you do please show some self-initiative and search a bit for yourself. There are tons of topics on how to start on advanced themeing. Here's one: http://forum.xda-developers.com/showthread.php?t=916814
Click to expand...
Click to collapse
Just so you know, I did try search initially but obviously not hard enough. I wouldn't of posted anything if I didn't know what to look for.
Thanks for linking me to that thread.

Categories

Resources