Hello
I am busy with a program that checks for a newer version on the marketplace.
But now I want to get the ID code:
example: e4571a02-0b87-e011-986b-78e7d1fa76f8
But how I get this.
And maybe also the Version ID.
I am programming in VB.NET but if you had the code in C++ or C# I will convert it.
Regards,
Weide43
Read file WMAppManifest.xml inside xap (i.e. zip), and use ProductID attribute from <App> tag.
Related
Hi guys
m new to J2ME programming. i built a small application through java wireless toolkit 2.5.2..... it run well in the emulators provided with the tool kit. but when i deploy that application in my HTC pharos it gives an error "JAD CHECKING FAILED" .......Please someone help me out with it........
jad
.
Try this:
Convert j2me MIDP (jad) into Android package (apk)
.
You need to keep the java files,jad,exe file in same folder
Is there a way to compile .java file to .class file and execute it
I wanted to compile c/c++/java programs, not for my phone but in my phone...
I searched but did not find an easy way for it.
At last I found out a real easy way to compile c/c++ by using adosbox for android.
I copied the turbo c 'tc' folder from my pc to my sdcard and used adosbox like command promt to go to 'bin' folder in tc and start tc.exe...
Then I could easily write and compile programs just like i did on the pc
But still no luck for java programs...
I copied the reqired java folder and then used adosbox to run the command "javac file.java" but it said "This Program Cannot Be Run in DOS Mode"
So if there is any other way to compile java programs in my phone
please help
Thanx in advance
Try looking at Eclipse, although Eclipse is a large desktop IDE, it includes its own Java compiler written in Java (in the part called "JDT core"), and if (as I hope) that Java compiler is not copyrighted by Sun/Oracle, you (or someone else already maybe) may be able to compile that part of Eclipse into a "native" Dalvik/Android App.
Googling the issue, I see that others have been asking for an Android port of Eclipse too, so maybe there will be some momentum going for this soon.
Hi,
For developing an application I wanted to know, the exact path where the dlls deployed via XAP file are getting deployed in the phone (mango). I see that the XAP file can embed dlls etc and pass it on to the device. But Im not sure where (folder name/path) they are really going to. Some where in the xda forums, it says it is the Applications\Install\" + productID + @"\Install" directory is where all the external dlls etc goes. But when I try to access this file path from code (for creating a new file) an error is thrown.
Has one one got more information on how to overcome this access restriction ?.
Im using mago 7, developer unlocked, HTC Troppy with interop services enabled.
regards. The idea is to host a com dll and register it to the device for further use.
RR
Steps:
(Yes, you need Jailbreak first.)
Download CsBox.zip from this thread.
Unzip the CsBox folder to your user's folder (in my case it's C:\Users\ssaaxx\Desktop\Scripts\)
Get Notepad++ and run it (from the App porting thread)
In Notepad++, Create and save a C# code snippet (A sample code snippet can be found in TestCSharp.cs.txt attachment)
In Notepad++, click "Run" menu --> "Run..." --> Input following text and run (or you can save it as a command shortcut if you want to)
C:\Users\ssaaxx\Desktop\Scripts\CsBox\RunCsSnippet.bat "$(FULL_CURRENT_PATH)"
There you go!
* Do use the right folder path for you.
------------------
How does it work?
Windows RT ships with a CSharp compiler (csc.exe), except it's not working by default because of missing some referenced dlls.
So I commented out the missing references from the rsp file, and it worked.
After this it's just some basic scripting and Notepad++ integration.
-----------------
Edit: fixed a bug. thanks Calebsem.
Edit: Hide compiler output when compiling succeeds.
cool!
Very cool little hack! I've been looking forward to a way to program C# on the Surface!
Just to demonstrate what this "scratchpad" is capable of, I'll update this reply with some handy scripts:
1. Script to enable Adobe Flash for specified website / domain: EnableFlash.zip
...
* Download the zip and unzip the cs file. Load it in Notepad++ and run.
ssaaxx said:
Steps:
How does it work?
Windows RT ships with a CSharp compiler (csc.exe), except it's not working by default because of missing some referenced dlls.
So I commented out the missing references from the rsp file, and it worked.
After this it's just some basic scripting and Notepad++ integration.
Click to expand...
Click to collapse
Thanks for the cool utility and guide! I was able to work it out to compile a multi-file .NET project. One snag that I hit in the endeavor was about the resources. ResGen.exe does not come on the RT version of Windows. I used my desktop to compile the various resources and then stuff them into the directory tree. At last, the program I re-built was completed and launched well. It consists of an exe and two dll files. All's well for that experiment. Unsure if I can make the time to do a clean room build of ResGen.exe for ARM.
I'm surprised this topic didn't get as many posts as it did. Found this thread through a youtube video, and this has got to be one of the best kept secrets for code development on the RT. A quick replacement of the csc.rsp file after toying with permissions, and adding the csc.exe to my PATH basically allows command-line C# building.
Wondering if the missing DLLs actually appear on different versions of RT. Not that these specific namespaces are something I regularly use, but it would be nice not to have to comment things out this way.
ssaaxx said:
Steps:
(Yes, you need Jailbreak first.)
Download CsBox.zip from this thread.
Unzip the CsBox folder to your user's folder (in my case it's C:\Users\ssaaxx\Desktop\Scripts\)
Get Notepad++ and run it (from the App porting thread)
In Notepad++, Create and save a C# code snippet (A sample code snippet can be found in TestCSharp.cs.txt attachment)
In Notepad++, click "Run" menu --> "Run..." --> Input following text and run (or you can save it as a command shortcut if you want to)
C:\Users\ssaaxx\Desktop\Scripts\CsBox\RunCsSnippet.bat "$(FULL_CURRENT_PATH)"
There you go!
* Do use the right folder path for you.
------------------
How does it work?
Windows RT ships with a CSharp compiler (csc.exe), except it's not working by default because of missing some referenced dlls.
So I commented out the missing references from the rsp file, and it worked.
After this it's just some basic scripting and Notepad++ integration.
-----------------
Edit: fixed a bug. thanks Calebsem.
Edit: Hide compiler output when compiling succeeds.
Click to expand...
Click to collapse
i dont work, he says "WARNING CS2008 NO ORIGINAL FILE SPECIFICATED"
i post an image (sorry but is in italian)
I'm trying to edit an .apk of an existing game and basically create a private server for just me and a couple friends. BUT, the code is written in Chinese. When I open the file in Visual Studio editor with multi-language support it gives me this error, "The file will not be displayed in the editor because it is either binary, very large, or uses an unsupported text encoding." Any ideas on how to bypass this? Even tried opening in notepad using unicode.
You can't open a apk in visual studio as is, you must first unpack the apk.
I would use APK Studio instead.
9volts said:
You can't open a apk in visual studio as is, you must first unpack the apk.
I would use APK Studio instead.
Click to expand...
Click to collapse
Yes, Visual Studio is fit to source code, other than a binary file such as an .apk.