HOWTO start MIDP Application development - some questions .. - Windows Mobile Development and Hacking General

Hey guys,
Currently I am Java programmer (applications and applets for PCs), but I want to try something new, and so I am instersted in developing apps for cellphones. Hope you can answer my questions:
1) MIDP 2.0 does support animated gifs and allows me to access the phones memory (for loading files) when the phone supports this, right? Whats the name of the API that allows me to access the phones memory?
2) Whats the best free development platform for MIDP 2.0 at the moment? Currently I use Eclipse, but I guess I need something else for mobile development.
3) Are there any websites with tutorials that give me a lil introduction to MIDP? Any links are welcome.

Just started to look at this myself, though not fully understanding it yet, managed to get a MIDP helloworld class compiled and .jar created just using javac / command line so far, but haven't managed to get it working on the device yet, need to look into preverifying so i'm told.
2) J2ME toolkit perhaps, free with registration on java.sun.com, explanation of it is in the link in reply (3), might be worth a look first to see if it's what you're after.
3) http://www.codeguru.com/Cpp/W-P/ce/networking/article.php/c7911/
If anyone has any further info, please respond.

http://today.java.net/pub/a/today/2005/02/09/j2me1.html?page=2
works

Related

Cross-compiling, what am i doing wrong

Hello!
as the title indicates I am having trouble cross-compiling. hello world compiles perfectly but bigger programs just wont give in..
I downloaded the android source from git and compiled just the way the website (http://source.android.com/download) says you should (is there anyway to verify that its compiled correctly?)
Then I use the agcc python script(http://plausible.org/andy/agcc) for the linking but when i compile i always get trouble about it not being able to find certain defined fields or other types. So basicly i followed the second part of what this wiki says (eventough using a toolchain from codesourcery for example and cc staticly. It also fails...)
What im really asking is how and what do you guys use to cross-compile to android?
Richard_Xeli said:
Hello!
as the title indicates I am having trouble cross-compiling. hello world compiles perfectly but bigger programs just wont give in..
I downloaded the android source from git and compiled just the way the website (http://source.android.com/download) says you should (is there anyway to verify that its compiled correctly?)
Then I use the agcc python script(http://plausible.org/andy/agcc) for the linking but when i compile i always get trouble about it not being able to find certain defined fields or other types. So basicly i followed the second part of what this wiki says (eventough using a toolchain from codesourcery for example and cc staticly. It also fails...)
What im really asking is how and what do you guys use to cross-compile to android?
Click to expand...
Click to collapse
Hello,
i am having problems with the linker too! i am using the NDK (because it actually does C / C++ code) and the code compiles with very few warnings on some instructions but works well otherwise, it just WOULD NOT LINK the stuff together!! one interesting setting i noticed in some public makefiles for the NDK i noticed is that they actually set the linker to /system/bin/linker, which is obviously a file on the target device. but i don't know how it would access it? any ideas?
BTW: post your error(s) please
Try this
The system won't let me post a link (as a new user), however there is a really good tutorial on native android development and debugging using the AOSP build system. Search on Aton International Incorporated and click on blogs in the menubar. I am in no way associated with the company, just happy to finally be able to cross-compile, link and debug for android.
Maybe someone who has more posts could post a link here.
http://www.aton.com/android-native-development-using-the-android-open-source-project/

[Q] 1.5 / 2.2 QVGA Issues

I was developing with Android 1.5 api and I published an app to the market.
However , one of my friends told me that he can't find my app on the market.
His phone is running Android 2.2 and having a QVGA Screen.
I tried with an emulator running Android 1.6 QVGA and the same problem was noticed.
I tried to google for the solution and it seems that I don't have correct keywords to specify the problem.
I know I can use supports-screens android:smallScreens="true" , but not for 1.5
Do I need to develop with 1.6 api to support all kind of screens? Or do I just need to include some more at the manifest?
Sorry for my poor English.
I can see no one answered my question, is it because I am reading with a QVGA screen?(Joking)
Please Help.
You need to build the project against the 1.6 API (you can do it in a way that is compatible with 1.5) to support various screen sizes with supports-screen.
The whole process consists of right clicking your project in eclipse, changing the API to build against, adding proper values to the manifest and exporting the app.
It's pretty well explained on the android developers page, but if you can't get it working, I'll post a step by step guide once I get to my laptop (later this day).
Number22 said:
You need to build the project against the 1.6 API (you can do it in a way that is compatible with 1.5) to support various screen sizes with supports-screen.
The whole process consists of right clicking your project in eclipse, changing the API to build against, adding proper values to the manifest and exporting the app.
It's pretty well explained on the android developers page, but if you can't get it working, I'll post a step by step guide once I get to my laptop (later this day).
Click to expand...
Click to collapse
I just found out that I can use 1.6API and support 1.5 after reading your reply.
Thank you , you helped alot!

[Q] test roms on emulator

Hi,
I would like to test the roms I can find here, on an emulator.
for that, I will need something like the SDK for the Acer tablet A500.
(to build my AVD)
I can't find it. anyone have an idea where I can find it ?
thanks
Olivier
http://lmgtfy.com/?q=android+sdk
ah ah ah . so fun )
unfortunatly, it is not provided by google !
I know well the android SDK, I am talking about a small part which is sometime provided by constructor in order to help the developper to build application with android SDK.
for example, Sony provides the SDK part for some of its device. it has to be added to the android SDK.
I think it could comes from Acer, or developer who has it because they are working near or far from this (in the same way, the Leak comes from someone which is near from developer team)
I am still looking for that.
thanks
Olivier
Im totally confused as to what you are looking for.. If its reference sdk from acer . They have not provided this.. I think its something they provide to google then google adds it to the sdk. or acer will provide a repo to add to your sdk.
now here is what setup i have..
1 download the sdk tools from developer.android.com/sdk i think is the url (use search )
2. download eclipse (there is a link on the developer.android.com site)
3 download the correct FULL Java library abe sure to read the requirements on the version of eclipse you use for what jave version you need )
4 Read read READ .. Read the how to install sdk development environment in Eclipse for your EXACT OS . Pay close attention to every detail. like is is x86 x64 and so on.
5 Follow the instructions word for word on again the install and setup for android development platform for your OS Version.
This is what i use as well as CYGWIN (this is for advanced users) As well as there are other tools that make developing much easier. YES IM NEW TO all of this as well.But have learned alot over the last year.
The above only gets you ready. Once you get to this point . KEEP . WELL YOU KNOW THIS Part already KEEP READING.. in a few weeks you will on your way.
GOOD LUCK developer.android.com has everything your asking and beyond.
If any of the above is incorrect Blame it on developer.android.com or the mighty thor. god of the universe..

Android programmer newbie needs to know basics

Hi, so tomorrow is Sunday and I am in the mood to write some cool programs for android devices. Please tell me all the tools I require and some reverse engineering ones too for copy pasting some cool things thx.
Here's a google doc a user called autom8r from reddit posted.
It's pretty useful and he goes through why he used everything. Credits to him not me.
URL
EDIT: Well seen as I have less than 10 posts I can't post the link...
EDIT: Here's the link all truncated: ht[REMOVETHIS]tps://[REMOVETHIS]docs.google.co[ANDALSOREMOVETHIS]m/spreadsheet/pub?key=0Aiakq5EFgZZTdGlmblFNMFZLN3huRnNUNzdkWDRoekE&output=html
Too many things to download ><" jdk eclipse adt blah blah no longer interested in android development
You just need Eclipse for JAVA developers, and Android SDK with ADT plugin. And if it you first application you must read the book like "Android development for 24 hours".
Can u please provide direct download links to those files. This eclipse has like 2820207328282626 versions and I get confused
On Android Developers there is a bundle package which contain sdk/eclipse/adt.
http://developer.android.com/sdk/index.html
I Would not recommend you copying and pasting parts of other people's software. You will learn much more if you try to write it yourself.
For a lot of Android features there are open source libraries. Try them out, they may help you developing your app.
http://www.theultimateandroidlibrary.com/
http://www.androidviews.net/
Hey thanks that was exactly what I needed to start. I love you :*
8)

Doubts with Using Xamarin to develop Android App

Hi All,
We are developing Android App using C# with Xamarin.
I have task to integrate existing C source with App developed. This done by loading corresponding *.so.
Sorry in advance if these questions are naive....
Questions:
1 > I am using Windows. To generate the *.so what is the suitable IDE? Can the windows be used to generate *.so(static object)?
2> If I were to go with Eclipse , Do I need to install the plugins like SDK ,NDK etc...?
3> Do I need to care for processor architecture's , If need to compile the source?....I mean cross compilation
Thanks
sanddune008 said:
Hi All,
We are developing Android App using C# with Xamarin.
I have task to integrate existing C source with App developed. This done by loading corresponding *.so.
Click to expand...
Click to collapse
I'm not sure if I understand you question but I assume you want to extend an existing app -build in C# using Xamarin- with native android Java?
I'm not sure that's even possible. Xamarin is utilizing mono for android to create android (Linux) executable files. When decompiling my own Xamarin build apk with APK Studio I did see the mono .so libraries, but my own code was compiled. Referenced .Net (Windows!) dll's where added to the apk. I assume the mono libraries deal with how they are used in the compiled C# code.
Since there's no quick conversion I see a few options:
A - Change the Xamarin/C# android project to a library project (dll). Compile it using Xamarin and find out (google) how to utilize this dll using mono for android in your Java development environment (eclipse). There are mono .so files...
B - Convert the Xamarin/C# source to java source code. There are some commercial tools which claim to be able to convert C# to Java. Go java all the way.
C - Stick to Xamarin/C#
I think option A will lead to lots of headache assuming you referenced some .Net assemblies in your C# source. However it might be worth a try. Though keep in mind that if you keep using the Xamarin/C# part, you keep needing the Xamarin license to upgrade/update code in the future.
I would go for either B or C depending on the codebase. If it's a lot of code a Xamarin license renewal might be cheaper then a rewrite (conversion). In my experience code converters are reasonable tools, but I've never saw a one-click conversion happen. There's always extra work to make the converted code even compile.
In conclusion: Mixing Xamarin/C# and native Java code might be technically possible, I would rather make a choice for either one of them.
I can't answer your questions about eclipse and required libraries, but I hope my answer is of some use.
Regards,
Alex

Categories

Resources