[Q] [HELP] [NEWBIE] Guidance needed for creating a simple app/mod - Java for Android App Development

Hello,
A friend of my asked me to create a simple button on his Galaxy S 2 home screen,
that will simultaneously turn on bluetooth and GPS, and will start his navigation program (e.g WAZE).
I wondered what is my better option for doing so - writing a simple application(i'm familiar with java) or creating a simple mod for his ROM (which I have no idea how to do, but figured It's time I learn to anyway..)
So what i'm asking is, actually:
1. Can I create a simple java application that turn on bluetooth and GPS on his phone, or is it restricted?
2. Is creating a mod that allow these option from the notification bar is complicated? what do I need to know for doing so?
3. What do you guys find as the better option - creating an app (and maybe a widget) or creating a mod?
thank you all in advance...
I would appreciate any help
-wipkiko

Since your friend is asking for a shortcut to do three tasks (enable BT, enable GPS and open an app) I would create a widget directly. I would not mess around with mods.
There are no restrictions, you just need to add the permissions in your AndroidManifest file :good:

Definitely agree with patedit,
Custom roms are not terribly hard to make, but android has exposed the widget sdk exactly for this purpose. Unless you absolutely need to place the button in an extremely exotic location, you should write an app.

The easiest way to do this is to create a widget! It will not take you long enough to learn how to make one but it won't be easy too!! Don't mess with mods just create a widget

The disadvantage about creating a mod for his ROM is that he would probably have to flash it. This way it's also not as easy to uninstall the "widget".
In short, definitely the widget.

Related

Switch Radio on&off from .NET

Hi, I'm a .NET developer and I want to start to develop mobile apps.
My last device is a KJAM that need pen-tap to toggle radio on & off and this is a little frustrating for me (especially when it rains). So I decided to develop a simple (!) app so I can switch my phone on and off simply pressing the "red" button (for example).
Now I found how to bind the red-button-press event to my app but I really not yet found the (damn) method that let me to switch the phone (radio) on and off.
Can someone give me PInvoke samples to use in my C# app?
thnks
At least I can point you to an application, that does what you want.
read the thread http://forum.xda-developers.com/viewtopic.php?t=34831&highlight=
See my posts there (Conchas), and the .exe turned available by Koksie.
The same .exe toggles between enable/disable.
It is really great
thanks a lot ...
even if I wish to develop this app by myself (to start to "surf" the PInvoke hell) of course your advice will help me to reduce my frunstration switchin on my phone
You can always PM Koksie, asking for the function call he used.
I'll do it but he downloaded the program ... in the meantime ... the hardware button "4" now switch my radio on and off

start menu - programs, settings...

ok, question
we know goddamn start menu,
my main problem is to make "settings" field able to launch something ELSE than pseudolauncher named "settings"
i found app from unpacked winCE rom ,that is far way better ,than wmxx settings m$hit.
look @ this, and compare both...
http://rapidshare.com/files/43325355/control.EXE.html
what files are needed to be hexedited to change that current cretinal launcher to that fast, safe app?
sry for LQ language,
..
p.s. and jesus, do not tell me about smallmenus,etc.
uhm, how does your settings field launch "settings" and "programs"?
like i said, my english is not good enough to describe what i mean..
start menu is "app", that holds (let's say) links to "programs" and "settings"(which windows are another program - pseudolauncher-like) - and these entries are two things, that i need to remap to do somethnig else, than usual....
need any idea what can be done to override these menu positions behaviour..
i hope it is clearer now...
i do not want to use start menu replacement etc, i have wm5newmenu for useful menus;
lets say i am curious...how. as simpliest try i can imagine hexediting in some files....which ones...
in other words: i want to set under "Settings" this app from link.
i cant be clearer...
Hi,
have you looked in \windows\startmenu folder? There are files and folders
that are displayed in the startmenu. Maybe you can play around with
them to get what you want. You can add or delete folders, rename the
original settings folder and add your own folder.
Ok no exe is started then, but is this necessary for you?
Houser
Best thing is you use gsfinder (freeware file explorer). With gsfinder, you can make shortcuts to your favorite applications, then copy these shortcuts to \windows\startmenu (of course you can also rename these shortcuts). This way you have your own personalized launcher
it is nice, that you are trying to help me, but i know everything about shotrtcuts .
i just need to override menu start hardcoded "programs" and "settings" assign(e)ments.
i am not noob lol
Have you tried Wisbar Advance?
helterskelter said:
Have you tried Wisbar Advance?
Click to expand...
Click to collapse
you must be kidding
(no offece, just lolled while reading).
WA is not good way to do the things
i am minimalist, you know..
I think there are no responses, because its still not quite clear what you want to have.
How about describing step by step what you want to see (or not to see) when pressing start? Because all the answers sound good to me regarding your previously described problem....
Hope you get help soon ^^
i do not want to change start menu..:S
i just want to change "programs" and "settings" tap behaviour....
only thing i can imagine is hex editing, but i do not know where menu start coded is...
Hex editing????
You need to dissemble and rewrite a core OS component.
Which means:
a) Get a good ROM dump
b) Find the DLL responsible (not sure maybe coredll.dll or aygshell.dll)
c) Unsign it
d) Get IDA
e) Read and understand all its code
f) Rewrite the relevant portion
g) Sign new file with privileged certificate
h) Copy to device
The reason you did not get the answer you seek is because this kind of undertaking is far beyond the skills and knowledge of most people on this forum including my self.
Also its way easier (if maybe not as comfortable) to use start replacement apps.
(Oh, and if you are willing to take some friendly advice: Your English is just fine, but your first post is full of curses and is very aggressive. It deters people from replying because they might get a bang on the head for their trouble. A friendlier language next time may get better results)

