yashsingh1/xdaforums huggingface dataset:
[G1 Apps and Games] brianb7590:
I've been doing Java for about 4 or 5 years now, nothing to fancy, but anyway,

int key = evt.getKeyCode();
switch (key)
{
case 65:
Runtime.getRuntime().exec("adb shell input keyevent 29"); // I dont know if this is what you "run" variable is referring to. and you would need quotes around your command as it takes a String parameter.
break;
[G1 Apps and Games] q426669:
Sounds good so far.

Seems like progress is going smooth so far. =)

I wish that I knew more Java, I wrote my first app (Hello World!) a few days ago, but I doubt I will know enough to contribute at this rate!

I hope I will at least be able to help you do some testing when it gets to that point. ;)
[G1 Apps and Games] brianb7590:
I would be more than happy to contribute to this project.
[G1 Apps and Games] tubaking182:
thank you for that, that should get me on my way, i'm not 100% as to how i am doing this, mainly i am (re)learning as i go. i am officially chnging the title of this thread to [Development] Computer app to control phone since this went from asking if there was such an app to this to actually creating the app. i assume that i can write and compile this in eclipse since i already have that installed.

@@brian7590 i will try to upload source at google later today, and hopefully we can get a few people looking at it and giving ideas on what to do. i will attach the keyevents map for android, that way we can all see what code to type to "press" a key on the phone.

keyevent map is now attached, i includes trackball deirections, "chin" buttons(call, home, menu, etc) and also loads of other keys. hope this helps out
[G1 Apps and Games] UnkzDomain:
Yeah, I could help out with the backend, but I really don't know how to use Eclipse for GUI design. I normally use Netbeans... Whats the google code url for your project?

Also, I'm not a highly experienced Java coder so if someone could look over any code that I submit and see if it could be further optimized, please do so (when I actually submit anything).
[G1 Apps and Games] brianb7590:
Ok, sounds good. Let me know when it is uploaded. And yes you can use eclipse to write and compile this.
[G1 Apps and Games] brianb7590:
I've done quite a bit of gui coding in java. I could possibly help out with that part as well.
[G1 Apps and Games] tubaking182:
i haven't gotten around to posying on google code yet, i was out for a while and just researching some crap through my phone(geez that kills the battery fast) not sure i know how to even start the source project, i am uploading what i havae here, all the stuff i added is marked with a comment, mainly just added the case switch at the bottom
[G1 Apps and Games] Mikey:
tubaking182,

I think it would be a better idea if you keep editing your first post with the attachment in that post.

Instead of us/them checking pages for the text file :)
[G1 Apps and Games] brianb7590:
I looked at the code you have so far. I cant make much sense of the first half....but i corrected some imports and some other minimal things. marked them as comments with my name at the end.

Do you mind explaining to me the purpose of the first section of code?
[G1 Apps and Games] tubaking182:
everything above the comment by me is from the DroidEx app, it basicall creates an applet that is constantly refreshing the picture. this is done by taking a screenshot and extracting it to display in the window on the computer. it refreshes currently at 6 frames per second which cranted is pretty slo but i personally don't plan on playing android games on my computer with this app. mainly i want to use this to send texts and do other simple actions. also if we try to speed it up too much it will slow down the phone since the screenshot command is being sent to the phone and the phone is doing most of the work. thanks for having a look at the code thusfar, i will add comments to each case to say what key is being pressed at that point. i am working on that right now.
[G1 Apps and Games] brianb7590:
Oh, OK. I hadn't had a look at the droidEx app, well just let me know with anything that I can help out with.
[G1 Apps and Games] q426669:
You guys amaze me daily :)
[G1 Apps and Games] tubaking182:
we haven't completed this yet.

this is mainly an update on where i have been this week, i haven't been working on this because i the theme competittion deadline is almost up and well i have a few finishing touches on my theme before it is ready. on the 13th i will be back to working on this so long as my fiancee doesn't get too mad that i am on the comp. she's been getting on me lately so we will see what happens
[G1 Apps and Games] tubaking182:
first post has been updated with the latest text file i have been using, i added comments to most of MY stuff. there are still some errors that i am trying to work through when compiling this, including errors in just the droidEx stuff. i am off work for a week so hopefully i can sleep in and work on this. anyone willing to help please feel free to do so, i don't know enough to get this running on my own.

