Change apk made with app inventor using Eclipse (SDK) - android

I made an application using App Inventor and now I want to add Admob advertising to it. I need to change manifest and some "activity".
How I could open apk in Eclipse to cahnge it? If someone added admob advertising to application made in app inventor?
Please, help

I think that this isn't possible, because an apk doesn't contain source files but compiled bytecode files. So if you would want to edit such a project in eclipse, you would have to obtain the sourcecode of your app, which isn't possible in App Inventor AFAIK.
If you want to have full control over your source code, you should consider learning to program natively on android.
If you are really interested in android development, check out the official Android Developer's Guide at
http://developer.android.com/guide/index.html .
A good tutorial can also be found at
http://www.vogella.de/articles/Android/article.html .

Related

Develop Android App from iOS Code

I'm supposed to port an iOS app to Android. I have the iOS project in front of me but i do not have XCode to open it.
So I have some questions:
Is there a way to open the project on Windows? I DON'T need to build it or anything, I just want to see the correct file structure (because the file structure isn't the same in the project and on the hard disk).
How do you recommend to handle updates? The iOS app will always be updated first and my job is to update the Android app afterwards, according to the new iOS code. Is there a good software where I can see all the changes made to the iOS project? Or is this a stupid idea?
If you happen to know any good resources for android developers to understand the basics of iOS apps (not Objective C, more the structural aspects), let me know.
Thanks
In what format do you have it? You can use textedit or nano or vim or anything to open the individial .h and .m files.
Yes, have you heard of github? You can check the revisions. Additionally, if you know the high level feature overview of what you will be developing sometimes you may not need to see the other platforms code at all...
https://developer.apple.com/technologies/ios/cocoa-touch.html + google

Tips to shift from App Inventor to Eclipse

I am very good with AppInventor to build Android apps. I have good knowledge of C++ and little knowledge of Java and GUI building in Java. Suggest me how should I shift from App Inventor to Eclipse to build Android apps? Which path should I follow? Is building in Eclipse similar to building in AppInventor like defining different components and then handling their events? Or is it much more than that? Please guide me.
There is also the AppInventor to Java Bridge project at java.appinventor.org, details see below
About:
The AppInventor to Java Bridge project is an addition to
AppInventor that creates a Java written version of the application
from an existing application created through AppInventor. After
creating an application through AppInventor,the user can download a
version of the application that is written in Java, which uses the
JavaBridge* library .
What Our Application Can Do:
Create an Android project in JavaBridge using AppInventor
Applications that use texting, internet and/or sound are supported
Limitations:
- Location aware applications not yet supported
- Nested lists are not yet supported, and will produce incorrect code
UPDATE: the newest version of that tool can be found here: java.appinventor.org
Definitely you should check out the "ALTERNATE Java Bridge". The regular one, built originally by the app inventor team has long since been abandoned. Another programmer picked up the torch and has steadily been using, and improving the bridge for some time. I have been using it myself for 2 years and it is fantastic.
The google project is at: https://code.google.com/p/alternate-java-bridge-library/
and the google discussion group is at : http://groups.google.com/group/alternate-java-bridge-library-discussion
I would just go to the google project site above and ready the tutorial. It is very easy to get started, and he is really good about answering questions for newbies (and i can assist with that as well).
You could take a look at the App Inventor Java Bridge. Check out the link for lots of information, also see here...
The Google App Inventor Java Bridge The App Inventor Java Bridge helps
make a transition from developing Android applications with App
Inventor for Android, to developing with Java and the Android SDK. It
lets you incorporate App Inventor components into apps that you create
in Java with the standard Android SDK tools. If you’ve been using App
Inventor and know some Java, then the Java Bridge is a good way to get
started with the SDK, because building with App Inventor components
hides many of the complexities of the Android framework. As you gain
experience, you can switch over to regular SDK development and create
apps that harness the full power of Android.
Here another link:
http://code.google.com/p/apptomarket/ and you also find videos about the Java Bridge on Youtube, for example this one

can you see the codes generated by the app inventor?

I saw app inventor and have tried it and thought "wow this could really make app development more easy".
But it does have some downside: some people have a problem with the apps created on app inventor not running correctly on their phone, while it runs on the emulator.
And there are also news like you can't upload apps created on app inventor to your android market account, so i just thought it would be really helpful if you could see the codes generated by app inventor like in eclipse.
If you use the GUI for the xml it generates a code and since app inventor is also in java it should also have a way the user can see the codes generated by the app inventor and use it as a reference for coding in eclipse or other java IDE.
So is their a way to see the codes generated or not?
App Inventor does not generate Java code. It generates Scheme code, which is converted by the Kawa compiler into byte code. While you could undex and decompile it, as mentioned by cypressious, that code is unlikely to be useful.
There is a third-party program, Marketizer, that prepares App Inventor apps for the market.
If it generates an apk, you can unpack and then "undex" it via http://code.google.com/p/dex2jar/. Then you can see the rough code by using tools like http://java.decompiler.free.fr/?q=jdgui.

Why must I manually edit the XML file in Eclipse? Can it be set to be done automatically as I develop the UI?

I do not have to do such manual updating in App Inventor so it is logical that Eclipse would have a similar automatic update feature.
App Inventor is made especially for non-programmers. Its main purpose is to give everybody the possibility to basicly develop an app so that one with a great idea and no or low programming knowledge would be able to get it done.
Now, Eclipse is an IDE that integrates great with the Android SDK. So it only helps you with basic stuff that any IDE does, plus some things about Android integration (like test your app on the emulator/device really easy).

How to get app inventor xml code in my eclipse IDE

How can i get App Inventor XMl code for Eclipse IDE
Currently, not possible, as App Inventor does not manage Eclipse Java projects, but uses schema. Use "Download Source" (More Actions) in the list of "My projects" to inspect the code generated by App inventor.
Though its not possible for the time being
I've read in forums that it'll be possible in near future versions of app-inventor
Keep Checking forum announcements for any update
Currently not possible,
I will prefer to design your app with eclipse built in GUI plugin.

Categories

Resources