Can you make me a SIMPLE android app? - Android Software Development

I am into ROM cooking, but not a huge android app making junkie (Wish I was though). Anyways, I am working on a new ROM and I would like someone to make me a very simple app to add to my ROM. This is what I want:
You know the "Terminal Emulator" app? Well, I would like an app titled "Wired Tether" and all I want it to do is execute 1 Terminal command. "sh /system/xbin/usbt". I would like to do this without having "Terminal Emulator" installed. Can anyone help? It would be VERY appreciated! (I will give you credit in my ROM thread)

Related

Small Improvements Needed

I used G1 a lot, then Magic was quite shortlive, and now got Hero.It is runnign Modaco Custom ROM with latest radio and Amon_RA recovery image the latest one.
As a power WM user.I feel the following can be incorporated, it wub b a complete device.
- Copy Paste from all apps, one to other.For Ex copy paste from Nimbuz to a note or another chat window.
-Simplify Apps2SD.I mean a more user friendly, as we have in WM
-May be an app, which can give selective permission on various apps prioritising to Execute and Run, rather than doing it from adb command or using a terminal.
I searched, but could not find concrete answers to above.If some one can guide, it will be great.

SU access thru terminal but not through GUI apps?

Specs: Droid, running Android 2.0.1, rooted
su works but apps still say I don't have root?
I'm an IT Professional not a newb, but not super great on Linux either.
I've followed the rooting steps, after updating manually to 2.0.1
The issue is, I can go: su using a term emulator on my phone and it says "access granted courtesy of magicandroidapps" (something like that). and I can do root things. But when I do anything that requires root and has a GUI I get errors and messages that I don't have root access
I can do things through the term emulator, but for some reason when I download apps that require root and try to use them it still says I don't have root access? What gives? I couldn't even rename a file in /etc/bluez using ROOT EXPLORER (a file manager).
It's like root works on term emulator but not through GUI apps? Am I missing something?
Edit/Delete Message
Disregard, problem solved
Apparently the latest droid root technique works. For some reason the original technique didn't seem to work. This is what worked for me...
http://areacellphone.com/2009/12/motorola-droid-rooted-howto-root-droid/
Much simpler too. No adb stuff.

Adw Update?

