Eclipse android help. - Android Q&A, Help & Troubleshooting

I've never developed android applications, and i am writing simple apps to get used to the format and stuff.
I am using eclipse and android sdk to write a simple soundboard application.
I have 3 image buttons and i messed arround with the layout to get them to be the way i desire.
the problem is that i have no clue as to how to link the sound files to the buttons.
I have all three sounds in the res/raw folder.
can anyone please enlighten me? thanks.

Related

Is there software out there to...

...let you decompile and apk and edit the layout in the xmls, and then display the results in a device emulator without having to recompile and sign the apk and push it to your device? I have all the tools (SDK, Eclipse, apk manager, etc etc etc) but as I am new to Android tweaking I may be missing some simple knowledge that will save a lot of trial and error!
I am looking initially to edit the HtcQuickLaunchWidget.apk (the non-m10 version) and was wondering if there was a way of loading the apk or decompiled apk back into Eclipse or something similar to then be able to tweak the layout of the widget and view the result on the PC rather than spending hours of making single changes and pushing to my phone each time to see the result.
The answer might be a simple 'no other way' or as I say I might be missing something obvious and all I need to do is 'this, this and this'... Any advice would be greatly appreciated. And before you mock, remember we all have to start (or in my case start again) somewhere
Thanks.
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A

Eclipse - Driving me mental, please help :(

Having a VERY weird problem with Eclipse and I cant work out for the life of me what is going on. Will be VERY appreciative if someone knows what the problem is here.
IF I create a new Android Project, it will save a folder with all the files to C:\users\silver\workspace
IF I create a android project from an existing source, the workspace folder does not contain the saved project folder.
Up until today there was no problem. Then for no reason as far as I can see, it went nuts on me.
Ive reinstalled and setup Eclipse. Ive even restored my PC to an earlier point to see if that would help.
If I cant work this out, its 2 weeks worth of work down the drain
Anyone got any ideas as to what the heck is going on?
Silver420 said:
Having a VERY weird problem with Eclipse and I cant work out for the life of me what is going on. Will be VERY appreciative if someone knows what the problem is here.
IF I create a new Android Project, it will save a folder with all the files to C:\users\silver\workspace
IF I create a android project from an existing source, the workspace folder does not contain the saved project folder.
Up until today there was no problem. Then for no reason as far as I can see, it went nuts on me.
Ive reinstalled and setup Eclipse. Ive even restored my PC to an earlier point to see if that would help.
If I cant work this out, its 2 weeks worth of work down the drain
Anyone got any ideas as to what the heck is going on?
Click to expand...
Click to collapse
Have you tried to import the specific project? I am sure the project which should be imported is an eclipse project. If yes you are able to IMPORT it instead of creating a new project from source. If not have you tried to cut the specific project from the workspace folder and then create a new project from existing source and choose the project esp. from your desktop and mark copy it to the workspace folder. (In some cases eclipse is not able to import/create a project if its in the workspace folder.)
If these things don't help. Update all the Android Specific Stuff. Update to newest ADT and SDK. And try it again.
If it won't work even after that i will need some more detailed information about your problem.
Good luck
Not sure why but it just went mental regarding anything I tried. Only way in the end was to copy and paste everything manually after creating the classes again
Back to square 1 at least well sort of...
I now have another problem lol.
I modified the SDK so I was able to use Internal API's, though I still have one error that I cant get rid off, which is...
"The import android.os.SystemProperties cannot be resolved"
Dont suppose you know how to modify the SDK to be able to use the whole source?
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A
Bumpety Bump

[Q] Learning in eclipse, a few questions..

I've been searching to see if there is a way to use a clone of my phone as an android virtual device for eclipse, I've not found any answers..I'm beginning to think that it is not possible because I haven't found the "here's how to clone your phone as an AVD" thread anywhere..is this correct?
If that isn't possible, exactly how much if any modification can I make to the AVD to make it more like my phone (contacts, apps and settings etc), would I just find the AVD's files and replace them or are they packed in a zip/rar file or are they just resource files that are being called up that will change the behavior of every AVD that I create if I alter them?
Finally- what would you guys say the minimum system requirements for developing for ICS and compiling ROMs would be? Looking to get a new desktop, this 1.5ghz gateway notebook isn't going to cut it....
Thx!
(BTW..I've already started making apps..nothing useful but they worked, and I got them on my phone and functional...hopefully be able to contribute back to the community soon yay! )

[HELP] Decompile APK, fix, Recompile help

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

Android Users w/ iOS Device Please Help, Thanks!

Greetings everyone. I don’t know if this is right to post iOS telated question here, but since it is also Android related and is advance usage which I have experienced, so I think it is right...
I am an Android user (lg g3 for 2.5 years) and I wish to know more about difference with iPhone. For those advanced users in Android and ios please take a look.
1. Can I use only iTools,iFunBox to transfer files (not only pictures,music) instead of the need to use itunes?
2. Will Windows create .ips files in “My Documents” directory in C:\ when I connect iphone to my PC? Because iPod Touch 4 I used many years ago will do so.
3. Does iPhone have file explorer app, like ES File explorer, File Commander in Android, which I can manage files using the phone?
4. If I want to install .ipa directly in iPhone, must I jailbreak it first? I want to make it like install .apk inside Android.
5. Do iPhone have apps like Titanium Backup which I can backup individual app and restore it?
6. Do iPhone have something like TWRP Recovery, which I can backup the whole system completely, so no matter how I mess up, (whether in JB status or non-JB status),I can restore exact the same status as the time I make the system backup?
Thanks in advance.
Anyone here who are Android users but own iphone after buying Android device? Please help... Thanks...
Im surprised that nobody here owns an android device and ios simultaneously...

Categories

Resources