Help to finish my first apk - Android Q&A, Help & Troubleshooting

xda friends:
********************* self-taught few days ago I started to program with the intention of creating an APK using visual studio 2012 with Xamarin tool, but at the time of testing with the emulator throws me problems and nothing happens, if someone with more experience than me, or know the subject, I would like to help would greatly appreciate it.
********************* for those interested to send post source code

Related

[DEV] I want to develop Android apps. Please help.

Hey guys.
I'm an experienced .NET Developer and developed with java a little. I want to start developing Android apps on Windows.
I downloaded everything and my app runs, but once i debug it i get a strange error: "The JAR of this class file belongs to a container "Android 2.1-update1" which does not allow modifications to source attachments on its entries".
While looking on the internet to find a solution i came upon a few blogs that explain that i need to get the android source: http://stackoverflow.com/questions/...-container-android-2-0-1-which-does-not-allow
I'm having an immense headache getting it because nothing works. There's no simple guide to do this.
If any of you know the error and can help me solve it i would appreciate it.
Also, if you know how to get the source please let me know. I'm going crazy here.
Thanks!
lorin.bute said:
Hey guys.
I'm an experienced .NET Developer and developed with java a little. I want to start developing Android apps on Windows.
I downloaded everything and my app runs, but once i debug it i get a strange error: "The JAR of this class file belongs to a container "Android 2.1-update1" which does not allow modifications to source attachments on its entries".
While looking on the internet to find a solution i came upon a few blogs that explain that i need to get the android source: http://stackoverflow.com/questions/...-container-android-2-0-1-which-does-not-allow
I'm having an immense headache getting it because nothing works. There's no simple guide to do this.
If any of you know the error and can help me solve it i would appreciate it.
Also, if you know how to get the source please let me know. I'm going crazy here.
Thanks!
Click to expand...
Click to collapse
You say you downloaded "everything", but not what "everything" is. For mainstream development (using only public API), you don't need the Android sources.
Get the SDK, and Eclipse ADT if you want the most straightforward environment, import one of the example projects, and get it running on the emulator/device. It's pretty much all explained in this tutorial project. Then you can see what's up with your particular program. Good luck!
I have Eclipse, the latest ADT and the latest SDK. I installed the packages for 2.2 and 2.1 with the Google APIs.
I'm trying to make a simple tip calculator app. If i don't make a certain check in my app everything runs ok. As soon as i check if 3 EditTexts have text in them i get that error.
If i don't need to check, my app is behaving ok.
if(txtbillamount.getText().toString().equals("") || txtpercentage.getText().toString().equals("") || txtpeople.getText().toString().equals(""))
{
...
}
The hello world apps works fine.
lorin.bute said:
I have Eclipse, the latest ADT and the latest SDK. I installed the packages for 2.2 and 2.1 with the Google APIs.
I'm trying to make a simple tip calculator app. If i don't make a certain check in my app everything runs ok. As soon as i check if 3 EditTexts have text in them i get that error.
If i don't need to check, my app is behaving ok.
if(txtbillamount.getText().toString().equals("") || txtpercentage.getText().toString().equals("") || txtpeople.getText().toString().equals(""))
{
...
}
The hello world apps works fine.
Click to expand...
Click to collapse
Do you have an else statement?
Yes I do have an else statement. I display a pop up message in the else statement.
I would recommend getting acquainted with a little bit of java code as it is very different than .net
Your dev env seems too be ok since, The hello world app works ok as you stated, its your coding.
Coming from.net programming it was confusing for me at first.
Sent from my Nexus One using XDA app
Problem solved.
Yes, i was coding something in a wrong way. Java is different in many aspects.
Thanks.

Q... How to set up Linux dev environment

