As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I'm planning to use the pop up menu API. However it is only for API 11 and above. I don't want to use it if there are still a significant number of phones out there with API<11. However I have no idea of the current state of API levels on android phones. Would it be safe to say that the majority of phones out there can use this or can update to it?
Not sure what is this "popup menu", but you can simply set the minSdk to 11 in the manifest if you want to support only devices that have API 11 and above :
<uses-sdk android:minSdkVersion="11" android:targetSdkVersion="17" />
Also, for statistics of the Android about the API number, check this website . Currently, a little less than 50% of the android devices run on API 11 and above.
I would recommend to try to make your app run on older devices, at least from API 8 or 9. There are many compatibility libraries out there that could help you.
According to http://developer.android.com/about/dashboards/index.html, there are currently 44% of devices on the Android market that have Gingerbread r2 (API level 10). So no, it does not look like you can rely on the API level being higher than 11.
You could search whether another library, be it Google's Android support library or a third party one, like e.g. ActionBarSherlock, has the support for the API you want. However, it seems neither of these two implements PopupMenu.
It looks like, according to other Stack Overflow answers (Appropriate alternative to PopupMenu for pre-Honeycomb and PopupMenu in Android 2.1 API 7), that PopupMenu was not designed for small phone screens in mind.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm in the process of starting an android app - however i'm confused as to what is the best option to take with regards to the development of an android app.
What would be the best system to use? Phonegap, Titanium, Feedhenry or a native android app using java?
Thanks in advance.
Depends on what kind of App it is.
If you are not going to need any significant interaction with web API's or it is not a kind of web-android-app -> you should go with native android.
Else if you need to use some web-service which requires you to access it from a browser then you should consider using Phonegap, Titanium etc.....
What Phonegap, Titanium etc.. do is -> they deploy a special Activity which Extends Android Activity class to start a highly customized Android Web View + they provide a javascript interface for most Android functionality. So you can just make an HTML page and handle all your application logic using javascript.
My experience with phonegap etc -> if you have more complicated application logic -> you will end up with a messy javascript code.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
Is there a good tutorial on the net somewhere that delineates the steps needed to get started programming an Android application from square one on windows 7? I am looking to basically hit a Web Service and display it on a phone as a view of sorts (Kind of using the MVC design pattern). I have downloaded eclipse and I have downloaded the Android SDK. But I think I am missing some things. In addition, do you think it is easier to develop Android apps on Linux or Windows? I developed in java during college, and I just thought it was easier doing it on Java then on windows. Let me know what you think.
I can't post a comment so I will have to write a answer to your question, although I doubt this is a typical answer as well as a typical question for StackOverflow.
I've read a lot on Android before starting programming for it, I can hint you on what resources I found the best to make your way into Android development.
Concerning books I found these to be the best when starting:
Android Recipes: A Problem-Solution Approach
Beginning Android 2
More recently to deal with more advanced topics I've found The Busy Coder's Guide to Android Development to be a really helpful resource.
You also have some really helpful resources online, specially the android development website. Start from the DevGuide and it will give you a clear big picture on the subject. The other section of the android dev website that you can take advantage of is the tutorial section. I would recommend you to the these, specially the first ones as they are very basic.
I'm assuming that you have a basic understanding of Java by not referencing you any Java learning resources.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I want to write something for android , I am new comer for it,I know the java,but I need some example for the android’s app for learn,can you tell me where to find the material?(eg:http://source.android.com/source/index.html)
The android sdk site provides some sample code you can work with:
http://developer.android.com/resources/samples/get.html
I have not found a single go to site for Android sample code and tutorials but I have found there is lots of examples out there. What I have been doing is Googleing strings like "android theme tutorial" as I need them. Doing that has so far not failed to find helpful information and examples. Here are a few recent searches I did an a good example I found for each (this also turns up lots of hits at http://developer.android.com which are excellent):
android theme tutorial
android TabHost tutorial
android spinner tutorial
You can browse all Android source code at https://android.googlesource.com. All of the git repositories with the word "apps" each contain the sources for one of the standard apps. For example, platform/packages/apps/Calculator contains the sources for the Calculator app.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I'm, trying to make a simple 3D game for Android, and I want to use jmonkeyengine. Can I do this? How can I do it? Can somebody can show me an example?
I'm a manager with the jMonkeyEngine project.
I apologize for the late response, but StackOverflow posts got such an excellent search ranking that people are still coming to our site via pages like this one, so I figured I'd best bring this topic up to speed.
In short, yes you can use jMonkeyEngine 3 on Android. Not the older 1.0 and 2.0 versions. However since jME3 is shader based it requires OpenGL 2 and above, meaning we can't support Android versions prior to 2.2 Froyo.
The Android forum is the best place to keep up to date on the latest development. We have a test application available on the market, for free of course. Testing is greatly appreciated! (Do note, while the tests have been reported to work fine for Motorolla and Samsung devices, as of writing they do not work yet for HTC phones. Expect a fix shortly).
On a last note, for anyone who thinks the jMonkeyEngine project has stagnated, I welcome you to visit our website and try the latest version of our SDK. Safe to say, the project is healthier than every before.
jME 3 can be used on Android, and the Android support is a relatively new feature as of 2011, but a previous version of jME cannot be used. Mostly this was due to architectural issues with an inflexible pipeline under the hood that wouldn't easily be able to support the mobile GL API.
Edited post because information was no longer accurate and was receving downvotes (cannot delete as it is the accepted answer).
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I see quite some variety of languages/technologies available to develop for the mobile devices/ palms, PDAs, etc such as JavaME, Windows Mobile etc. And now we see Android emerging up.
Question:
Which language/technology would you suggest for development for these devices, something that should could be emerging and future compatible.
Also which language targets the more devices or in other words which is more profitable?
Where does symbian technology stand here.
Am I right if i go for JavaME?
Thanks
If you are considering only the programming language itself Java is available on almost all mobile devices. Even iPhone support is available through http://www.flexycore.com/.
However, the language itself doesn't matter much. Because the device specific APIs are very very different. Even among Java ME you'd have to use proprietary APIs if you want to utilize all the features of the device in which your application would run.
So the best way to choose a platform would depend on which device's market you're targeting and see as most profitable.
This is for common developing
http://msdn.microsoft.com/en-us/library/bb677133.aspx
This is java based
http://en.wikipedia.org/wiki/Java_(software_platform)
this is for windows based
http://msdn.microsoft.com/en-us/library/bb677133.aspx
read this you will clear idea about that.
It has more to do with your target platform(s) and the connectivity of those platforms. If you are targeting feature phones, android devices, or the iPhone .NET is already out. If all your target devices have web connectivity I would recommend going with web development targeting mobile screen resolutions. If your looking to target mobile development a year or two out I would look at Flash(Flex) and Silverlight.
It depends on the app you want to make. Is it a game? If it is, then Java ME is good. There are plenty of games created with it already, and it is supported on a large number of phones, though its implementation is not the same across all vendors.
However, since you do seem to be leaning towards something that is coming up, Java ME might not be such a good idea. The platform is a bit old and a bit stale, honestly. Android is better in this regard, and I believe its API allows you more freedom than what Java ME affords. I can't speak for Windows Mobile as I've never touched it.
If you are interested in developing for Symbian, I'd suggest looking at the Forum Nokia website.
Look at this Infographics. Really wonderful visualization of the answer.