Development for WM under Linux? - Windows Mobile Development and Hacking General

Hi all,
few weeks ago I deleted Windows and started using Ubuntu (nice OS), but it looks like it isn't possible to develop any applications for Windows Mobile.
Visual Studio 2005, Embedded VC++,... doesn't run under WINE.
I tried to use VirtualBox with WindowsXP, but it was terribly slow.
Is it possible to develop applications for WM under Ubuntu?
(Don't tell me to use dualboot, I want to have clean PC without some Windows sh*ts!)
Thanks

I would also like to know this.

you should trie Eclipse IDE!
If Eclipse doesn't fit, search for some of it's derivates.
There are several... many for Java, but also some for PHP (PDT) and
CSS/(x)HTML (Aptana Studio).
Hope I could help you!
If your VM is too slow,
start using a down-stripped version of WinXP!
(f.e. TinyXP -- nothing illegal, avail. via torrent -> u need a valid serial, of course!)

You can also create your own Tiny Xp..search fo a tool called
1. nLite For XP
2. vLite For Vista

ZaxXx said:
Is it possible to develop applications for WM under Ubuntu?
Click to expand...
Click to collapse
Check http://cegcc.sf.net
arm-wince-mingw32ce can be used to compile many wince programs
if you write/adapt the Makefiles

you can maybe make compact framework .net apps using http://www.mono-project.com/Main_Page
mono

Actually, you should think of downloading WM 5/6 SDK and... using it with right cross-GCC.
Yes, I was right: http://cegcc.sourceforge.net/

Related

Visual Studio 2005 / WM6 SDK installation issues

Hi
I finally decided to make my foray into windows mobile programming and downloaded all the necessary tools but have been hit hard in the very beginning. I keep my system drive (C: drive on which OS Win XP is installed) quite small (arnd 10 GB) and install minimal things on it. All softwares are installed on other drives.
Now while installing the tools i'm facing a prob. Even though I'm installing everything on some other drive, it still installs a lot of stuff in C:. e.g Visual Studio itself installed around 1.2 GB of data in C:. Now I'm left with around 1 GB space in C. And VS 2005 SP1 wants atleast around 4 GB space in C to install and WM 6 SDK also wants around 1.5 GB space in C: to install.
So, my question is that is there any way to get around this limitation??
I hate to tell you this, but you made a bad choice of tools. Unless you are programming with .NET languages I suggest you download embedded visual C++ 4 with WM 2003 SDK and install that instead of VS.
Smaller faster and can do all the same stuff.
If that is not an option, the only thing you can try is something called "Partition Magic" which allows you to resize partitions without loosing content.
I had thought about partition magic but I've had some bad experiences in the past (lost a 30 gb partition just like that ) so thats my last option...
Abt eVC++, I myself don't prefer .Net but I wanted to develop for WM5+, so far I had found out that its possible only with VS2005 and higher...Am I wrong here??
Actually that is what MS wants you to think.
It's true that you can not install WM 5 SDK unless you install VS 2005 first, but you do not need the WM 5 SDK to develop apps that will work perfectly on WM 5 device.
There are only few new APIs which you can call dynamically via LoadLibrary and GetProcAddress or you can manually unpack the WM 5 SDK msi file and link to those binaries. (Same goes for WM 6)

Ubuntu questions...

Hey guys, I've been using Windows Vista 32 bit 86x to do some of my theming work and APK(s) editing and I do not like how Windows is handling all of this. I've got way too much junk spread all over (tools, folders, editing programs, etc) to keep up with all this. I've been reading on Ubuntu and it is the programmer's choice in using to develop apps, themes, and editing APK(s).
I took the tour on Ubuntu and liked a lot of what I saw and thought it was perfect for app development and other stuff. No need to download so many stuff and end up losing track of most of your tools and such.
So, what I did was I did a factory image restore on my Dell Inspiron 1525 with Windows Vista 32 bit 86x and got rid of everything and saved important stuff on my external hard drive. Now I'm debating the use of Ubuntu as the sole system operation or installing along-side of Windows.
What would be necessary for me to do? I hate how Windows handles some of my work and don't see how it will benefit me in continuing my android app development and getting started.
I've also ordered a couple books on Android App Development and Java coding on Android platform. I'm in the process of trying to figure out what would be wise for me to do with Ubuntu here.
Any help is much appreciated. I will be using the books to help me step by step in developing app(s). But I'll take any tips that anyone is willing to give insight on!
just for app development i dont think a linux distro is needed.
if you are going into compiling kernels / compiling android sources you might need at least a VM with linux running afaik(but a full installation of a linux distro would be better i guess).
Personally, I wouldn't ever be without a windows machine. Ubuntu can do almost everything you'll ever need but you just never know when you might need to use a windows program that is not available for linux. So if your laptop is your only computer, I would dual boot for sure. If you have another windows machine, then I guess it doesn't really matter. But umm.. what exactly is your question anyway?
I'm just trying to get a better clarification for using Ubuntu and if it would be more wise to install it along-side Windows Vista (dual boot) or install it as the sole operating system instead of Windows Vista.
I do like Windows Vista for other things but it's been annoying trying to get it to work properly because some tools work better on Linux (Ubuntu).
Also, I had Java SDK, JDK, and latest version of Java on Windows Vista but from other threads or posts I've heard that the Java SDK Manager, along with Eclipse, work a lot better on Ubuntu. But of course there are other mixed reviews from others saying it works better on Windows Vista or Windows 7 (whichever they are using).
I always do research before I go doing something that has the potential of creating regrets (due to errors or not knowing much about this or that) or gets too confusing and become lost in reverting back to the way it was before I did something.
I do have a Windows XP Home Edition desktop (the latest one before Vista came out). Problem is it got the blue screen of death (doing memory dump) and I never really got it to recover from that. I wonder if the desktop Ubuntu disc can write over all that and make it work again, but only as a Ubuntu operating system?
I've always dual booted. Mostly because the games I play on my laptop are windows games. Keep this in mind, when you partition the drives. Linux can read NTFS/FAT, but windows has issues with ext. So don't worry about making a HUGE partition as ext for ubuntu. (I usually make a folder in windows on my c drive to send files back and forth). If you're using Ubuntu, you might want to look into using WUBI, makes installation a breeze.
it is no big deal at all.
it is better to have ubuntu run on the hardware not in VM.
you can have a dual boot
and install Eclipse and the plug-ins which will provide you will tools for android development.

[Tips]Android Studio not starting, tips here.

Hello,
I ran into a couple problems having android studio to install and work. thought I'd share my findings!
First, it wouldn't install. Not finding Java JDK even though it was installed.
This is solved by changing the name of C:\Windows\System32\Java.exe to something else before the installation.
Don't forget to change it back to java.exe once installed.
After installing Android studio, it wouldn't run (normal or admin didn't change a thing).
You will need to create a system environment variable named JDK_HOME with your JDK installation path (in my case C:\Program Files\Java\jdk1.7.0_21\ ).
Android studio should now launch. (more help here )
Now that Android Studio launches, it asks for the latest android SDK
Just download and install the SDK 22 from Here
make sure you run the .exe as administrator after installation
NB :
dbarrera said:
For those having issues starting Android Studio in some Linux distros, such as Studio not finding JAVA_HOME, JDK_HOME, STUDIO_JDK, set any of those variables to the directory where Java is installed (e.g. /usr/java/jdk1.7.0_21) previously to the whole validation statements in the startup shell file (studio.sh) and everything should be fine...
Click to expand...
Click to collapse
Hope this saves some head scratching !
After installing Android studio, it wouldn't run (normal or admin didn't change a thing).
You will need to create a system environment variable named JDK_HOME with your JDK installation path (in my case C:\Program Files\Java\jdk1.7.0_21\ ). Android studion should now launch. (more help here )
Click to expand...
Click to collapse
worked perfectly for me. Thanks
Perfect!
Worked for me too...thanks for saving time. :good:
Window 7 with jdk 1.6
anishjhaveri said:
Worked for me too...thanks for saving time. :good:
Click to expand...
Click to collapse
Does Android Studio requires JDK 7 or greater ?? coz i have JDK 1.6 on my Windows 7 it doesnt start up even after setting JDK_HOME or JAVA_HOME. http://forum.xda-developers.com/images/icons/icon9.gif
madhucm said:
Does Android Studio requires JDK 7 or greater ?? coz i have JDK 1.6 on my Windows 7 it doesnt start up even after setting JDK_HOME or JAVA_HOME. http://forum.xda-developers.com/images/icons/icon9.gif
Click to expand...
Click to collapse
It should work fine on 1.6.
Maybe it depends if you're 32bit or 64bit?
My personal setup is Windows 8 64 bit running the 64bit version of Java 1.7.
Also, for the SDK issues, if you already have the SDK installed from using Eclipse, you can just point Android Studio to that SDK under Project Settings or something (I forget the exact wording of the setting and I'm not at my computer right now...)
Thank you! I was having trouble getting Android Studio to start once installed. Setting JDK_HOME fixed this.
Im using Windows 7 Ultimate 64 bit and set the JDK_HOME variable but it wont start...
/Edit: it works now.
HI
Thanks for this tips.
working fine for me
If someone is just beginning app development, starting with hello world app. Would you recommend him eclipse or android studio?
Sent from my HTC Desire S using xda app-developers app
I'm having a small issue with Android Studio for Mac, and was wondering if anyone was running into a similar issue or has any advice.
When running my application, I'm getting an error on the install, specifically a Failure: [install_failed_invalid_apk].
I'm sure it's something really simple and elementary, but it wasn't an error I'm familiar with seeing coming from Eclipse.
Try on Linux.
Intrepid90 said:
I'm having a small issue with Android Studio for Mac, and was wondering if anyone was running into a similar issue or has any advice.
When running my application, I'm getting an error on the install, specifically a Failure: [install_failed_invalid_apk].
I'm sure it's something really simple and elementary, but it wasn't an error I'm familiar with seeing coming from Eclipse.
Click to expand...
Click to collapse
I'm getting the same message on Android Studio (for Linux)
same error here.
using arch linux
13th Dev said:
If someone is just beginning app development, starting with hello world app. Would you recommend him eclipse or android studio?
Click to expand...
Click to collapse
android studio is in 0.1 version, while eclipse is a really good IDE for android coding.
i get used to Eclipse, and i love it more. but also i think that Google will make android studio to be the right tool for development.
Maybe android studio is in 0.1, but is based on intellij Idea which is not new, supports android already, and seems better and faster.
I don't know how it is for an experienced developer which already know ways to move, but I started with Eclipse about a year ago, and I can say that I hate it. I've lost hours and hours to wait the very slow build process of eclipse, to wait for recover from crashes, to wait for restarts because graphical editor goes mad, to clean and reclean project so eclipse be able to see a new resource added, fix and refix layouts because graphical editor shows them completely wrong(especially on dialogs).
I don't know how android studio or intellij Idea will be(I used it for very short time until now), but I find it better, faster and maybe easier(maybe because I'm more familiar with eclipse) and I think that I will spend less time to learn it that the time I'll loose with eclipse.
Fixed [INSTALL_FAILED_INVALID_APK]
Ok, so I was able to fix the [INSTALL_FAILED_INVALID_APK] error I was getting, and finally get my app running on my phone. I'm not saying this will work for everyone, but it worked for me.
When I examined Logcat, I found that my package name in the Manifest was what was giving me issues, specifically the default package name given by Android Studio on project creation. The package name in my Manifest was invalid, and did not have a "." separator. Once I corrected this, I was able to run my application.
Another error I found further down the line was that new activities do not appear to be automatically added to the Android Manifest at the moment, so keep that in mind as well.
Happy programming
A different problem, if Android studio doesn't start, could be that the studio must be run as administrator. So it was at least for me.
vepman said:
A different problem, if Android studio doesn't start, could be that the studio must be run as administrator. So it was at least for me.
Click to expand...
Click to collapse
Will add to op, thanks!
Sent from my HTC One using xda premium
Proxy Settings for Gradle/Maven
Hi,
just tried the Android Studio using a proxy on WindowsXP.
Even if configuring the proxy in the Settings I got an error when creating a new project.
First I had to download the "gradle-1.6-bin.zip" and had to copy it to ".gradle\wrapper\dists\gradle-1.6-bin\72.....\
After that Gradle couldn't connect to the maven repository.
Solution: create a "gradle.properties" file in the ".gradle" directory
with content like this
Code:
systemProp.http.proxyHost=
systemProp.http.proxyPort=8080
systemProp.http.proxyUser=
systemProp.http.proxyPassword=
After that the first test project was generated without problems.
And even running it from the IDE and deploying/starting on my device (Galaxy Note, N7000) succeeded.
Is anyone here using this on Win 7 or 8? It has the stupid taskbar problem like Eclipse where you pin the exe, but when you launch it, it adds a second icon to the taskbar for the actual running app. What's even more ridiculous is, IntelliJ, which Android Studio basically is, doesn't have this problem! Any solutions?