CycloneSkins [Knowledgable Coder Wanted]

Hello,
I have 'created' (to an extent) the first Horizontal Theme , based off of the built-in CPR file, for Titanium Homescreens on WM6.5, however I have a setback...
This theme is being developed initially, and probably mainly, for the T-Mobile DASH (HTC Excalibur/S620) which as a 320x240 screen. In order to make this work, i need a very simple background program running. This is what the program should do:
Detect a certain set of pixels on-screen, and check to see if colors match up with predefined values (much like MortScript's "ColorAt()")
If the values match up, swap UP/LEFT and DOWN/RIGHT (to emulate horizontal movement)
likewise, if it detects that the active window is the Desktop/Homescreen, it will Swap
If not, it will not do anything
This program needs to be low RAM usage, and not all that big (which is optimal for every program). The reason I have it check pixels is for people, like myself, who run SmartToolKit , which adds a 'mask layer' over the HomeScreen, making it harder to detect if it is actually the homescreen. If someone can create a better way of doing this, then thank you!
However, my main concern is getting a coder to make this application for me, without it the theme can essentially not exist. More details will be given upon contact.
If you are interested, please PM me or E-Mail me (both are provided by XDA through my profile).
Thank You all!
I am going to work on the actual theme today...
Is there anyone who could make this very simple program for me?
Hey,
I dont know if this is considered 'double posting' since these posts are weeks apart...anyways.
I am in DESPERATE need of some kind person to lend me a hand as far as making really a simple app. I do not have the environment set up for making Windows Mobile applications (i do not have Visual Studio as microsoft insists I do). The app would be:
1- ButtonSwap:
This one will check certain pixels on the screen and use them to confirm if it is the HomeScreen. If it is, then it will swap keys, if not, it wont do anything.​
So PLEASE, if someone is willing to do this VERY SIMPLE task, i would be very very grateful!
Sincerely,
Max B.
Cyclonezephyrxz7

Got some CyanogenMod 4.1.999 questions...

Hello there, first good job for what you've done with this rom, you're a crack
I've got some question, if someone can asnwer at least one of them it would make me happy
General :
* Is there any way to make or include some g_ether (or anything like this) module in it ? I would prefer to get networking instead of adb/storage.
* Is it possible also to disable the "wifi-firewall" ? I mean, I installed a debian in my SD card, so that I can have a real linu dsitro and tools and also an SSH and Samba server. But I could only connect to it locally or by opening ports with adb forward... it's kinda lame isn't it... just because wifi won't even answers to pings... where is it supposed to be stored ?
* I would like to know also where is the startup script file, because I would only want to auto-initialize the debian install, and why not auto-start some applications that I would build for myself and want to run at phone start.
4.1.999 specific :
* The parameters for the camera aren't working. If I start the camera, press menu and select the Settings item, the app crashes and is launch again (I use french locale if that changes anything).
* The "rotation" animation is not available anymore... perhaps because the rotation time is very fast now too. I prefered the "old-grandma-clock-like" rotation animation, and not he blur one.
* The small Google search widget is nice, but as long as it still takes one row, it's kind of ugly in fact... it makes a huge space under it and you cannot put anything in that space, that's a bit frustrating. Is there a way to get back to the old big widget ?
* I tested 4.1.999 on a second HTC Magic and it seems to be nice and all that, despite I didn't tested all things but, when I'll choose to update my actual stable 4.0.4, and if I don't want to lose my SMS for example, how can I do ? Is there any way to export/import them ?
Thanks in advance for the answers.
this isn't Q&A. Post in right forum
Reported
Answering to myself for one of my questions : seems to exist some programs on Market to backup/restore some user data, including SMS/MMS etc. I'll try these. If you've got some good examples of these programs, I would be glad to know about it.
Edit: One good program (not free) is : MyBackup Pro. Did the job just nicely. The only drawback is that the archive format is proprietary so you cannot use it in other software (not XML for example).

[Q] need help with wallpaper app

hello I am wondering if someone can help. I would like to create a simple wallpaper test app. I have tried a few things with no success. eventually I started playing with gallery codes and have a few achievements. but...I am not sure how to attach a wallpaper function to the gallery. i am new to all this (I am only a few months into learning Droid apps with eclipse) is there someplace where I can find complete java coding and possibly the xml files for a working wallpaper? I cannot build from scratch but I am getting better reading the source code creating buttons etc etc.
another option is how can I insert a save as wallpaper function to the working gallery I have? I am assuming I can set a long press function but I am not sure how to go about that either. I do have a tutorial for creating long presses but I am not sure about the proper java setup to accompany this.
any help will be appreciated. keep in mind I am new to both java and android coding. in other words keep it as simple as possible please. or if someone has a simple wallpaper app and they don't mind sharing the source code... that would help immensely..

Categories

Resources