I saw that ADW 1,01 is out and i want it...
So how do i instal/update it to v1.01? [and will all my preferences and settings,apps,etc be usable once i put on the 1.01?]
and plz be datailed about it,since ima noob with the android.ty
aca85 said:
I saw that ADW 1,01 is out and i want it...
So how do i instal/update it to v1.01? [and will all my preferences and settings,apps,etc be usable once i put on the 1.01?]
and plz be datailed about it,since ima noob with the android.ty
Click to expand...
Click to collapse
What version do you currently have?
Did it come with your rom or did you download it?
You can backup your settings (export) to your sdcard and restore (import) with the new version if by chance your settings are not preserved.
Im using CM 5.0.8 ,and it came with 0.8.9.
And how do i go about doing that export/import?
Either download link from your phone and install or download on PC put on SD card open file manager and install are easiest. Put it on a friends phone. Looks good. Backup and restore are in settings adw.
Sent from my HTC Magic using XDA App
Do a search for ADW.Launcher in the Market, it's there. Just make sure you have a period in between "ADW" and "Launcher."
Hey,
I'm interested in updating the ADW.Launcher version that came with my CM5.0.8 rom, but I don't know if it's OK to update through market or get the apk file and use "adb install" or find a zip file to flash...
Could anyone make some light in here pls?
Thanks!
I have tried downloading the apk file for my CM5x and MDPI device from Anderweb's page but when I tried to "adb install" I get...
INSTALL_FAILED_ALREADY_EXISTS
Can someone shed some light? Is there a way to update the ADW.Launcher that comes with a specific ROM version?
Tried using android commander?
Sent from my Chromatic Magic using XDA App
Since I'm new to this scene, what is the difference between the "adb install" method and using the Android Commander (which I need install)?
Would Astro help in this case, because I remember reading that has support for installing apk files?
I'd like to do this update as clean as possible.
Thank you for the reply!
PS: I have actually installed Android Commander and installed the ADW.Launcher apk for CM5x MDPI as an Update (wasn't sure what to chose between Private, Application or Update) and the installer said it was successful but after reboot I still have the old version 0.8.6
Any ideas?
U can download it put it on your sdcard and install with a file manager. Doesn't matter which way u go. Should work. Done it both ways
Sent from my Chromatic Magic using XDA App
I did it somewhat the way you said and installed it with Android Explorer as an update because the regular installation would fail with the error that the application already exists.
The problem is that the new version gets copied into /data/apps/ and I can start using it but after the first reboot it's not there anymore and I get back to the one that came with my CM5.0.8 rom which is in /system/apps/
I would really like to get a solution that would update the one in /system/apps/ which might be harder because it's a memory mapped version of the ROM and changes get lost after reboot.
Please correct me where I am wrong...
Have u tried goin to the market and installing it from there? It's like version 1.4.1 or something now
Sent from my Chromatic Magic using XDA App
place the file on your /sd.
adb push /sdcard/filename.apk /system/app
restart home or reboot phone.
I ended up installing the one from Market and making that the default launcher, but I would really like to just replace the one in the system folder - no need to keep 2 versions of the same app
I'll try the method NetrixTardis was suggesting.
U can do it through the terminal as well. Maybe removing the old one will solve it. Use the rm command in the terminal and see if u can do it that way. Ex.
$su (enter after each line)
#rm /system/app/(name of app.apk)
Then u can use cp command to copy the one from your sdcard.
Cp /sdcard/(app.apk) /system/app/
Someone correct me if I'm wrong in the lines
Sent from my Chromatic Magic using XDA App
hey johnson8cyl
I'll try that and let you know if it worked, should I copy it to the same name?
like /system/app/adwlauncher.apk is the name for the system app, while the Market installed one is org.adwlauncher....apk
do you guys know a good keyboard replacement and a way to configure the vibration alarm on my CM5.0.8? these are mostly the things I miss from my stock ROM
oh...forgot to mention the CM5.0.8 default camera does not have all the setting (like I can't set the ISO), is there one that does that trick?
thanks!
I'll answer the keyboard part. I've got Smart Keyboard installed and its a lot better than the stock Android one.
Sent from my HTC Magic using XDA App
U have to use the names exactly the one your removing and one your copying. Names have to be what u want to remove or copy. That make sense?
Sent from my Chromatic Magic using XDA App
Makes total sense to keep the same names only that I have this problem...
any ideas? kinda makes sense because that comes from the ROM and is mounted as read-only
# su
su
# pwd
pwd
/system/app
# rm -f ADWLauncher.apk
rm -f ADWLauncher.apk
rm: can't remove 'ADWLauncher.apk': Read-only file system
ps: I actually managed to fix this what was missing is "adb remount" to mount system partition read-write
So you figured it out? Were you able to get it removed and replaced?
Sent from my Chromatic Magic using XDA App

[Solved without flashing] Messed up TouchWiz.

Right, I applied this mod and didn't install another launcher as a backup before hand, now all I get is a black screen wit the top bar when I boot up the phone. (it boots fine, just there's no launcher)
Is there anyone out there that can provide me with an update.zip with the original touchwiz.apk for JM1? If there is anyone that can do this it would be greatly appreciated.
Thanks,
Luke.
EDIT: What I did was found a way of getting to the market (via a link in a text message that was sent to me and accessible via the notifications bar) and hence could access all my apps. I then downloaded another twlauncher.apk (it was jm8 but works fine on jm1, I'll post it here) and followed the instructions in the mod thread to put the modded launcher on the phone, but instead of pushing the modded one to the system/app folder it pushed the non-modded one, thus fixing the phone.
The link sent in the text was "http://cyrket.com/qr/15550" it searches for a tower defence game but you can then use the search to get to "Terminal Emulator" which is the app used to move the .apk in the first place.
Steps to fixing the launcher:
1)Get a TouchWiz30Launcher.apk (different firmware versions need different ones?),
2)Put the launcher.apk onto the internal SDcard (/sdcard/) I did this via USB mass storage, if you have Kies as default for USB or something other than mass storage then follow the next step but find "launcher pro" instead to get into the phone settings list to change USB settings.
3)Send a text to your phone with "http://cyrket.com/qr/15550" or another link to open the Android Market,
4)Search for "Terminal Emulator" to open the app,
5)Follow these steps (found in the mod thread):
chickie.tobias said:
3. type su then hit enter
4. type mount -o remount,rw / system then hit enter.
5. type cp -f sdcard/TouchWiz30Launcher.apk system/app then hit enter
6. type sync then hit enter
7. type reboot then hit enter
Click to expand...
Click to collapse
That's it, this is how I fixed my TouchWiz
Right I've managed to installed LauncherPro but I'd really like to be able to get TW back, can someone please help?
Also I keep getting force closes saying android.process.acore has stopped working... No idea what that is either...
Hi. I had the exact same problem. Only solution for me was a re-flash using Odin. But at least I now have Froyo.
Sent from my GT-I9000 using XDA App
One more thing. Don't try a system wipe, it will make things worse.
Sent from my GT-I9000 using XDA App
Hey there, I was thinking of doing that but I found a (crude) way of sorting it. It's now fixed with a new twlauncher I'll post a tutorial once I'm home on how I did it to see if it can help anyone. =)
Sent from my GT-I9000 using XDA App

