I'm trying to make a simple (or so I think) program. Essentially, it's a mobile version of the Run dialog you see on the PC when you press WindowsKey+R.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
And as you can see, I got the UI design in good shape.
The problem? I'm lost in the woods of developer tools! I'm not buying the way overpriced Visual Studio that nobody would pay for hobby/small projects. I'm sick of paying for upgrades of BASIC 4 PPC that still doesn't have what it takes to complete such a simple project (i.e. Shell command only loads programs, not documents or URL's.)
All of my programming experience has been in some form of BASIC, from ApplesoftBASIC on the Apple IIc and MS-DOS QBasic to VB6, VB2005/2008 and REALbasic. I decided to give PPL a try but all its documentation assumes you have as much programming exposure as I, but in C, not in BASIC. For example, getting that Open: edit field to populate with the file chosen in the File Open dialog was a torture as I tried to translate the appropriate VB statement into its equivalent C-style PPL statement, and actually getting the darn file executed is a nightmare that is still not over.
Is there any hope? Is there a mobile developer tool that can provide a balance between "easy to program" and "feature-rich", and that can create code for both touchscreen (Pocket PC) and non-touchscreen (standard Smartphone) WinMo platforms, without costing and arm and a leg?
I appreciate your recommendations.
Good luck with your quest. I was going to post Basic4ppc then read the whole thread lol
Have you tried SharpDevelop?
anikolop said:
Have you tried SharpDevelop?
Click to expand...
Click to collapse
Thanks. What a nice surprise. SharpDevelop seems to allow .NET CF projects for both C# and VB, something that the free versions of Visual Studio don't support.
That said, I created the project and started to add the code, but SharpDevelop won't run it - heck, it won't even run an empty window with no code. I'm hoping that's an issue I can solve by downloading the latest .NET CF from Microsoft.
EDIT: Downloading the tiny (yeah, right) SDK for .NET Framework 3.5... Hope that does the trick.
EDIT 2: The SDK didn't do anything, but the Power Toys were the ones that allowed Sharp Develop to compile my .NET CF code.
SharpDevelop .NET CF compile
I have installed Sharp Develop, NETCFv35PowerToys, NETCFSetupv35, Windows Mobile 6.5 Professional Developer Tool Kit , etc. When actually attempting to compile (to ARM) I'm not sure if I've missed setting some option in SharpDevelop, failed to install some tool, or made some other error, but Build just seems to produce an x86 Windows executable.
Neither Help nor Google seems to shed light on exactly what I need to do.
Pointers please.
Thanks,
Greg
Hey Greg,
.NET executables are platform independent. You need to choose .NET CF as the target framework and "Any CPU" as a target CPU in your project options.
".NET executables are platform independent."
Does .NET produce some kind of intermediate "P-code" that gets interpreted on the PC/WinMo? That would explain the complaints I've read about .NET programs being relatively slow. I'll have to try the HelloWorld.exe on my phone.
Thanks,
Greg
Yes, .NET programs get complied down to CIL, previously MSIL, a stack based, machine independant byte-code or P-Code.
All of this stuff is defined, search the net for "Partition III CIL" for a bit of light bedtime reading.
Use Red Gate's .NET Reflector, to open your HelloWord.exe program, and it will show you the IL code, as well as higher level code, VB C# Delphi etc.
Related
Hello everybody,
Maybe a couple of you are like me not really satisfied with the integrated JBlend. It doesn't create shortcuts, looks bad etc. ...
For me the Java-client of the SE Xperia X2 did solve that problem. You can load it here: *KLICK* (Post 2)
Install it and if you're not using WWE-Rom then do the following changes within the registry:
ultrashot said:
[HKEY_LOCAL_MACHINE\Software\Apps\Esmertec Java]
"ProgramsGamesURL"="\\Windows\\Start Menu\\Programs\\Games" ;this
"ProgramsURL"="\\Windows\\Start Menu\\Programs"
\\Start Menu\\Programs\\Games is a language-dependent part
Click to expand...
Click to collapse
Do a softreset and install any midlets you want. Shortcuts will be created by default (see my screen). With this JAVA-client it is also possible to run midlets in Landscape mode (2nd screen) - added Opera Mini to rotation support with BsB-Tweak.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If you want to open your midlets that are already installed on your device then go to Windows/java and simply click all the *.jar-files within that folder. They will now automatically install with the new JAVA-suite.
Maybe someone likes it as I do.
Cheers.
I downloaded the java from your link and installed it. however, I can't seem to find it in the list of programs. How do I access the new java engine? I am using WWE ROM.
As I said you have to reinstall your installed Midlets (can be found in Windows/java, *.jar-files). Then shortcuts will be created in your start menu. To see a list of all installed Midlets go to Settings (Wm6.5, not Sense), System and click on "Java".
Wonderful!
Thanks for sharing! Im using it now..
Great tip!!
Scrammy said:
Thanks for sharing! Im using it now..
Great tip!!
Click to expand...
Click to collapse
You're welcome!
hi what version opera mini did you get (link pls)
i cant get it to install . it get half way three times then fails
thx
marty
So then load it via PC. *KLICK*
ok story so far, removed myriad installed opera mini 5 beta 2 worked ok
reinstalled myriad this time to device reset then reinstalled opera , this time it worked but its working on jblend still how do i get it on myriad
also shortcut on start menu always reinstalls it
help appreciated otherwise i'll get bored and not bother lol
thx
marty
I have installed this on my Xperia X1, though when I try to run a file for Example: "Jbenchmark3D" it comes up with a message saying "could not start the JBenchmark3D application"
Any ideas what could be wrong? the icons for each app shows up in my programs list, they just done run (when I try they show the message above)
I hope someone can help..
Can it Run on Samsung i900/i908?
Hi, I installed Myriad Java on my Samsung Omnia i908, but whenever I run the Jar file, it just caused a certification problem. Can Myriad Java support Samsung i900/i908?
Thanks!
hey i tried to install myriad java on my omnia i8000 running winmo 6.1 official rom but it says "either it is not signed with a trusted certificate certificate error or one of the component cannot be found. try reinstalling." can u please upload the extracted jbed.exe in ur \windows dir please . . . . thank you.
I would like to know how can we change the fonts size in Myriad Java? In Esmertec Jbed, we could edit the fonts via registry tweaks, but I have not found similar tweak for Myriad Java. Anyone knows how?
Hi XDA Dev's,
I have a program called words. It's a windows based, but ported to linux program which is able to function as an English to Latin and reversed dictionary.
The program has to be ran in the Terminal, cos it is command line interface based.
I thought since it is a program ran in the Terminal you should be able to run it in the Android Terminal, but that's just a theory.
Practically it doesn't work that way.
After untarring the app I entered ./words or su ./words but either won't work.
It gives me the following:
(I took the block from the internet so hope you see a block, not some kind of symbol: )
EL4: not found
4: not found
4: not found
: not found
./words: 5 Syntax error: "(" unexpected
So I think the Android Terminal reads differently cos it doesn't expect that character.
The question is: How can I port a linux CLI program to Android? And is this possible with the App Inventor from Google?
I don't really understand ypur question. If you would like to run a shell script try this
Code:
sh script.sh
Sent from my GT-I5700 using XDA App
Hmm sh gives me almost the same error.
But that's the thing, I have no clue what it is, there are a few files which are being used by the program. One of them is words, but it has no extension.
TT5555 said:
Hi XDA Dev's,
I have a program called words. It's a windows based, but ported to linux program which is able to function as an English to Latin and reversed dictionary.
The program has to be ran in the Terminal, cos it is command line interface based.
I thought since it is a program ran in the Terminal you should be able to run it in the Android Terminal, but that's just a theory.
Practically it doesn't work that way.
After untarring the app I entered ./words or su ./words but either won't work.
It gives me the following:
(I took the block from the internet so hope you see a block, not some kind of symbol: )
EL4: not found
4: not found
4: not found
: not found
./words: 5 Syntax error: "(" unexpected
So I think the Android Terminal reads differently cos it doesn't expect that character.
The question is: How can I port a linux CLI program to Android? And is this possible with the App Inventor from Google?
Click to expand...
Click to collapse
Hi, If you can get the source code to the program, then potentially the program can be ported to Android/ARM CPU architecture. The fact that it is a command-line program isnt such an issue - an Android app can be designed to interact with that (eg using Runtime.getRuntime().exec()).
If you just copied over the binary that runs ok under Linux on your PC, and tried to execute it on your Android device, it wont work. Your PC is running x86/x64 based CPU, your Android device is running ARM based CPU (eg you're putting diesel fuel into a car that needs petrol).
- jc
If I had the dictionary file, I could put it on my hosted site and write an app.
Rootstonian said:
If I had the dictionary file, I could put it on my hosted site and write an app.
Click to expand...
Click to collapse
You said it like it's that easy; but if you want I'd appreciate it.
The link on the official site doesn't work anymore so I uploaded the .tar.gz file on my website. Direct link:
http://www.freewebs.com/hoitom/words-1.97Ed-linux.tar.gz
Click to expand...
Click to collapse
I already made a concept of what it could look like with the App Inventor, but I don't mind else:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Note: this is only a English to Latin example. It has to be Latin to English too.
I hope you're able to do it. I'm really bad with linux.
Good luck
http://users.erols.com/whitaker/words.htm is the page for this program. It's written in ada and the author supplies the source. It will probably not be much harder than just compiling it for android once there is a working cross compiler, GNAT AUX is working on one currently http://www.dragonlace.net/posts/GNAT_AUX_ported_to_Android/.
AndroBox
Quick and Easy to use ADB and Debug tools for professionals and beginners
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
ADB and similar command line tools for Android have been a pain for new users to learn and extra work for the Developer while working.
Personally, I got sick of typing and having to remember things so I made this tool. It is also nice because it is mucho faster than I could do it!
I will be cleaning things up and making it look nicer (more even...?) as well as releasing the source code soon. Be patient!
DOWNLOAD - WINDOWS:
http://dl.dropbox.com/u/58849669/AndroBox-Win_0.4.zip
DOWNLOAD - LINUX:
http://dl.dropbox.com/u/58849669/AndroBox.linux.zip
UPDATES:
11/15/11 UPDATES
- Linux Version Added - runs on ALL Linux standard distros
- Linux version requires device to be hooked up and present or it will not go past the first screen
- Linux version shows real time activity in the Bash terminal!
- Linux version requires you to go through the true google agreement (keeps code distro kosher)
10/27/11
- FIXED Bug-report
- DDMS Runs natively (if you do not care about DDMS, download the old version here: http://www.multiupload.com/OQSF5U7QNH)
- No longer requires a device to be plugged in to start up. check test.txt
EVERYTHING RUNS FROM WITHIN THE APPLICATION FOLDER.
This was done simply because I like to be able to carry my tools on a small flash drive and not install anything.
There is no need to install the whole SDK to get access to a few key tools.
ALL OF THE PROGRAM FUNCTION OUTPUTS ARE TXT FILES THAT SAVE TO THE APP FOLDER
This just keeps things nice and tidy. You have everything right there to look over when you want to.
READ THE INSTRUCTIONS!
This will tell you how to use each function.
LEARN ADB
Allows new users to find out just how much fun (and Linux) is in there. Yay shell!
*** DONATIONS ARE NOT GOING TO MY POCKET, THEY WILL BE DISTRIBUTED TO THE EFF AND CYANOGEN WEBSITES FOR THEIR HARD WORK! ***
*I am not resposible if you mess up your device using this tool, please don't be stupid.*
QUESTIONS? Shoot me a PM or Email that is enclosed in the instructions
Looks like an awesome tool, but i need the Linux version
Its working, I just need to make sure it works on all of the major Linux Distros.
Regular Ubuntu 10.04 is being finicky. Kubuntu, Xubuntu, and RedHat are playing nicely.
I just want to make sure that it is good for all before release. It also autohandles your path so all you have to do is a "chmod +x AndroBox", then "./AndroBox" and you are good to go!
Thanks
Great tool, thanks a lot
Updated - everything should work GREAT now. DEBUG (DDMS) runs natively and FULLY!!!!!
If you do not care about DDMS, use the older version as it is MUCH smaller since it does not need the included library files.
Great !
Waiting for tool that workin with linuxmint
Sent from my E398-EM30-S5570
HEY GUYS - I HAVE A WORKING LINUX VERSION, BUT I NEED PEOPLE WHO WANT TO DO A PRIVATE BETA!
Kubuntu, Red Hat, and Xubuntu have been tested as working.
Send me a PM or post in this thread!
Now with working linux version!!!!!!!!!!!!!!!!!!!
Testing on all major linux distros without issue!!!!!
Added Dropbox Links because of the mess with most other filehosting services ATM.
How do i start the linux version up?
Do i need to use terminal or?
Android String Translator
I wrote a tool that I sometimes use on my apps when I want to quickly and automatically localize a bunch of Android string resources. I call it Android String Translator, and it is a Windows utility compiled with .net 4.5 framework.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Disclaimer: After creating my tool, I saw that there were other similar projects here on XDA such as:
[PC][WINDOWS] ANDROID LOCALIZER - Translate Android App Easy
http://forum.xda-developers.com/showthread.php?t=2483990
Android APK Translation - CMD Line Tool
http://forum.xda-developers.com/showthread.php?t=1666630
So if my utility does not fit your needs, those above might. I do not claim that my application is better than any of the others (it could be worse for all I know).
Requirements
Android String Translator requires a Windows machine with the .net 4.5 framework. It also requires a Google Translate API key. The API key is not free (sadly). I think the cost is something like $20 per 1,000,000 translations. You can find more information here:
https://developers.google.com/translate/v2/getting_started
note: If people find this program helpful and want me to add support for alternative translation engines, I would be happy to do updates.
How to use it
The utility is pretty straight forward. First you enter your Google Translate API key at the top of the window. The box with all of the language codes is the list of languages that your app will be translated to. Then you select your root Android project folder. A list of all your .xml resource files will come up. Put a checkbox in the .xml files you wish to translate. Selecting an xml file brings up a list of resources in that file. Check each value that you wish to translate. If one of your strings is a comma separated list of values, check the CSV checkbox. When you are ready, hit the compile button and wait for it to do it's thing. It automatically creates the /values-xx folders in your project for each language. After you run the translator, remember to clean your project in Eclipse (if you are using Eclipse).
Machine Translation
Obviously this utility uses machine translation, so your results may vary. Machine translation is getting better, but a lot of people do not like it and advise against using it. Whether or not this app is good for your project is up to you.
Known Bugs
None that I know of, but I have only used it on a few small projects. To be on the safe side, you might want to back up your original xml files before running this tool. The utility itself should never touch the original files, but who knows what could happen. I make no guarantees or warranties on this thing. If you find bugs in the tool, let me know and I will see what I can do.
Ideas or Feature Requests?
If you like Android String Translator and would like to see it updated or improved, just let me know your ideas in this thread and I will try to make it happen. Chances are, if you can help me make this app so that it makes your life easier, it will probably end up making my life easier as well.
Security Warnings While Installing
When you are installing this tool, Windows bugs you that I am not a known publisher or something to that effect. On Windows 8 you can click on the 'More Info' button and then say 'Install Anyway.' I don't know the exact procedure on Windows 7 but I'm sure it's similar. I don't know how to make this go away or if becoming a known publisher to Microsoft will be more effort than it's worth. If anybody knows a way around this just let me know.
Download Link
http://market.ape-apps.com/zips/ast.zip
Pretty useful tool.
I was using google translator api to translate xml files with strings. And implemented a tool, to do it automatically. You can find it here: http://whyte624.com/translate/. Just upload file and download translations.
I know that it is not perfect, but pretty cool and advanced apps and games use this approach.
Bug & Issues
thanks man
Given the case you feel your favorite Android emulator runs slowly, especially at a certain game, then you should remind that Android emulator's (AVD) performance mainly depends on correct setting of its
A: Android per app Heap Size granted
B: VM total RAM (read: Random Access Memory) allocated off host machine
Most emulators don't automatically take care of this, they are preset to standard values: it's on the user to correctly configure it.
User has to check and monitor for the RAM usage of an individual app/game on Android, has to check which app/game is eating the maximum RAM and affecting the performance.
Yes, for me one of the fundamental questions users ask (or at least, they should) is: how much memory is my program using? It may be a simple question, but with a virtual memory operating system like Android the answer is quite complex.
By default Android OS - a derivate of Linux OS - since ages comes with procrank tool, what in detail shows you some RAM metrics for an application as those are VSS, RRS, PPS and USS. So also Android OS provided by the various emulators should do it, too.
Installed Terminal Emulator app on some wellknown emulators and ran procrank. Experienced that on Android emulators like
BlueStacks 4 ( Android Nougat )
PROCRANK doesn't work at all, you get message: "error creating kernel interface -- does this kernel have pagemap?"
MEmu 6 ( Android Nougat )
PROCRANK doesn't exist - means isn't implemented at all
NOX 6 ( Android Nougat )
PROCRANK isn't working, you get message: library "libpagemap.so" not found
Genymotion 3 ( Android Nougat )
PROCRANK doesn't work at all, you get message: "error creating kernel interface -- does this kernel have pagemap?"
Maybe someone knows reasons for that?
Hence, to get out the app/game specific RAM metrics ( read: VmPeak, VmVSS, VmHWM, VmRSS and VmPSS ) on an Android emulator, I wrote a Windows command script ( ~50KB ) that running against a rooted emulator gives them to me: I named it RAM-hog Sniffer. Notes: It's provided on an "AS IS" basis, it's free software, and you are welcome to redistribute it under license GPLv3.
Successfully tried it on properly rooted and ADB-enabled BlueStacks v4.50.5.1003 ( Android Nougat ):
Excerpt of logfile created:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Useful or not is for you to tell, give it a try and leave a comment with suggestion if indicated.
Usage:
• Download the attached ZIP and unpack it on Windows PC into any location of your choice
• Connect a rooted and ADB enabled emulator to PC
• Run Windows batch-file named RAM-hog-Sniffer
FYI: You will need to install the Android ADB drivers if your emulator is not detected.
PS: Please, do NOT share this elsewhere - I want to be able to update if necessary.
Script revamped. New version is in OP.
gr8. ty
To keep you updated: BlueStacks announced to fix the PROCRANK problem
According to the description I think something good,
but, can the script, not to change to the installed system,
for editing on a computer.>?
Ciuma777 said:
According to the description I think something good,
but, can the script, not to change to the installed system,
for editing on a computer.>?
Click to expand...
Click to collapse
You use any ANSI-editor of your choice, preferredly of course Notepad++, to edit the script on your Windows computer according to your needs.