if you see problems in any parts of it then just point them out to me and i will have a look see, i really hope we can get this app up and running
[G1 Apps and Games] nicksen782:
::bump:: Please don't let this thread die! This program is such a good idea. At the very least the ability to type out SMS messages from the PC would be super, even if I would need to physically choose the SMS message on the phone itself.
[G1 Apps and Games] tubaking182:
right now i have decided to postpone this to see if maybe the cupcake update will allow multiple words with the input command. i'm stuck because i can't figure out how to make the computer read what i typed and enter it as a series of commands breaking the sentence into one word segments and putting a space between words. don't worry i haven't forgotten about this
[G1 Apps and Games] rogro82:
Send me a pm with the exact thing you need and ill help you out if i can.. ;)
[G1 Apps and Games] ESKIMOn00b:
now that cupcakes basically here anyone got any new ideas for this?

you still even working/thinking on this tubaking?

my java knowledge is minimal at best and rather stale too but any thing i can do to give you a hand on this is no problem
[G1 Apps and Games] tubaking182:
sorry i haven't played with this in a while, i have been looking at the available commands in cupcake, but been really distracted touching up my java knowledge on an app for the phone which i think many of you will like and trying to make a simple widget to go with the app. i am still tring to work on this and i think now that i remember a little more java i can get somewhere with it. not sure on a release since i wanna finish my app and widget, the app is almost ready for release and the widget is a learning project
[G1 Apps and Games] ESKIMOn00b:
its all good buddy just wanted to hear that it hadnt died off
[G1 Apps and Games] Billthe4th:
OK, I had a little play around with your input method today and I really don't think it will work for controlling the phone realistically.

I made this small program which takes a number and a message (enclosed in quotes) from the command line and will send the keys to the phone to send the message. the adb input method is so slow and clumsy that it can take minutes to send a normal length txt.

The best way to make this kind of application would definitely be to make some sort of backend to run on the phone (like a VNC server as someone already suggested) and have the program on the PC communicate with that. This method has the advantage of not needing adb installed and possibly not even needing the usb cable...

The attached java app is actually quite fun, but really not practical for sending SMS!
[G1 Apps and Games] kevdawg:
Pocket Controller

I used to use Pocket Controller for my Pocket PCs back in the day and I can't tell you how useful this app really was. I'd love to see something like this on the Android.

http://www.youtube.com/watch?v=4BZYAE8SCks#watch-vid-title

http://www.soti.net/
[G1 Apps and Games] giantcrazy:
I'll give this one a bump - here's an app that I'd pay a few bucks for. I'm at a PC all day long, and being able to control my phone from my PC would be a Godsend.
[G1 Apps and Games] Fnorder:
I've been trying to get to the same goal through a different route and have a small perl webserver running on my g1. so far i can view / kill processes, browse the filesystems, and read SMS. Sending is another matter...I gave up on using input due to reliability

I've investigated the IPC system ( /dev/binder and /system/bin/service ) and there are a lot of things that can be done there (clipboard manipulation), however documentation is non-existant...from what I can tell sending an sms without gui input isn't possible, but I may be wrong.

Ideally I'd like to use Dynaloader in perl to make use of the c / c++ framewrk libraries, but have hit a snag with free time and reading the garbled functions in the libs.

On a related note, is it even possible to make a java app to automatically send an sms? If so, that could solve both our problems.
[G1 Apps and Games] Billthe4th:
So your method would use a web browser on the computer to control the phone? I think someone just put an app on the market which does a similar thing:

http://www.cyrket.com/package/org.l6n.remand

unfortunately I can't try it until I get on wifi at home, but it sounds promising!

Do you mean a Java app to run on the PC or the phone? Both are possible - see my previous post for a Java app to run on the PC to send SMS through adb.
[G1 Apps and Games] smeyerhuky:
Giving this a bump too... Even if this idea doesn't end up working over adb...

It would be a great way to root the magic after downgrading. due to the fact that it would need a way to enter in the commands on the terminal once in rc29... (if they can get a lower build to work on the magic)

check out the other , maybe you have some ideas...

http://xdaforums.com/showthread.php?p=3741507#post3741507
[G1 Apps and Games] maxdamage2122:
Theres a new app on the market called RemoteAndroid which allows you to control your android device through a web interface. Any one try it yet?