Ok I installed the jdk on 11.10 ubuntu. The installed eclipse from the software center. I'm currently installing the android sdk. All of the sdk. I'm assuming using eclipse I should install the adt plugin. I'm interested in developing an app. Any pointers would be awesome. If anyone has any links to read up on app development for newbs I would be grateful. I would like to build a ROM to, something for personal use. I would post it if I ever feel its worth it. I'm interested in learning development and i have some great ideas for apps that do not exist that could be decent money makers. Just gotta make the thing. As I already said any help or advice would be awesome. Links would be cool to read up on. And thanks in advance for anyone who helps.
Sent from my PG86100 using Tapatalk
Look in my signature for gingerbread compilation. It will help some hopefully
私のEVO 3Dから送信される。
find the thread with "dsixda rom kitchen"
When i use eclipse and go to /help/install new plugin and set it up with the links from the sdk webpage i get this error. It finds the adt plugin but then wont let me install it.
Cannot complete the install because one or more required items could not be found.
Software being installed: Android Development Tools 15.0.0.v201110251216-213216 (com.android.ide.eclipse.adt.feature.group 15.0.0.v201110251216-213216)
Missing requirement: Android Development Tools 15.0.0.v201110251216-213216 (com.android.ide.eclipse.adt.feature.group 15.0.0.v201110251216-213216) requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found
Hi mikedavis120,
Adding htt p: / SOMETHING /download.eclipse.o SOMETHING rg/releases/indigo (Indigo Repos) to your "Install Software"-List solves it.
PS: As a new user i was not allowed to post "Spam" links. I hope it's ok to 'salt' my spam with random words :]

[Q] What is an Easy way To Develop Android Games/Apps

EDIT: How Can I Easily Make a Sidescrolling Platformer Using An Easy Scripting Language For Android
Bump
Nobody Answered Yet I Modified My Post
Im Really Eager to start Making Simple Platforming Games For Android
bump Someone please post
There is no easy way. Anything that is worth doing is always worth the work you need to do.
Here is a Java-Script Builder
Don't know if you know anything about writing script or anything but you can PM(private message) me with an email address and I'll send you a zipped attatchment with a program for windows pc. It's called Sencha-Touch 1.1.1 App Maker.
I'm sure if your running windows on your PC and your here then you already have java runtime. Just update it if necessary at Java.com. Just click where it says "Do I Have Java" to check and update your version.
You will probably also have to go to Oracle(the java website) and download and install the "Java SE 7u2" for developers from the download section.
If you Need direct links to the Java's, I will include them in email to you.
Hope this gives ya some insight.
Can't get the zip to upload to an email but can give ya the website link in one. Don't think I'm allowed to post outside links.
hi
shubshub said:
bump Someone please post
Click to expand...
Click to collapse
Have you tried out DaVinci Studio? it's a dev tool based on HTML5 and JavaScript...
You can get it for free at their website and ask questions on their forum if you need help with it.
Eclipse + Android SDK
I highly recommend using the standard Eclipse setup with the Android SDK. Java is pretty easy to learn, and can create games that are very simple to complex. I was confused where to start off as well, and tried out AndEngine. There isn't much documantation for AndEngine, so I followed Kilobolt's tutorial on game development. One of the best tutorials of programming that I have ever seen. I am working on a platformer at the moment, and everything is going pretty well. In simple, google "Kilobolt". He has tutorials for setting everything up. However, the tutorial begins with standard Java development, and Android comes into play when you are ready to port the game. Good Luck. :good:
Thanks for the info, I'll check it out.

[Q] Java Segmentation Error

Hello all,
I keep getting a 'segmentation error' on my Prime, but only when I'm trying to install an APK when running projects from Eclipse or when using javac on the Terminal IDE app to compile code. I've googled and searched around but found no useful solutions, and it's really bugging me!
Sorry I can't be any more specific but I'm only just getting into the Java/Android side of development. Does anyone have a solution?
Thanks for any help in advance.
Ben.

Application Security/Java questions

While I'm not new to the Android scene, I've just recently begun learning coding and development. I have a small background in Java development but obviously never Android. In any case, my first project was developing some code for a friend that would prevent the .apk from being pulled through ADB and then decompiled and uploaded to warez file hosting sites. I believe I have most of my code correct as the compiled .apk will check against the market, but won't notify the user if it's an illegal install. Any help on this matter would be greatly appreciated. Please reply to this thread, or contact me via GTalk at [email protected]. Thanks!

Categories

Resources