Start App after boot, instead of lockscreen - Java for Android App Development

Hello,
I hope, I am allowed to post that toppic here.
I am writing an android app, where the application should start before anything is happening. the best case is, that it starts instead of the lockscreen.
I found several answers, all like:
Code:
KeyguardManager keyguardM = (KeyguardManager)getSystemService(Activity.KEYGUARD_SERVICE);
KeyguardLock lock = keyguardM.newKeyguardLock(KEYGUARD_SERVICE);
lock.disableKeyguard();
but it does not work (I also don't know where to put it...)
The app starts after boot and after the lockscreen is disabled.
I also found that thread http://forum.xda-developers.com/showthread.php?t=2273021&highlight=lockscreen but I don't want to replace the whole system
Hope, you can held me with this problem.
Thank you

Related

disallow screen rotation

Hello!
I need to write software that disallows any screen rotation on my Wizard.
How can I do it? I didn’t found any registry settings for this. The best way
that I see is hooking ChangeDisplaySettingsEx. But unfortunately, SetWindowsHookEx
doesn’t works on WM 5.0, at least it said on some topics. Please, give me any solution for this problem or example code to hook some API function.
wm5: [HKLM\System\GDI\Rotation]
Angle=dword:0
00000000 portrait
0000005a righthanded landscape
0000010e lefthanded landscape
then RegistryNotifyCallback will do
tanks a lot
I will try this way.
But I afraid it will be notified after screen rotation starting.
Adjusting this registry value in regedit tool did't help.
So I suppose this value is changing after rotation is done.
You can delete the start up service of ScreanRotate.
Go to HKLM/Services/ScreanRotate and delete it.
I think before you doing this,you can export it to a reg file
It's not bad idea.
but delete this key leading to system restart for apply
I just try to stop this service.
Not luck : (
This key not present in the registry storage.
I am under WM 5.0
Maybe you talk about some early system.
Hi hoblano, I'm experiencing the same problem, did you find a solution ?
thanks,
Scalposcarno
use task manager 2.7 and stop service...if you know it is service...
same way to stop kbd lights...btw,
I tried, but the result is the same as the one obtained by manually deleting the Screen Rotate voice within the services voices in the registry: avoiding the load of the service providing the icon on the task bar enabling the user to rotate the sceen one or more times by tapping on it.
I still don't understand ... at this point the most probable thing is that the service that rotate the OS screen when rotating by hand the HW screen, is invisible with respect to registry voices and to applications like Task Manager 2.7 or MemMaid. Apart from criticizing the constructor choice (why didn't they thought that someone should have been more comfortable using only one view mode ? e.g. landscape one), is there a way to obtain a list of core services and to avoid one of those to be loaded ? or, otherway, is there a way to intercept the event thrown when manually rotating the screen of the terminal ?
By the way, I'll have to do it with Java ...
thanks all

[APP] [25/3/09] [0.9 Beta] Cell Broadcast as Operator Name (Manila+Dialer)

Hey guys, my first real contribution here. I was using the Cell Broadcast solution with a today plugin posted here.
I had two major issues:
1. With Manila, can not use another today plugin
2. Need to use S2U2 because waking up of device, otherwise device stays on for sometime and screen touches are registered.
I played a bit with the registry and found out that setting two keys will reliably set a string which would be used for the operator name hence changing the string in Manila, dialer, etc.
I intercepted the messages coming from "Network" and extracted the CB body, if the device has been on for less than 5 seconds, then I assume that the cause of wake up was the CB, hence I suspend the device, its working quite nicely for now, will need your feedback for a probable general working release this weekend.
To do / Known Issues:
- FIXED: One key is hard coded as 41006 (my operator code), need to get it from phone. Otherwise ask user for it.
- Configurable from field, "Network*" is hard coded for now.
- Autostart using Init registry
- Hide / Remove UI
- For now UI shows incoming CB messages, power events, time difference between power on and message incoming for deciding to suspend or not.
Hello. I did search on this topic too. but did not find anything else that you do. but exactly what does not work. I got a newer version? thanks

[SOLVED 17-12-2009]Possible to switch position of shortcuts, or delete and add again?

Hii guys,
I was wondering if it is possible to switch the possition of the shortcuts, or do you have to remove everything and add them back again?? I couldn't find it so quickly in any other thread.
Thanks in advance
The Solution is to be found in post 6 + instructions!! Thanks to Som03ne!!!
==================================================
Here is a small app to re-order the Sense shortcuts.
Its GUI is very simple using existing controls/components, since I did not have too much time to put in it - resulting not much gui control modifications, meaning - Up - means up in the list -> down in the display.
Or to put it short - Clicking UP moves the element down, and clicking DOWN moves the element up.
On exit - you can select either to apply the changes, or drop the changes.
For changes to take effect - you should Power Off and Power On the device
(Or any other way to cause Sense to Exit and Re-Load)
I tried it on my device and it works.
Any comments - post in this thread, and Id check for them every now and then.
===================================================
There is . . . but
Filipek88 said:
Hii guys,
I was wondering if it is possible to switch the possition of the shortcuts, or do you have to remove everything and add them back again?? I couldn't find it so quickly in any other thread.
Thanks in advance
Click to expand...
Click to collapse
You can do it with registry editor
HKLM\Software\HTC\Manila
There are keys marked with 0..9 (or 0..n)
each item is a shortcut on the home page.
Just change the numbers to the order you like.
If you want the 3rd element to be the first -
You should do the following:
rename "0" to "XXX"
rename "2" to "0"
rename "XXX" from the previous step to "2"
Enjoy.
OK thank you for the fast response, but is there no easier/faster way for this??
if not: then I'll do it with this
I have not found any
Filipek88 said:
OK thank you for the fast response, but is there no easier/faster way for this??
if not: then I'll do it with this
Click to expand...
Click to collapse
Maybe there is, but I tried to look for something easier,
and did not find anything.
(I believe it is possible to write a small app to do it,
but I dont know when I'd have the time to do it)
OK, well if you ever make something like that, send me a PM and I will post a link to your topic where you'll post the application, in my first post, so people who will search for this answer and come in this topic will find it.
Enjoy
Filipek88 said:
OK, well if you ever make something like that, send me a PM and I will post a link to your topic where you'll post the application, in my first post, so people who will search for this answer and come in this topic will find it.
Click to expand...
Click to collapse
Here is a small app to re-order the Sense shortcuts.
Its GUI is very simple using existing controls/components, since I did not have too much time to put in it - resulting not much gui control modifications, meaning - Up - means up in the list -> down in the display.
Or to put it short - Clicking UP moves the element down, and clicking DOWN moves the element up.
On exit - you can select either to apply the changes, or drop the changes.
For changes to take effect - you should Power Off and Power On the device
(Or any other way to cause Sense to Exit and Re-Load)
I tried it on my device and it works.
Any comments - post in this thread, and Id check for them every now and then.
This worked! Thanks. You just need to produce a Sense UI version. THis is especially useful if you have 16 links instead of the standard 9.
Wouldnt it be nice if you could reorder apps like on the iPhone? Not functionally necessary, but nice to look at nonetheless
Thanks again.

[Q] Add changelog/info pop-up at app start?

Hello! i have started making an app for android, and im really really a beginner. however, i got the app working (its a soundboard) but i would like a info screen to pop up when you start the app. i think its really easy to do, but i totally have no idea of how to doing it... can someone please help me?
bump... can someone help me quick with this minimal problem...
OK, this should be pretty simple.
Create a boolean value in the shared preferences, let's call it firstRun. In onCreate() you will check whether this value exists in the preferences. If it does not (or if it's set to true), you know it's the first run and you can show a dialog and set the value to false. If the value exists and is set to false (once you access the value for the first time it will automatically be created in the preferences), then you won't show anything as it is not the first run.
Showing a changelog is just an extension of this process.

Advice needed - Editing Settings.apk to create a shortcut

Hi.
I`m in the process of making a ROM especially for disabled / sight impaired people and am making good progress.
But two things I need to change are:
1) The location of the Talkback toggle (Instead of having it in Settings > Accessibility > Services) I want to put the slider toggle on the main settings screen above the Wifi toggle. I have found hacky ways of getting to the accessibility screen (using a settings shortcut and using home2shortcut to apply the shortcut) however, cyanogen have changed something in their code and making the same shortcut now does nothing, or rather it takes you to the accessibility screen, but you cannot go into talkback, you try and it just kicks you back to the accessibility screen
2) Remove the confirmation screen when you enable talkback.
I am familiar with the new gestures to suspend talkback temporarily, but I want to go one further than this and be able to switch it on or off at will, without confirmation.
I have looked into even making a SQlite script but this can only be used from CWM recovery apparently...
I just need to know what entries I need to tchange in the XML. I`m at ease with decompiling apks which I have done.
I would love to have this talkback toggle on the main setting screen, and it would be fantastic if I could remove the confirmation dialog from talkback itself.
Can anyone help?
Many thanks
wrong section. this goes in q&a. if it actually was something that you already developed, then it would go here.
Thank-you. Could A moderator please move this thread to Q and A please?
I thought as it is related to developing it may go here. Oh well...
Yes it is related to development as is the entire site, but the format is set, please read the Forum Rules on posting, Thank You Sir.
Anybody?
you should rather learn how to track code-links. theres acouple of very helpful tools like grep and godir. basically you start by searching for the same display text you see on your phone. you find that you have the variable name. you search for that one and it links into the layouts. you search for the layout id's and it links into the actualy code. you will run into these problems again and again, so better try to track it down on your own once and next time it happens you'll be fine.

Categories

Resources