http://www.cyrket.com/asset/6187296318006995989

Edit: I'm a little slow and apparently can't read a couple posts up sorry.

Update: I just downloaded the app and in the about information it states, "Currently it only supports the ability to view your location, and to enable and disable GPS, but more is planned in the future."
[G1 Apps and Games] Fnorder:
Tried it, and it has several things going against it: lack of funtionality,

and its a Java(dalvik) app, which means slower/more resource intensive...and not easily extended. True, I'm biased toward perl, however using a scripting language would literally allow one to add complex functionality using a web form served by the daemon itself - if the core performs parse checks and enforces namespaces.

I meanta java/dalvik app on the phone, either to act as a helper spawned by the main app, or as a reference for sending sms without a dalvik app, adb, or bin/input.

I just found an automatic sms plugin for locale, so it's possible. No source, though.

As is now I can just load a firefox bookmark when I get home, no app or cables required - the phone autoconnects to wifi.
[G1 Apps and Games] Fnorder:
Here's another way to send that still relies on the fake-keyboard method, except it _doesn't_ 'type' the number or the message, it passes them as parameters. Unfortunately it still brings up the compose window, and requires 'enter' 'back' to send. I'm posting it as a shell script.

#!/system/bin/sh
base=/system
export CLASSPATH=$base/framework/am.jar
$base/bin/app_process $base/bin com.android.commands.am.Am start -a android.intent.action.SENDTO -n com.android.mms/.ui.ComposeMessageActivity -d smsto:$1 -e sms_body "$2";
sleep 2;
input keyevent 66;
input keyevent 4;

Usage:

./spewsms.sh 5551212 "I wish the NDK was out"

This should be faster, but will still pop things up in your face (making it bad for automation) and will probably die if the system is busy enough that 'enter' 'back' are sent before the compose window finishes rendering.

I'm starting to think writing a small dalvik app that has "android.permission.SEND_SMS" and publishes an open intent with 2 arguments (to, message) would be the quickest way to dispense with spawning windows and using input. I'm terrible at java, though :P
[G1 Apps and Games] nicksen782:
@fnorder

I would download an app like you described. Maybe even pay a bit for a version with WiFi where the user would like join the local WiFi network and communicate with the application over IP.

BUMP again! :)
[G1 Apps and Games] ccunningham83:
Just bringing it back from the dead....

Just wanted to see if anybody has made any progress on this. Came across it searching for something else. Sounds interesting.
[G1 Apps and Games] Fnorder:
Necrobump of doom!

I wrote a dalvik app to send an sms, using intent arguments, then exit. The commandline app for displaying threads and replying is fully functional so I'll be adding sms functionality to my http daemon.

As is it depends on debian's perl, I'll try to port DBI and DBD::SQLite to this port of perl to bionic: http://code.google.com/p/android-scripting/ (I'm not using the ASE API because it requires a java daemon and is very unfriendly to starting via commandline).

The sms sender app needs to be fixed a bit too, if anyone has advice it would be welcomed;

* It currently pops up onto the screen, which I can't seem to disable.