Ultimate guide to get Ubuntu and Busybox on your samsung galaxy tab 10.1

this is an easy pease guide to install Ubuntu with working Busybox on your samsung galaxy Tab 10.1
Requirements:
A rooted device (there are lots op threads on xda on how to root your 10.1)
after rooting download Ubuntu installer Free
the second app you need to download is busybox installer
and third you will need to download and install android-vnc you will need this to view the ubuntu after instalation
and then last but not least you can download a overclocking kernel to make things work smoother. there is a thread in xda about this.
and then download the setcpu.apk file. search it on google.
If you have any trouble finding the correct apps and kernels please post in your reply and I will give you the links to the kernels I am using uploaded by myself for you to download
Okay so lets get this party started
okay so after rooting your device install the Ubuntu Installer Free and follow the promts. it is an easy to use app which guides you to 3 downloads. the first download is the ubuntu.sh file. and then there are two links to download the ubuntu image. If you want a light (not good looking) version of ubuntu download the smaller image (the second option of the downloads).
If you want the gnome (sexy looking ubuntu) download the third option.
while you are downloading the files GO AHEAD and install the BusyBox installer app. then choose the 1.18.4 version and install it into you system/bin directory. it will give you the directory in a list to choose. once thats done install the same version again but in the system/xbin directory.
while you wait for ubuntu installer to download the images for you go ahead and search for that nifty overclock kernel. make sure IT IS NOT the one from zedomax because then you will have no screen rotate ability. look for an overclock kernel that has ov_oa in its description. once again post in this thread if you are having troubles and i will upload my kernel.
So after ubuntu installer has downloaded files go ahead and extract them into the /sdcard/ubuntu folder (you will have to create the folder)
after you have extracted the files into /sdcard/ubuntu folder (this directory is in the root of your tab. you do not have to create a folder in the root saying /sdcard/ubuntu. you can just make a folder named Ubuntu and drop the files in there.
so after plainc the files into the Ubuntu folder go to you terminal on your device. if you dont have a terminal you can download it from the market for free. its called android terminal.
in the terminal tipe the following
su
cd /sdcard/ubuntu
sh ubuntu.sh
if you have correct busybox installed you will get a prompt that asks you for the screen size. make the screen size 1280x800
then IF it gives you a choise between lightlinux or Gnome. select option 2. gnome
after that done open android vnc and set the following
name: ubi
password: ubuntu
adress: localhost
port: 5900
and then select connect.
and congratulations. everything was perfect. if not. pm me or reply in this thread for support.
Have you test it on Galaxy Tab 8.9
Hi. it will work on the galaxy Tab 8.9. just follow the same steps and make sure your device is rooted. as for the overclocking on the 8.9 I am not sure what the steps are
Was just wondering how much space does an installation like that take up? And will an Ubuntu install like that actually support everything that "normal" Ubuntu does (for instance compiling python, c, etc. on the device?). What about programs that work with Ubuntu on a PC, will they work on the Tab as well?
it takes up to 4gig of your storage. the ubuntu for the tab is ubuntu 10 Gnome. so everything works as normal ubuntu 10 would work. python and all those compiling programs will work. if you connect a mouse and keyboard to you tab it would work the same way as it would on a pc.
llewelyn12 said:
it takes up to 4gig of your storage. the ubuntu for the tab is ubuntu 10 Gnome. so everything works as normal ubuntu 10 would work. python and all those compiling programs will work. if you connect a mouse and keyboard to you tab it would work the same way as it would on a pc.
Click to expand...
Click to collapse
Nice, will give it a try to see if I can get some of my pygame projects to work (just for the kicks of it) .
I'm guessing you can't use the virtual keyboard with it though right? You need a hardware one? Or maybe, you could download a virtual keyboard for Ubuntu and see if that works ... hmm ... testing time! ^_^
PS: Do you know which desktop environment is used in the light version? Since I have the 16GB tab and I'd mostly use linux through the command prompt to program some basic stuff etc. I wouldn't really need a good desktop interface, just enough to run some graphic stuff when needed. Plus a lightweight DE would run faster
there is an awesome virtual keyboard you can download its called florence. it look ssexy and works good for me.but i stil prefer the manual keyboard.
Check out this pic. It gives an on screen keyboard
Sent from my GT-P7500 using XDA
Does the touchscreen work alright? I remember the native port had troubles with it.
Okay, after a bit of testing I thought I'd share my findings.
The installation was really simple, even though I had problems at first due to a wrong Busybox version - but I downgraded to 1.18.4 and it worked just fine.
I've tried both the "full" install and the "small" one. Both installed without problems, but the "full" one noticeably slower, even when running LXDE desktop environment. Guess that's one of the prices you have to pay for a system with way more applications. Apart from being kinda slow, mostly everything worked fine, the only problem I found was that if you wanted to change the background color of the terminal (the transparent thing wasn't doing it for me) it crashed. Otherwise I've tried out firefox, thunderbird etc. and it all worked fine.
On the "small" install, things seemed faster, CPU/memory was definitely stressed much less then in the full version. But, I ran into a quite big problem - terminals inside the GUI don't work at all. Everytime I run the lxterminal (tried installing some other terminals too, same problem) it starts up, but doesn't do anything. It doesn't even show the usual prompt (for instance "[email protected]>" or something like that). That means you can't run any terminal commands or apps (like top) through the GUI. You CAN however, run apt-get install through the terminal emulator you used to start the whole thing up.
So I worked around the problem by installing stuff from the terminal emulator, then trying it out in the GUI. It works, but it's definitely a real setback, since you can't even do simple stuff like "python test.py" etc. (well, you can through the terminal emulator in android, but then you're limited to text stuff, can't start up tkinter or pygame for instance).
I've managed to run a simple game made in pygame, and it actually had around 20 fps, but since you're looking at it through android-vnc, there's no way for stuff like that to be playable. Felt nice to see your python work on android, especially if you're not on good terms with Java .
I'd also recommend setting the resolution to something smaller, since you have to take the status bar into account - if you don't do that, you'll have to "scroll" up and down to see the whole screen - I've settled on 1280x720, seems to work fine for me.
Another problem I've noticed is that the Esc, F1, F2, ..., F12 keys didn't work inside linux (I'm using an Apple Wireless keyboard). Also, I couldn't play any music files (wanted to see if voice was working).
I'll definitely play around with this a bit more, and I can see myself using this (probably directly through the android terminal emulator, since it detects all my keyboard keys and has auto-completion etc.) for some non graphical programming in Python and C on the move, even without a hardware keyboard it's manageable.
What about anyone else? Did you try it out and what did you think? Anyone has any solutions to my terminal and special keys problem?
PS: Touchscreen doesn't have any problems, you have a few different input modes that you can play around, I haven't found one that would suit me perfectly though (the one I like best can't right click it seems). Ah well, nothing's perfect
Wow man, thanks for your feedback and support! there is a keyboard you can download inside software centre that gives you all the cool keys you would need. but seeing that you cannot use the lxterminal it pretty useless. ill see what I can find out about that but in the meantime thanks a lot for the feedback
nightmarebadger said:
Nice, will give it a try to see if I can get some of my pygame projects to work (just for the kicks of it) .
I'm guessing you can't use the virtual keyboard with it though right? You need a hardware one? Or maybe, you could download a virtual keyboard for Ubuntu and see if that works ... hmm ... testing time! ^_^
PS: Do you know which desktop environment is used in the light version? Since I have the 16GB tab and I'd mostly use linux through the command prompt to program some basic stuff etc. I wouldn't really need a good desktop interface, just enough to run some graphic stuff when needed. Plus a lightweight DE would run faster
Click to expand...
Click to collapse
I don't have the tablet (yet-hopefully gonna get one soon) but I'd suggest trying e17 (enlightenment) as your desktop environment. It is lightweight (at least compared to GNOME and KDE), IMO it looks nicer than other lightweight DE's (though the default mouse navigation style is not typical) and it has a touchscreen option/version/interface (don't exactly know what to call it). I have never tried the touchscreen version, but I have seen some screenshots and when I tried it out on a regular computer it asked if I want the touchscreen UI or the normal one. AFAIK it has its own onscreen keyboard (haven't tried it). I'm pretty sure gnome has one as well (somewhere in accessibility)
nightmarebadger said:
Okay, after a bit of testing I thought I'd share my findings.
The installation was really simple, even though I had problems at first due to a wrong Busybox version - but I downgraded to 1.18.4 and it worked just fine....
Click to expand...
Click to collapse
Badger, thanks for the mention of downgrading to 1.18.4. Thanks sent to you and the OP
I got it to run fine on my E4GT phone using 1.19.4 but it did not want to work on the Tab. I found that the following apps worked best on my Tab:
1. BusyBox (by Stephen Stericson) - just run this and even if you have 1.19.4 just use the drop down to select 1.18.4 and it will copy over it for you.
(Do not use the uninstall option as it is not needed and can cause problems)
2. Android Terminal Emulator (by Jack Palevich)
3. android-vnc-viewer (by androidVNC team + antlersoft)
Other apps may work but I have found the combination of these 3 to get ubuntu running on my Tab10 just fine.
btw Badger... I am with you 100% on not being on good terms with java
Graphics problem
I've installed this on my Samsung Galaxy Tab 8.9. I seem to have it operating OK but the graphics seem to not be working. The icons on the left are a black and white blur. I have changed the colour format to all of the different settings and no luck - any ideas? Thanks.
Permission Denied
When trying to bootubuntu I keep getting permission denied. I was skipping the su step, as I was following someone elses instructions, and I am now getting farther, but still permission denied at bootunbuntu. I haven't tried a linux flavor since red hat almost 10 years ago, and I was no guru then, so I'm sure whatever I'm missing will be rediculous...
wat kernel
llewelyn12 said:
this is an easy pease guide to install Ubuntu with working Busybox on your samsung galaxy Tab 10.1
Requirements:
A rooted device (there are lots op threads on xda on how to root your 10.1)
after rooting download Ubuntu installer Free
the second app you need to download is busybox installer
and third you will need to download and install android-vnc you will need this to view the ubuntu after instalation
and then last but not least you can download a overclocking kernel to make things work smoother. there is a thread in xda about this.
and then download the setcpu.apk file. search it on google.
If you have any trouble finding the correct apps and kernels please post in your reply and I will give you the links to the kernels I am using uploaded by myself for you to download
Okay so lets get this party started
okay so after rooting your device install the Ubuntu Installer Free and follow the promts. it is an easy to use app which guides you to 3 downloads. the first download is the ubuntu.sh file. and then there are two links to download the ubuntu image. If you want a light (not good looking) version of ubuntu download the smaller image (the second option of the downloads).
If you want the gnome (sexy looking ubuntu) download the third option.
while you are downloading the files GO AHEAD and install the BusyBox installer app. then choose the 1.18.4 version and install it into you system/bin directory. it will give you the directory in a list to choose. once thats done install the same version again but in the system/xbin directory.
while you wait for ubuntu installer to download the images for you go ahead and search for that nifty overclock kernel. make sure IT IS NOT the one from zedomax because then you will have no screen rotate ability. look for an overclock kernel that has ov_oa in its description. once again post in this thread if you are having troubles and i will upload my kernel.
So after ubuntu installer has downloaded files go ahead and extract them into the /sdcard/ubuntu folder (you will have to create the folder)
after you have extracted the files into /sdcard/ubuntu folder (this directory is in the root of your tab. you do not have to create a folder in the root saying /sdcard/ubuntu. you can just make a folder named Ubuntu and drop the files in there.
so after plainc the files into the Ubuntu folder go to you terminal on your device. if you dont have a terminal you can download it from the market for free. its called android terminal.
in the terminal tipe the following
su
cd /sdcard/ubuntu
sh ubuntu.sh
if you have correct busybox installed you will get a prompt that asks you for the screen size. make the screen size 1280x800
then IF it gives you a choise between lightlinux or Gnome. select option 2. gnome
after that done open android vnc and set the following
name: ubi
password: ubuntu
adress: localhost
port: 5900
and then select connect.
and congratulations. everything was perfect. if not. pm me or reply in this thread for support.
Click to expand...
Click to collapse
Im having problem, terminal emulator say loop missing.
So plz provide me kernel link and name os version on wich tat kernal need to b flashed
model: samsung galaxy tab 10.1 3g (gt-p7500).
help me for loop supporte kernal
sriabhi said:
Im having problem, terminal emulator say loop missing.
So plz provide me kernel link and name os version on wich tat kernal need to b flashed
model: samsung galaxy tab 10.1 3g (gt-p7500).
Click to expand...
Click to collapse
Hello sir,
I need a kernal for loop support on samsung galaxy tab 10.1 3g
(model: gt-p7500).
Plz send me link for kernal and tell me on what rom that kernal
has to be flashed.
can you please direct me to the Ubuntu Installer Free? Can't seem to find it on Play market.
komorka said:
can you please direct me to the Ubuntu Installer Free? Can't seem to find it on Play market.
Click to expand...
Click to collapse
It's called "Lunux Ultimate Installer" now...or something along those lines anways. If you search for Ubuntu Installer, it comes up.
llewelyn12 said:
this is an easy pease guide to install Ubuntu with working Busybox on your samsung galaxy Tab 10.1
Requirements:
A rooted device (there are lots op threads on xda on how to root your 10.1)
after rooting download Ubuntu installer Free
the second app you need to download is busybox installer
and third you will need to download and install android-vnc you will need this to view the ubuntu after instalation
and then last but not least you can download a overclocking kernel to make things work smoother. there is a thread in xda about this.
and then download the setcpu.apk file. search it on google.
If you have any trouble finding the correct apps and kernels please post in your reply and I will give you the links to the kernels I am using uploaded by myself for you to download
Okay so lets get this party started
okay so after rooting your device install the Ubuntu Installer Free and follow the promts. it is an easy to use app which guides you to 3 downloads. the first download is the ubuntu.sh file. and then there are two links to download the ubuntu image. If you want a light (not good looking) version of ubuntu download the smaller image (the second option of the downloads).
If you want the gnome (sexy looking ubuntu) download the third option.
while you are downloading the files GO AHEAD and install the BusyBox installer app. then choose the 1.18.4 version and install it into you system/bin directory. it will give you the directory in a list to choose. once thats done install the same version again but in the system/xbin directory.
while you wait for ubuntu installer to download the images for you go ahead and search for that nifty overclock kernel. make sure IT IS NOT the one from zedomax because then you will have no screen rotate ability. look for an overclock kernel that has ov_oa in its description. once again post in this thread if you are having troubles and i will upload my kernel.
So after ubuntu installer has downloaded files go ahead and extract them into the /sdcard/ubuntu folder (you will have to create the folder)
after you have extracted the files into /sdcard/ubuntu folder (this directory is in the root of your tab. you do not have to create a folder in the root saying /sdcard/ubuntu. you can just make a folder named Ubuntu and drop the files in there.
so after plainc the files into the Ubuntu folder go to you terminal on your device. if you dont have a terminal you can download it from the market for free. its called android terminal.
in the terminal tipe the following
su
cd /sdcard/ubuntu
sh ubuntu.sh
if you have correct busybox installed you will get a prompt that asks you for the screen size. make the screen size 1280x800
then IF it gives you a choise between lightlinux or Gnome. select option 2. gnome
after that done open android vnc and set the following
name: ubi
password: ubuntu
adress: localhost
port: 5900
and then select connect.
and congratulations. everything was perfect. if not. pm me or reply in this thread for support.
Click to expand...
Click to collapse
I need the download files to run ubuntu on my galalaxy tab 3 10.1. thanks.

Categories

Resources