How To Install PhoneGap Build .xap On Developer Unlocked Phone

Hello...
I just set up a Windows Phone developer account and registered my phone (HTC 8x) as a developer unlocked phone.
I have build an app with PhoneGap build and I can download the .xap, but I have yet to figure out how to install it.
Using a QR Reader asks if I want to search the store for something to open the file.
I've seen tutorials on how to build a PhoneGap app within Visual Studio.
I haven't seen any means of installing it from PhoneGap Build, though.
Any ideas?
JJ
The SDK installs a tool called Application Deployment on your PC. Run that, connect your phone via USB, and use it to sideload the XAP.
Man, it would be great if you could install them directly from the PhoneGap site (like iOS and Android - I haven't tested Blackberry).
Having to do it from a computer that has, at least, a Core i5 CPU and Visual Studio is kind of jacked.
Also, I can only have 3 developer devices on my account.
Apple allows 99, I think.
Of course, Android doesn't even require to to register a device (just turn on the "install unapproved apps" feature.
JJ
Fa310tx said:
Man, it would be great if you could install them directly from the PhoneGap site (like iOS and Android - I haven't tested Blackberry).
Having to do it from a computer that has, at least, a Core i5 CPU and Visual Studio is kind of jacked.
Also, I can only have 3 developer devices on my account.
Apple allows 99, I think.
Of course, Android doesn't even require to to register a device (just turn on the "install unapproved apps" feature.
JJ
Click to expand...
Click to collapse
You do not need SLAT (i5 CPU) to side load things.
That is for emulators only.
There is homebrew to do that on WP7. We'll just have to figure out a way on WP8. It's not very hard, once we can get the needed permissions.
mcosmin222 said:
You do not need SLAT (i5 CPU) to side load things.
That is for emulators only.
Click to expand...
Click to collapse
Well, that's handy to know.
It would still be nice to not require Windows 8 and Visual Studio just to install an app.
JJ
And don't need to be a W8, you can install xap's on Windows 7.
http://www.windowsmania.pl/poradnik...xap-na-systemie-windows-7-32-64-bitowym-3843/
English translated version of that link...
http://translate.google.com/transla...xap-na-systemie-windows-7-32-64-bitowym-3843/
Windows Phone Power Tools...
http://wptools.codeplex.com/
JJ
djtonka said:
And don't need to be a W8, you can install xap's on Windows 7.
http://www.windowsmania.pl/poradnik...xap-na-systemie-windows-7-32-64-bitowym-3843/
Click to expand...
Click to collapse
Has anyone been able to do this on Windows 7 x64 machine ? I am sure I am just missing something...
I downloaded "Windows Phone Power Tools" after installing .NET 4.5 but, it just gives me an error of "Unable to install or run the applications. The application requires that assembly Microsoft.SmartDevice.Connectivity version 11.0.0.0 be installed in the Global Accembly Cashe (GAC) first." when I attempt to run it..
As most of us know, SDK 8.0 REQUIRES Windows 8, I would love to be able to install XAPs on Windows 7 so I don't have to reboot my PC to use my Windows 8 partition just to install a quick XAP time to time. I can't download or find where to download the full install to extract a few fles as said in the directions...
Any idea to get this installed ?
I didn't get it working with my Windows 7 workstation.
I have a Windows 8.1 laptop, so I just use it.
Being able to do it at work would be nice, though.
JJ
Try install SDK7.1
djtonka said:
Try install SDK7.1
Click to expand...
Click to collapse
I have SDK 7.1 installed, still can't run Windows Power Tools on Windows 7 x64, I get the same error listed in my past post.
Anyone have a good step by step with details on how to do this?
bump...anyone ?
DavidinCT said:
Has anyone been able to do this on Windows 7 x64 machine ? I am sure I am just missing something...
I downloaded "Windows Phone Power Tools" after installing .NET 4.5 but, it just gives me an error of "Unable to install or run the applications. The application requires that assembly Microsoft.SmartDevice.Connectivity version 11.0.0.0 be installed in the Global Accembly Cashe (GAC) first." when I attempt to run it..
As most of us know, SDK 8.0 REQUIRES Windows 8, I would love to be able to install XAPs on Windows 7 so I don't have to reboot my PC to use my Windows 8 partition just to install a quick XAP time to time. I can't download or find where to download the full install to extract a few fles as said in the directions...
Any idea to get this installed ?
Click to expand...
Click to collapse
Yes you have to instal win 8 on your machine that,s a requierment.
Win 8
explorer 10
64 bit
eefdriehuis said:
Yes you have to instal win 8 on your machine that,s a requierment.
Win 8
explorer 10
64 bit
Click to expand...
Click to collapse
Or use VMware and create a virtual machine with the above requirements.
@DavidinCT @Fa310tx
You can install the WP8 SDK on Windows 7...it works just fine. The secret that Microsoft doesn't want you to know is that the WP8 SDK can be installed on Server 2008 R2...Server 2008 R2 is based on Windows 7 x64. Therefore, it will work with no issues.
http://forum.xda-developers.com/showthread.php?t=2422751

[Q] How to compile nitrogen for Win CE

This may be a rookie issue but i cant seem to get started here.
I need to compile nitrogen mp3 player, for Windows CE for my car audio (it runs WCE6.0).
I want to make some changes to the source, so therefore i cant just get a compiled copy.
I am using visual studio 2005. When i compile the solution, and try to run it on a Windows CE emulator, it doesnt open.
Running a download version, works fine, in the same emulator.
I think i maybe have the wrong SDK installed.
So my questios are, what SDKs i have to use, or do i have to use VS2008?
Or are the some other packages that i need to install, in order to make it work?
Why not simply use Pelles C instead of VS 2005?
jwoegerbauer said:
Why not simply use Pelles C instead of VS 2005?
Click to expand...
Click to collapse
It seems that Pelles C doesnt support compiling c++.
Im not able to open the .sln file provided with the nitrogen source code.
NeophyteDK said:
It seems that Pelles C doesnt support compiling c++.
Click to expand...
Click to collapse
Bingo.

Categories

Resources