Hello,
I would like to create an Android App that can run a executable file (developed from C language for android) by clicking a button on touch screen. The executable file (created from arm-eabi toolchain) works pretty well if I run it from android command prompt. What I need to do is to able to run that exe from an app (basically that app should able to call that exe file).
I don't have much idea of how to do this.. I have seen people suggesting to use JNI to convert native C code into Java. But, I don't need to anything at Java level. All I wanted to do is to call the executable from an app. Is this possible to do? It would be very helpful if someone can give me suggestions.
Thanks,
Krishnan.
It would take a lot of hard work.
Best of luck to you...
Related
Let's pretend I'm new to windows mobile. (I am). Can anyone tell me HOW I get to these HKEY directories that everything is edited in. If anyone could give me a step-by-step instruction on how to install or modify anything at all in the phone, I would greatly appreciate it.
Please start the steps right after the 'Turn on phone' step, as I am fairly confident I have that under control. Every time I've asked this question on other forums I just get links to different forums with no helpful information below a certain level of expertise. I have never coded or done anything other than drag and drop folders, etc so a dumbed down version of how to start and I can learn from there. Anything! PLEASE!!! I hate having this amazing machine and not being able to utilize it.
oh, Touch Pro, sprint
First you need to install a registry editor. The two most used are PHM (free http://www.phm.lu/Products/PocketPC/RegEdit/) or Resco Explorer (paid http://www.resco.net/pocketpc/explorer/). I prefer Resco, but everyone has their own pref.
And installation, you fire it up and simply navigate it to your registry. Pretty straightforward.
I downloaded the free one but it isn't showing up in my phone. I navigated to its folder on my pc and everything seems to be zipped. when I unzip the file extensions are *.001 and I can't open or access them. am I doing something wrong ?
also, if anyone can explain to me how to install .net framework ?
warrenmrogers said:
also, if anyone can explain to me how to install .net framework ?
Click to expand...
Click to collapse
i assume you need the new 3.5 .net compact framework.
http://www.microsoft.com/downloads/...49-3c6b-42f1-9fd9-0041345b3385&displaylang=en
You simply download and install the file on your computer (not your mobile device). This file will install the framework on your computer and will activate the add/remove programs on the sync center, so the next time you connect your touch pro it will ask to install the program. Then you just follow any instructions displayed on your touch pro for final installation and you're set to go!
here's on .Net http://www.fuzemobility.com/?p=470
It has an extra app to choose a default .Net.
There's also a Tips and Tricks section and a walk through for TouchFlo3D at fuzemobility.com that you may want to try.
I can relate to this problem.
warrenmrogers said:
Let's pretend I'm new to windows mobile. (I am). Can anyone tell me HOW I get to these HKEY directories that everything is edited in. If anyone could give me a step-by-step instruction on how to install or modify anything at all in the phone, I would greatly appreciate it.
Please start the steps right after the 'Turn on phone' step, as I am fairly confident I have that under control. Every time I've asked this question on other forums I just get links to different forums with no helpful information below a certain level of expertise. I have never coded or done anything other than drag and drop folders, etc so a dumbed down version of how to start and I can learn from there. Anything! PLEASE!!! I hate having this amazing machine and not being able to utilize it.
oh, Touch Pro, sprint
Click to expand...
Click to collapse
I have a Alltel HTC Touch Pro. The software that came with it does not work with Vista. I googled active sync for Vista, I got links to Windows Mobile Device Center. I installed that onto my desktop. It syncs my phone to my desktop, but only shows my device memory and the storage card. I have installed downloaded and installed net.frame. When I downloaded Advanced Config Tool and draged and drop (also copied & pasted) into the device memory and tried to click the cab. file it only shows that it will go to the c: drive on my desktop. I do not see anything showing for the windows on my device. Hopefully someone can post some useful infomation about this. Yes I did use search, that lead me here. There are lots of complete noobs. Before we can add useful information for others. ( like showing off the really cool function of these new phones we have to be able to use them ourselves. Thanks for any help.
Here's some tips that might help you:
When plugging your Touch Pro into your PC via USB, you should be prompted on the Touch Pro whether you want to connect as "ActiveSync" or "Disk Drive". You should click "ActiveSync" for installing applications.
If you are using your desktop PC and download an application for your Touch Pro, it will typically be .exe or .cab. The .exe files are intended to run on your desktop PC first, and will then trigger an installation to your Touch Pro through ActiveSync (Windows XP) or Windows Mobile Device Center (Windows Vista).
If the file is a .cab, it is intended to run on your Touch Pro directly and will install the program. To move a .cab to your Touch Pro, you use the explore feature in ActiveSync (or similar feature in Mobile Device Center), and drag and drop. (Alternatively, you can download .cab files directly onto your phone from the source website using the Opera web browser). Once the .cab is on your Touch Pro, you use the file explorer program on your phone to naviagte to the file and then execute it.
When you install programs onto your TouchPro, a dialogue appears on the phone to walk you through the installation. To save your phone's shared memory, you can install programs to your memory card. Unfortunately, some applications work best when installed onto the phone versus installing them onto the memory card.
Hope that helps
Thank you very much for your reply. I'll give this another try. I had the Alltel HTV Touch Flo awhile back and was running XP on the desktop. If I remember correctly, I saw my device in the tree layout with the software running XP. I gave the Touch Flo to a family member and got a BlackBerry Curve. Wanted to go back to a windows platform for the versitilty of programs. I know everything has a learning curve to it. With lots of reading and study, trial and error, and help from generous people here. Noobs like myself can get a lot more use and enjoyment from their devices. Each new version that comes out is getting faster, more powerful, and has more features. Others see these things that we have and want one. It would be helpful if we could help them to see all the possibilities that are there. The I Phone gets a lot of attention with commercials and has opened up for new apps being developed. There are as many, if not more apps for widows. We just have to learn to implement them with our device. I know I did not start this thread, but others can see the original posters title and understand their, and my question. Thanks again to the reply, and to anyone else who comes up with more help for the noobs.
Apk changer is a command line program for modification of apk and jar.
Features:
- Setup wizard on first start
- Normal and Advanced Mode.
- Multicore support(much faster than other tools in batch operations and image optimization) - supports up to 6 cores
- Decompile/Compile selected part of apk's.(Batch mode supported, framework dependent decompiling supported too)
- Optimize pngs inside apk's(including .9.pngs).(Batch mode supported)
- Zipalign apks
- Sign apks(Batch mode supported)
- Colored adb logcat with logcat options(via WiFi or usb cable)
- Two versions of apktool and aapt(1.4.3 and 1.5.1)-if error occurs while decompiling my program will try too use alternative version and will compile your apk with that version that was used for decompiling
- Three languages at the moment(Russian, English and Dutch) - if you want to translate my progam into your own language just let me know
- Settings (Compression level, Heap size, optimization level, apktool version, language...) - program saves all settings - no need to enter them every time you starts it.
- Error detection. If error occured, program reports about it
- Log (For batch Decompilation/Compilation program creates two logs. First is full and second shows only in with what apks occured errors).
- Decompile/Compile jar files(framework files)
- Program automaticaly detects if JAVA installed on your PS and if no starts java installer(which downloads all necessary files from internet) and after installation adds java location to system variable.
- All stuff i forgot
- If you need other functions - let me know and i`ll try to add them in future versions
Credits:
Brut.all, iBotPeaches and miui team for apktool
Igor Pavlov for 7zip
Oracle for JRE
Google for Android, aapt, adb and zipaling
X128, hoehrmann, PAQer and all others for image optimization tools
Adrian Vintu, Jeff Sharkey, André Burgaud for colored logcat
Instructions:
- install program
- put apk or jar files in working folder(place-files-here-for-modding)
- start program(apkchanger.exe)
Download page
Github page(version history)
reserved for future
Great tool. Thanks!
Nice work!
Sent from my Galaxy Tab 10.1 via Tapatalk
Thanks for this amazing app!
I'm trying to use it, but after selecting the language (english) it crashes saying that I haven't the lang folders, which is false because it's integrated in your package..
Any suggestion please?
Iperzampem0 said:
Thanks for this amazing app!
I'm trying to use it, but after selecting the language (english) it crashes saying that I haven't the lang folders, which is false because it's integrated in your package..
Any suggestion please?
Click to expand...
Click to collapse
Try to unpack program in root of disk C. Program may not work properly if there are folders whith non english names in path to it. And check if other folder(it contains all necessary files for program and it's translations too) in same place as main script and don't rename them.
Sent from my HTC Desire using xda premium
would u give me direct link from mediafire,please...
thankz before
can you please give another link ?
i really want to use it but multiupload does not work..
Would you mind if I port this tool to Linux?
I hate Windows.
I am porting APK Multi-Tool now, and when it's done I'll port this one.
mDroidd said:
Would you mind if I port this tool to Linux?
I hate Windows.
I am porting APK Multi-Tool now, and when it's done I'll port this one.
Click to expand...
Click to collapse
I love Linux too(my main OS is Gentoo), but for some tasks i use windows. I decided write this tool for windows because it use some programs that exist only for windows(we can try to use them with wine, but i don't know if they'll run stably and they'll work slower than in native environment). And of course it wouldn't be easy to port ≈ 3000 lines of code.
For all: i can't reupload my tool - version that i published is too old now (it was in my backups - but they were on multiupload too). Now i have only v6 of my tool, but it's not ready for release. You may ask why i didn't published previous versions - v1 weren't popular for some reason (as you can see - there are only few comments in this topic), so i decided develop program only for my own use. Now i'm thinking either fix bugs and release v7 for public or not.
furniel said:
I love Linux too(my main OS is Gentoo), but for some tasks i use windows. I decided write this tool for windows because it use some programs that exist only for windows(we can try to use them with wine, but i don't know if they'll run stably and they'll work slower than in native environment). And of course it wouldn't be easy to port ≈ 3000 lines of code.
For all: i can't reupload my tool - version that i published is too old now (it was in my backups - but they were on multiupload too). Now i have only v6 of my tool, but it's not ready for release. You may ask why i didn't published previous versions - v1 weren't popular for some reason (as you can see - there are only few comments in this topic), so i decided develop program only for my own use. Now i'm thinking either fix bugs and release v7 for public or not.
Click to expand...
Click to collapse
Should release public ofcourse.
and which files do not exist on Linux?
The only one I know is roptipng
Greets!
i'm very need this tool..
so i hope u can reupload from another upload manager,such us mediafire maybe..
please..
i'm now still learning to editing apk file,like replacing adn modifying icon on apk file..
mDroidd said:
Should release public ofcourse.
and which files do not exist on Linux?
The only one I know is roptipng
Greets!
Click to expand...
Click to collapse
I don't use roptipng since second version. Now i use few image optimization programs (i added support for optimization of png, 9.png and jpg images) as result image compression is the same and sometimes even better than in specialized image optimization scripts. And most of this programs exist only for windows.
Dutch translation
Hi furniel,
Here the Dutch Translation I use instead of the eng file in the lang folder
I just name it eng also.
sparkienl
Thank you!!!
Greetings.
Edit: link don't work
Hi
I like to try this tool. I'm new in this matter and any help or tool will be much appreciated. If you released to the public an doesn't have success doesn't matter cause it's a good work and people who needed will used.
So thanks for your hard work and i hope you'll released to the public!
has anyone reuploaded this else where im very interested.. pm me
Glad to see that someone is interested in my work. Program isn`n finished till now(didn`t have much time last weeks), but i think that i`ll publish alpha version in next few days.
Thanks for your handy tool. I am very interested in an update.
Hotrod
link is dead
re-up please??
Hey all, I've had this issue for quite awhile and have looked around extensively on the internet before coming here. So if you don't wanna read what I've already found out, just skip to the last paragraph for a summary of my problem.
So I have a home automation system setup for my house and I'm loving everything about it. I already have an app on my Galaxy S that will let me control the devices. I took it a step farther and delved into how to send commands using the HTTP post commands. I've already created perl scripts that can activate and deactivate the devices, but as you know Android doesn't have perl inbuilt.
I want to be able to make a shortcut on my Android device to start the devices. The reason why I want to do this is simply because I want an alarm on my android device to trigger a shortcut which turns on everything I want in the morning without me having to actually touch my phone. I already have the Alarm app that can open the shortcut, but I need a script that will work.
I need a shortcut that would enable the devices. So my first thought would be a bash script (and make a shortcut using Gscript for the Alarm App). But there's the problem, because I don't know how to send a http command from the Android terminal. I know (and have tested) perl commands, but perl isn't available for Android. That was the only way I know how to do this. I know you can use java, but then you're creating other files and to me it seems too much of a hassle. I just need something that can access the http page without opening an internet browser or anything else.
Summary:
I need a shortcut on my android device that accesses an http page without opening an internet browser or any other program. The http page has a standard username/password prompt, but can be easily worked around.
What's the easiest way of going about this? If a shell script is needed, what would be the command to open the webpage without opening a browser?
Things to know:
- Weblink only needs to be opened (no interaction required) for the specific device to be turned on
- Website is password protected using standard http protocol (but can be worked around if there is a problem)
- In perl, all I would need to do is issue the following command to get the devices to turn on or off:
perl -u username : password h-t-t-p-whatever.com/device_3_on
Sorry for the drawn out post, but I really wanted to explain my situation as best as I could. I'm sure there is probably an easier way that I'm missing here, so I need help from any and all people that would know about these things. Any [helpful] advice is welcome
Hi,I'm fairly new to android programming. I looked at this video youtube.com/watch?v=31cxmLN09ss and have done all of the steps. My question is how do i turn a simple "Hello World" java code into an apk file so can i load it to my phone and see how it looks. I'm using Eclipse.
Thank You.
ratedroy95 said:
Hi,I'm fairly new to android programming. I looked at this video youtube.com/watch?v=31cxmLN09ss and have done all of the steps. My question is how do i turn a simple "Hello World" java code into an apk file so can i load it to my phone and see how it looks. I'm using Eclipse.
Thank You.
Click to expand...
Click to collapse
If you turn on the Debugging Mode on your phone, you can run it directly in it. But if you wanna make the apk file, right click on the designated project on the Project Explorer and choose Android Tools>Export Signed Application Package then just follow the instructions.
Hi, before all, sorry for my poor English.
I have buyed a new Android Watch; the SmartWatch U8. I have found many Android app to run it but nothing have great result.
After few test and search I have found the original APK for my watch, is run good but have some problems and I want improve it.
I have decompiled the APK (APK to ZIP, dex2jar and APK Tool), I have now some .jar files, the .manifest and few assets and others ressources.
Using Android Studio, I have tried to recompile, without modification of code. I have many, many errors.
Some errors is about depriciated, others is for unknown command or class.
I have tried to fix, but no chance, too many errors and my Java skill is realy low (I'm better under PHP). I have also try to copy only few codes using the error tools to known what is needed to add, but I don't known own the default structure was made (all class in same folder ?, or many folder for many class ? less class but with more actions ? not sure)
I have tried all ideas I have found, no valid result, I never build the app with success. I have made few Android App, with help of tutorials and are very basic (Web browser for my website, music player and scanner). I known the basic of Android coding and the new and old way to code them (Eclipse and Android Studio).
I search many solutions;
- [easy] Find another app with all (or the most) of needed change I want; hide the notification text but keep the icon when connected, more control of what is sending to watch (keep notice of call, but not make/answer call over the watch)
- [medium/hard] Find a good tutorial/guide for rebuild a Android app from decompiled APK.
- [hard] Build from scratch a Android app for my watch (with tutorial/guide)
The APK I try to edit: levelkro (dot) com/download/android/KHR1.3.22.apk (not available on Play Store)
Thank for your help