* It also needs to return some sort of value that perl can grok: I can't depend on traditional unix return codes it seems, so unless there's a better idea (that doesn't involve resource sucking java daemons) I'll probably have it spit out the result to a named pipe.

* Since I just created something that any monkey can use to "while : ; do /system/bin/am start -a android.intent.action.MAIN -n to.fnord.smsintent/.SMS -d 911 -e msg 'HAY IM WATCHING GAY PORNO'; done" I'll need to check the uid of the ppid. Is this possible?

Yeah, not a java coder. This was painful.
[Touch HD Windows Mobile ROM Development] ajon6551:
Guys,

I just purchased an unlocked Telstra Touch HD here in Australia and the crappy Telstra ROM is driving me nuts.

I just want my PDA to be the way HTC intended it to be.

I have tried to flash the shipped WWE ROMS for Asia, but I keep getting a "Device ID" error.

Can anyone advise which ROM is compatible and will restore the device to is former glory (removing all the Bigpond rubbish)?

Please help!
[Touch HD Windows Mobile ROM Development] Lovebongo:
Hi, when do you get this error?
[Touch HD Windows Mobile ROM Development] markqld:
you need to put hard-spl on it first. read one of tuttythroy or divideuks posts for a good descriptions of how to flash
[Touch HD General] spikez93:
is the htc touch hd capable of high definition play back like the Samsung Omnia i900 or is it called hd for some other reason
[Touch HD General] funk1980:
Well, NEITHER of the two can play HD, as (full)HD has a resolution of 1920x1080.The HD's resolution is 800x480. The omnia's is even lower! 400x240. Besides, they can't handle the bitrates that come with HD.
[Touch HD General] FileFixer:
Read all about HDTV resolution on this page...

http://www.cnet.com/hdtv-resolution/
[Touch HD General] spud_work:
I know that there is a data outage on o2 at the moment, but my touch HD won't even make calls as no mobile service is being received and it just keeps searching for a network. My crappy old k750i that is also on 02 works just fine and picks up the network signal with no problems, so i've no idea why my touch hd won't.

Any suggestions?
[Touch HD General] Boisee:
Just checked with my HD on O2 all working fine. Data is only available through GPRS at my home location but call and browsing are all working.

I have heard of cell towers going offline and such it may be that your nearest cell is offline and the k750 is using one the HD wont reach. I dont know how good the HD is yet for weak signals maybe someone else will offer some thoughts

Boisee
[Touch HD General] damac:
I have a touch hd with o2. both data and calling features are working fine here. maybe you have a phone locked to another network or maybe your radio is not compatible with your rom, if you have flashed...
[Touch HD General] markpud:
Mine's all fine too...
[Touch HD General] spud_work:
Thanks for your input guys. I'm on the default rom so it shouldn't be a radio issue. Just turned on again this morning and there is still no service at all on my HD, but full signal on my k750
[Touch HD General] Budadank:
All OK in Leeds.

Possibly your K750i is using GSM and your Touch HD is trying to use 3G and failing, and for some reason not picking up a GSM signal instead. (Or Vice Versa?)

Try forcing your Touch HD to a specific network:

Start > Settings > Phone > "Band" Tab and change the network type to GSM or UMTS, depending on your situation. Then at least you can narrow the problem down to either 3G or GSM.
[Touch HD General] spud_work:
thanks for your input

I've switched the band from auto to GSM

and GSM/UMTS band to UMTS (2100) + GSM (900+1800) as i think this is what O2 use and there is still no signal

just checked any my k750 doesn't have 3g features. The sim from the k750 doesn't work in my HD either, but the sim from my HD does work in the k750, so both sim cards are working just fine.
[Touch HD General] Budadank:
I think you might have to start considering the fact that your Touch HD is faulty.

http://service.europe.htc.com/

Sorry bud. :(
[Touch HD General] spud_work:
yeah, looks that way doesn't it :(
[Touch HD General] Dark Knight:
I'm not on O2 but I think there may be a setting somewhere where you can specify voice calls get channelled through the 2G network. I imagine if 3G is down (shame on O2) and your voice is being forced through the 3G network, then you wouldn't get voice coverage.

Also, it's worth going to some other area (with known coverage) and trying out there. May be it's just your local mast ?
[Touch HD General] spud_work:
Have been out and about testing today and it does look like a local issue now. My touch hd seems to work fine in other areas, but won't work at all at home, whereas my old k750 works fine everywhere.

I'm now getting a signal on o2 at home, but can't dial out as it just sits there saying 'dialing' all the time
[Touch HD General] Dark Knight:
If you have any friends with XDA's, get them to try from your location (perhaps using your SIM). If they're getting the same experience, then raise a SIM or network fault.

May also be worth playing around with the Phone Settings Menu.
[Touch HD General] spud_work:
Have just got off the phone with O2, they are saying that my local transmitter is flagged as being down and it should be back up and running by 2-30 this afternoon.

Must be that the reception receiver on my old k750 is miles better than the one in the HD then, as that still shows many bars and can make and receive calls without problem
[Touch HD General] handsomedog:
If you're not getting a connection, then disable 3G, GSM voice calls are pretty much 24/7, excluding emergencies. Routine mast work is carried out during the night hours, and you still usually get an adjacent transmitter. Even during work, you can usually get either one of 2G or 3G.

If you can't connect during the day, that's a sign of mast failure, so unless anyone here is within 20km of you, asking here is unlikely to help. If more than a town is affected, you can be sure there'll be a press release.

If all else fails, call your network, only they will have the latest info. Maybe the mast has a fault which doesn't show up on their systems - unless somebody tells them, they won't know :)
[Tilt, TyTN II, MDA Vario III General] SirHavoc:
i searched for an answer on here, but didn't find anything, so if it exists could someone point me in the direction?

i want to set up my work email on my tilt, but don't know how. lol

i can log in via owa..

mail.companyname/exchange

what are the steps to have this correctly set up without having to sync to my work comp, if that is possible???

thanks for any help you can give!
[Tilt, TyTN II, MDA Vario III General] peterfnet:
You need to contact your IT department and ask them what the appropriate server is to connect with your PDA. It can vary depending on how it is setup and what version of exchange.

In activesync on your phone, there is an option to add a server source. Put the address in there that your IT department gave you and it will take you from there.
[XPERIA X1 General] XfrostX:
Hey, i am about to purchase a Xperia X1. I am on T-mobile USA

Do i need to get the 20.00 Unlimited data ? or do i get the 5.99 Unlimited T-zones because the phone is only EDGE?

Thanks guys, great community
[XPERIA X1 General] Sfkn2:
As far as I know, the 5.99 tzone deal is no longer available. however, the code can be found on howardforums. it pretty much works the same way as long as you have the right settings.
[XPERIA X1 General] KHPatel:
Technically, you're not supposed to know this.

Depending on what you need to do on your phone, you may or may not need the unlimited data plan.

If all you plan to do is use email, then you can tell the techy that you want the $9.99 100mb plan. Just tell him/her that you just want email and don't want to have to pay 24.99 for that.

If you plan on streaming media and such, then you'll need the unlimited data plan which I believe is $24.99

As far as I know t-zones is a service that offers the download of T-Mobile specific content only. It doesn't provide you internet capabilities.

Good luck!
[XPERIA X1 General] michaelthemage:
yeah right

:cool:
[XPERIA X1 General] alex_mib:
Just got X1 and all day try to connect to T-zones, called T-mobile, they said i should get smartphone data plan in order to use internet on this device.

Thats curious, because i had before P1i, P910i, Samsung innov8 they're all smartphones and worked with my t-zones!

BTW, t-zones is not only for special content, i was able to see whatever site, check email, use google maps. I just was not able to watch youtube clips and internet radio etc...

Any ideas?
[XPERIA X1 General] bknewtype:
dont get unlimited data. what you should do is:

register your tmobile account on the web, incase you havnet already

choose your phone as a razr or something

add tzones plan

set up your xperia

and voila.

theres no point in getting unlimited data, as tmobile doesnt support xperia's 3g ( i hate tmobil )

tzones has been working for me since the wizard.
[XPERIA X1 General] eboy44:
same for me just get the tzones enabled on your account then go into the connection settings and change it from wap.voicestream.com to epc.tmobile.com and your good to go!
[XPERIA X1 General] kdspiv:
You all are lucky!

I have to purchase the Blackberry plan. But at least I have unlimited everything......but for $40 a month I had better have unlimited everything.
[XPERIA X1 General] Cheeze[iT]:
I'm on the 5.99 T-Zones and I have everything working. Email. web its all there. No restrictions. I'm also able to stream videos off my computer via Orb without a problem. I wish I would have gotten it when it was 2.99 :D
[XPERIA X1 General] alex_mib:
Thanks guys! Everything is working with epc.tmobile.com!!!!

I didnt see this APN before, is it somewhere on t-mobile site???

I was almost going to get that unlimited or try 9.99 plan :-E
[XPERIA X1 General] hvitalia:
Guys I need help with tzone settings.

I have HTC Touch Pro and have 9.99 web2go plan.

It was working fine but since last 2 weeks I am not able to use 9.99 data plan.

In order for data plan to work on my HTC Touch Pro I had installed tmobyjoe599 cab

Any help is appreciated.
[P3300, MDA Compact III General] magos21:
Hi to all,I want to ask if you know any program for Artemis like the Netmonitor in the old Nokia phone for showing information for GSM base station.Thanks
[P3300, MDA Compact III General] spgi:
*#*#364#*#*

into the phone application's called number field.
[P3300, MDA Compact III General] magos21:
Thanks for your answer.