Hi
I have created an APK to my java application and installed it on my device
i have two questions
1. How can i run application at startup, do i need to use RECEIVE_BOOT_COMPLETED or is there another way can someone post an example
2. After i installed the application where are the file located
thank you
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:
I've recently started to develop my own comic reader. The problem I've come up with is cbr files, which are esentially rar files. Now I know there are comic readers out there (all of them, I think) that support cbr files. So there is a way of doing this, I just can't find how.
In the rarlabs official page (search google rar addons and it's the first page) there are several options. I would like to know if I download the commandline arm unrar how I could install it on Android (I have a motorola Xoom, it would be for Honeycomb), assuming that is correct.
If this is not an option is there a command line unrar application that I could call from my own? and How would the code be (to call an external application, that is)?
If the above is not possible, what is the way to get to unrar something in android?
The only real option I've seen would be to use junrar (hosted on github)
But it seems complicated and I'm not sure it works very well as I've seen a lot of conflicting reports.
Thanks for any help!
Try http://www.all-freeware.com/results/rar/for/android to unpack rar on Android.
Success,
Senax
Hi:
I'm not exactly sure what you wanted me to try. There is nothing in that page that would allow me to uncompress a rar file on android. Only a bunch of unrar utitilities and some android things but they are not related, that is, there is nothing that says unrar that also works on android.
thanks anyway.
Unrar
great app available here: androidzoom (dot) com/android_applications/tools/unrar_dhpu.html
Cheers,
Romuloxiii
Hi:
It's seems that I didn't make myself clear.
I want to develop an android application that needs to unrar files. Is there a way to call the unrar application from my own code?
If so, can you tell me how?
Otherwise, I appreciate the effort, but I can't use that.
Thank you very much!
You can bring the unrar binary along in the /asset of your app,
on first launch copy it to your apps /file directory, chmod +x it, and use exec("sh") to unrar the files from shell.
oh, I see. I think I get the the idea but I don't understand all the instructions.
What did you mean by importing thebinary on my asset?
If I do the step above why do I need to copy the binary on first launch?
Don't I need root privileges too chmod it? And how do I do it from my source code?
And finally where can I find the command line use of the application? Or is it the same as the Linux version?
I know there are a lot of questions, but please keep in mind that I'm very new at doing this.
Thanks for all the help!
You need to put it as asset to bring it along.
You need to copy it because asset files are not directly accessable.
You don't need root to chmod the file in your own directory.
You do it by using a shell from your code i.e. Process.exec("sh")
And finally you want to program the app not me,
so don't be lazy and invest some time.
Google google google google...
If there are still questions left after that, you may ask again .
Ok, I'll try it and get back to you!
Thanks!
Sorry for my lazyness, but I've been Googling for a good half hour without finding a simple 'unrar' binary executable compiled to run from terminal on rooted ARMx32 device. I don't want bloated GUI APK's or libraries for development implementation, but just the plain command line interface executable. Anyone, please? It's a pity they haven't baked it into Busybox as an applet, IMO.
Hello,
1. Can we launch Android apps with a command line like in the MsDOS terminal Windows: "notepad.exe" ?
1.a If yes, can we use parameters like: "notepad.exe memo.txt" ?
2. What is the language to use in a terminal emulator Android apps, is it Linux?
My goal is to create shortcuts (icon on a screen) launching a direct-call for apps like: Viber, MobileVOIP.
An icon shortcut like: "viber.apk -call +41791234567" to call this number with Viber.
How to do this? Is there an app that can create those kind of shortcut?
3. Is .APK the extention of executable file in Android SmartPhone?
3.a Can we launch a standalone executable app on Android , without installing it?
Thanks in advance and regards.
sam.z said:
Hello,
1. Can we launch Android apps with a command line like in the MsDOS terminal Windows: "notepad.exe" ?
1.a If yes, can we use parameters like: "notepad.exe memo.txt" ?
2. What is the language to use in a terminal emulator Android apps, is it Linux?
My goal is to create shortcuts (icon on a screen) launching a direct-call for apps like: Viber, MobileVOIP.
An icon shortcut like: "viber.apk -call +41791234567" to call this number with Viber.
How to do this? Is there an app that can create those kind of shortcut?
3. Is .APK the extention of executable file in Android SmartPhone?
3.a Can we launch a standalone executable app on Android , without installing it?
Thanks in advance and regards.
Click to expand...
Click to collapse
Android is a Linux operating system. If you are unaware of this search through Google. There are lot of things you need to know before coming into your other questions. Also emulator in android is just the same as Linux command prompt and uses Shell Scripting. You can have scripts that can be run through Script manager apps. I am not that familiar with scripting. Search through Google or forum. you will find your answer.
Also if you find any solution to your problem. Please share.. Myself and others can make use of that. All the best. :good::good:
Porting Java apps To Android For Running them Without Emulator
I have seen many java apps ported to android.
i.e. uc browser, opera mod.
They run without any emulator like netmite.
Can any1 help me on how to make java app an android app that doesnt need any emulator.
I know how to convert .jar to .apk with netmite online.
THANX EVERY1!!