Quote: "Excellent stuff. Just tried it with Snake Snacker and my Samsung S4 and it worked first time, no worries. Well done that man!!"
Thanks!
Quote: "Hi,
I´m trying it in a Win XP VM and always got "apkbuilder.exe isnt a win32 file" error.
do i need .Net or anything else ? (Java is Installed) "
Yes you'll need .net to run apkbuilder.exe, I made it in VB.net. Sorry about forgetting to mention it
But you can do it manually instead, just follow these steps:
1. Duplicate the folder "DATA/project" to "DATA/tmp"
2. Open "DATA/tmp/AndroidManifest.xml" and set the version number, version name, package name (all on line 2)
and on line 11, change android:screenOrientation="" to either android:screenOrientation="sensorPortrait" or android:screenOrientation="sensorLandscape" Which ever one you need
3. open DATA\project\res\values\strings.xml and set the app name ie. <string name="app_name">Super cool App!</string>
4. Copy the media folder of your project to DATA/tmp/assets/
5. rename DATA/tmp/assets/media/[bytecode file] to bytecode.byc
6. run DATA/compile.bat
7. it will create tmpSigned.apk in DATA/APK/
(You'll still need JDK, but no .net)
these are exactly the same step the program does
Here's the VB code if anybody's interested:
If My.Computer.FileSystem.DirectoryExists("DATA/" + "tmp") Then
My.Computer.FileSystem.DeleteDirectory("DATA/" + "tmp", FileIO.DeleteDirectoryOption.DeleteAllContents)
End If
My.Computer.FileSystem.CopyDirectory("DATA/project", "DATA/" + "tmp")
My.Computer.FileSystem.CopyDirectory(FolderBrowserDialog1.SelectedPath(), "DATA/" + "tmp" + "/assets/media/")
Dim path As String
path = "DATA/" + "tmp"
Dim maniLines() As String = IO.File.ReadAllLines(path + "/AndroidManifest.xml")
Dim NameLines() As String = IO.File.ReadAllLines(path + "/res/values/strings.xml")
maniLines(1) = Mid(maniLines(1), 1, 96) + TextBox1.Text + Mid(maniLines(1), 97, 1)
maniLines(1) = Mid(maniLines(1), 1, 54) + TextBox3.Text + Mid(maniLines(1), 55)
maniLines(1) = Mid(maniLines(1), 1, 31) + TextBox2.Text + Mid(maniLines(1), 32)
If RadioButton1.Checked = True Then
maniLines(10) = Mid(maniLines(10), 1, 120) + "sensorLandscape" + Mid(maniLines(10), 121)
Else
maniLines(10) = Mid(maniLines(10), 1, 120) + "sensorPortrait" + Mid(maniLines(10), 121)
End If
NameLines(2) = Mid(NameLines(2), 1, 28) + TextBox4.Text + Mid(NameLines(2), 29)
IO.File.WriteAllLines(path + "/AndroidManifest.xml", maniLines)
IO.File.WriteAllLines(path + "/res/values/strings.xml", NameLines)
MsgBox("Done step 1, compiling to APK now!")
Process.Start("DATA\compile.bat")
MsgBox("Done compiling to APK!")
It's actually extremely simple