Hello i am quite new to the Windows Mobile Platform. I have downloaded the Microsoft Device Emulator, But i am having problems with it. Does anybody know of a a guide or step by step instructions of how to use this software. I have also downloaded the stock WM5 images from the Microsoft site. I have read through the help file which is included with the Device Emulator Manager and i am getting anywhere with this! Any help would be great. cheers
You have to use the command line switches. When running for the first time, something like this should work (all of it in one line, best to put it into a script file):
Code:
e:\devemu\deviceemulator.exe e:\devemu\pocketpc.nb0 /skin e:\devemu\Pocket_PC.xml /p /memsize 256 /s e:\devemu\wm5.dess /sharedfolder e:\devemu\shared /flash e:\devemu\shared
After saving your initial session, you can start it like this:
Code:
e:\devemu\deviceemulator.exe /s e:\devemu\wm5.dess /sharedfolder e:\devemu\shared
To sync with it, make sure your real device is not connected. Run dvcemumanager.exe, and use the option "cradle" for your virtual device. Then Activesync should pick it up.
Did you download yours at
http://www.microsoft.com/downloads/...A5-183A-4A1E-A7E2-CC500ED1F19A&displaylang=en
I got this and it creates a shortcut on your PC start menu.. just click and it will start an emulator. There is a configuration where you can set any of your PC's dir to be the 'Storage card' and such you can download your software into it for testing. I did all my skinning job at the emulator.
Related
Hi,
Is there an easy way to root my magic (Dutch Vodafone branded "with google" 32b) which is running Donut, using solely OSX?
I don't have acces to a windows pc..
I searched the entire forum, nowhere is anything about OSX mentioned.. Can't find it on google either..
I thought the only option was the 1c procedure from theunlockr.com, but then i need 1.5 first, which requires me to use windows programs again..
Am i just being bluntly stupid, and have wasted about 2 weeks of searching, or is there just no way this can be done?
Thanks for your answer,
Jacob
You would do it just like you would with linux, since both Mac OS 10 ad linux are Unix-like operating systems. You don't need any Windows-only software like HTC sync. Probably want to install the SDK and get ADB working.
Re:
Okay, so is there a Linux guide to do this?
First I should say that I have not rooted any phones, but I've looked through some of the guides, that is about it.
From what I've seen, even though the guides might say things like C:\ you can just mentally replace that with proper *nix syntax.
Also, this guide
http://theunlockr.com/2009/10/15/how-to-root-a-donut-phone-android-1-6/
is not windows specific.
Is there some guide to which you are referring that is stumping you on what to do on a mac?
The biggest issue could be if you need to make a goldcard, which I am told is the most difficult part. From what I've seen, people are using QMAT for this, but I am not sure if there is an alternative to QMAT (which is now PSAS and apparently has a free version again) for mac/linux, so you might need to use wine to run it.
Setup the SDK so you can use ADB, like it says here:
http://wiki.xda-developers.com/index.php?pagename=HTC_Sapphire_Hacking
Add the tools directory to your path like I said here.
Code:
export PATH=${PATH}:/Users/softbanksucks/Documents/android-sdk-mac_x86-1.6_r1/tools
Replace the above path with the full path to where ever you saved the SDK.
If you don't have a good mac text editor, you can use the built-in TextEdit.app but you must make sure the .bash_profile saves as a txt file, not rtf by hitting command+****+t before saving. Even if you specify no extension, sometimes it is added so from the terminal do
Code:
cd ~
ls -a
if you see .txt after .bash_profile, do this
Code:
mv .bash_profile.txt .bash_profile
Now you can use adb.
If you are using mac os 10.6, there will be some issues with the SDK because last time I checked (a few months ago), it wasn't compatible with the 64 bit version of Java. This is certainly an issue for ddms, but I am not sure if it affects adb - probably not but figured I'd mention it.
If adb works fine for you, ignore the rest of this post unless you want to use ddms.
If you want to use ddms with MAC OS 10.6 Snow Leopard, you have to make 32 bit mode the default for applications by dragging it to the top of the list in /Applications/Utilities/Java Preferences. You also have to add a line of code to /tools/ddms (in the SDK folder located where ever you put it)
Find this:
Code:
os_opts="-XstartOnFirstThread"
and change to this:
Code:
os_opts="-XstartOnFirstThread -d32"
Remember, this is for using ddms which I don't think you really need.
Hi there,
The same application of mine is running on non-phone Android (2.1) based devices, and collecting data (stored in an embedded SQLite DB).
I have to retrieve these data without using networking / bluetooth, USB only. This desktop application is pure Java, running on a unique PC, each device is plugged once at a time, backuped and so on.
I thougth about using adb to get an SQLite shell and SELECT / dump data, but I'll have to map adb and SQLite calls and sockets in my java code. And it's pretty ugly, too.
Do you see another solution? If not, do you know about an adb wrapper in pure Java, or stuff like that?
Thanks in advance
Anyone? Need more info?
Last up? Any suggestion is welcome.
Put the device un USB storage mode and copy the file in your code.
zephirus said:
Put the device un USB storage mode and copy the file in your code.
Click to expand...
Click to collapse
I don't think that would work; databases are saved in the root:data/data folder, even if the app has been 'moved to SD card', which you need SU permissions to access.
To the OP: Maybe you can look at the "Terminal Emulator" program? It comes packaged with some ROMs, like the Froyd Villain ROM for the HTC Hero, and lets you run ADB commands from on your phone, so it might give you some inspiration about how to do that. I don't know if it's open source though.
Thanks for your replies.
@zephirus : I've tried this way, except that I use ADB to retrieve the DB file. That's one ADB call to map onto the Java code, but using mass storage will be a pain on windows (access/mount device by letter). Seems to work well for now.
@Steven__ : As previously said, no problem using ADB to retrieve the file. I'll have a look on Terminal Emulator, wich I don't know.
Hi,
I am currently trying to get into Android Developing and I am following a tutorial book called "Practical Android Projects" however, I have only got so far and I am coming across a problem.
I have installed the Android SDK and required files, and installed ant as per instructions here: http://ant.apache.org/manual/install.html (Under Windows and OS/2 section)
I am getting an error about my /res folder not existing, when it infact does exist, in the directory it specifies?
Please see screenshot at the following link: http://server3.uploadit.org/files/StuMcBill-cmdprompt.jpg
Thanks for any help you can give?
I am running Windows 7 Home Premium x64!
Stewart
I would suggest using eclipse. Especially for beginners it is alot easier than building everything on console.
It has nice plugins and the android emulator from the sdk is integrated.
100% agree with Dark3n.
Ant is a programming language in and of itself. (Well sort of a scripting language but whatever).
No need to try and learn two things at once. I'd suggest wait until your 2nd or 3rd app at least to learn Ant. You really don't need it unless you want to use something like ProGuard. (Which is yet another thing to learn and another thing I'd suggest waiting on).
Oh an for a possible quick fix type
>ant clean
And see if that helps.
EDIT:
Err nevermind -- looked at your screenshot... why are you running ant from the System32 directory? Is your Android project really in that folder?
Usually you set the path environment variable in your system properties in windows to add ant to the list of paths, so you can run ant from any folder.
Then you can open that folder, type cmd in the address bar and open a command prompt in your project directory. You then run ant from there which reads the build.xml file an default.properties and local.properties files in your android project folder.
OK, I will give eclipse a try.
RE system32 and ant: Well the book I am following said to use ant, and I just followed the instructions and it installed the project in System32.
Could I just substitute Eclipse for ant while following the guide?
I do have Ubuntu installed on this computer, would that be better / easier?
Eclipse is available for any OS.
Use the one you are most comftable with.
I think eclipse might even use ANT internally but you don't have to hassle with it.
Working in system32 is not adviseable, you should generally keep out of there .
As the old PocketConsole isn't running on my device, i'm looking for good alternatives.
This perl-based implementation looks interesting, but the download links are broken:
http://www.rainer-keuchel.de/wince/console-1.3-all-platforms.tar.gz
http://www.rainer-keuchel.de/wince/fileutils-wince-arm-pocket-wce300.tar.gz
Download and install "Windows Mobile Developer Power Toys" from microsoft website.......install it on PC
After installation, open the location "C:\Program Files\Windows Mobile Developer Power Toys\PPC_Command_Shell\arm"
you will find three files there
1) cmd.exe
2) console.dll
3) shell.exe
copy "Console.dll" in \windows folder in your device....also copy "cmd.exe" and "shell.exe" on your device to any location e.g on SD card
after all this, simply launch cmd on device by launching CMD.exe.
Enjoy
thanks, it works!
I've downleaded this a long time ago, but i forgot to copy "console.dll" in the win directory, so it was not working.
It's missing tab-completion, doskey macros, and many tools for scripting (grep,etc.), but it's still better than noting...
Do you know any mirror for the files that were hosted on the rainer keuchel website?
I was quite unsatisfied with the Microsoft Powertoy console, so i ended up writing my own shell in python.
It is based on the Tkinter-based console by Ka-Ping Yee.
I've added tab-completion and the most common builtin commands:
Code:
cat ,cd,copy,cp ,delete,deltree,dir, env,head,help,ls,md,move,mv,pwd,rd,ren,rm,start,stat,tail,touch,type,exit
Still missing: wildcard expansions, redirections, pipes, common unix tools (grep, etc.).
Requirements: PythonCE + Tk libraries
Download here on my website
NOTE: It was not tested deeply, so expect many bugs!
If you make some improvements just post in this thread.
eTcl is another alternative for a console with Tcl-Tk scripting language.
Search for "eTcl" in Google.
Made this so people can no longer be confused about how to install certificates.
The application can run from windows explorer and from a command line.
Instructions on how to use the program are here: https://github.com/colinkiama/EasyCertInstall
Here's the link to download it: https://github.com/colinkiama/EasyCertInstall/releases
Here's the link to the source code: https://github.com/colinkiama/EasyCertInstall