I'm a Computer Science student and I'm working on an Android app. for my final year project.
This is a rule in my college to perform some sort of performance analysis in every project that we do.
And this is the point where I got stuck.
Can anyone tell me what sort of performance-analysis I can do in my Project?
[Please do explain on how that should be performed.]
If you have your project in Eclipse, you can open the DDMS perspective. There, you will be able to profile the app, and get a feel for how long each method is taking / what takes the longest.
It's pretty easy. Once in the DDMS perspective, make sure the app is running, click the device it is running on, and then find the icon above the devices for 'start profiling'. When you are done, click the stop profiling icon, and eclipse will present you with some nifty graphs that you can zoom into.
This is far too broad of a question for SO (and in my opinion to be given out as an assignment) If that is seriously all the direction you were given "preformance analysis" then I would go ask your professor to elaborate some more.
in the mean time here are a few links that may be relavent:
http://www.flurry.com/
http://code.google.com/apis/analytics/docs/mobile/android.html
If your app is to be published on the market, the Developer console provides quite a few different statistics related to installs over time and versions and such.
see here for more info: http://android-developers.blogspot.com/2012/02/new-app-stats-for-publishers-on-android.html
Related
I was working on a project in android studio and suddenly I found a man type logo
I hover my mouse on in for a second then it shows me
Current Inspection profile: Project default.
Click to configure highlightening for the file.
When i clicked on this button it shows me
Now I want to know what is the use of this option or is this is important or not?
It may can be stupid question but I asked this question just to increase my own knowledge becuse this option seems bit important
Thanks In advance!
Happy Coding!
This has little to do with code inspection, but one can only define what is being highlighted. One could call it the visual representation of the inspection results, as it clearly read "highlighting level". This option only is of use, when you have to work with an old crappy computer, but rather irrelevant on current hardware.
As the name suggest, it inspects your code for issues, errors, incompatibility etc. and may recommends better options. If your system is low on resources (RAM, Battery, CPU) you can select None and also you can choose the PowerSave mode.
Lately, while attempting to build an interesting open source android-web streamer: Android-Eye, I noticed that several people, including myself have been stumped by process of building the application given that it contains c/c++ code that (I think) needs to be compiled by the android ndk before anything can work. The fact that the dev doesn't seem to be active anymore doesn't make this any easier.
I've been trying to get this to work for well over 3 days now and can say with full confidence that I do not posses the knowledge (especially for the ndk) to get this thing built. The long list of things i've tried is too extensive to be covered in this post but here are a few git issues posted by others that have experienced similar issues as me:
https://github.com/Teaonly/android-eye/issues/32
https://github.com/Teaonly/android-eye/issues/27
I understand that it may look as if I am asking to be "spoonfed" the process of building the application but a few pushes in the right direction would be excellent :)
BTW, I have access to windows and mac boxes incase that influences the build process.
Thanks
I am a android beginner. I am going through the book listed in the title. I haven't even made it past the first chapter without running into problems. I have installed the latest version of Eclipse. However, the examples shown in the book are not much like my version. For instance, this main.xml file that's supposed to be in the layout folder is not there. The "New Android Project" dialog box is arranged very differently and the package explorer is called project explorer. Is there a way to get this kind of eclipse in the book? Or do I just have to interpret it best I can? Any help would be much appreciated! This question has been down voted and closed by another user. Could someone please tell me why? I am just trying to get some help.
As different Android APIs(ICS, JB, etc.) are released, they sometimes change the ADT (Android Development Tools) for Eclipse. The ADT is plugin for Eclipse. This plugin is what gives you all those neat buttons in the toolbar and the XML layout interaction.
The book you are reading was designed for Android 4.0(Ice Cream Sandwhich). As of right now, Google has released up to Android 4.2.2(JB 4.2). There has been some significant changes to the ADT going from ICS to JB, but in my opinion, they are for the good. Lots of really neat and new features. Here is a Google resource explaining the different API releases for Android: http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels
I would say continue reading the book as it will teachs you the basics of Android, but when you want to do some in depth coding, that book isn't going to be very useful and you may have to do a little research online. Reason is, Google releases at least two new versions of Android every year. Every version changes, and adds new features. In other words, the book you are reading is already out of date. Android OS development moves way to fast for authors to keep updating their books.
To answer your question, your probably going to have to interpret it the best you can since, most likely, by June/July, Key Lime Pie is going to out, and the ADT your using NOW will be outdated. You should really learn the fundamentals of Android OS and how it works in the background and how processes things. After that, everything else should be easier to learn.
An alternative to the book you are reading is this: http://developer.android.com/training/basics/firstapp/index.html. This is straight from Google and is constantly updated and tweeked. This will be the most updated and useful information on how to write Android apps.
Hope that helps!
I would like to ask my fellow developers of their experience with eclipse.
I have recently started with eclipse and android, though the interface and development is not bad at all; but i have a major nagging issue.
Out of the blue eclipse or android compiler, am not sure, decides to go bonkers and misbehave. I spend so much time trying to debug and find errors in my code just to realize that a shutdown and restart of eclipse fixes it.
For example, one of my elements was returning null (using findViewById in android) - i spend about an hour trying to debug. Then decided to restart eclipse and it was fine. I wonder why?!
Is there anything that i ought to do ? ANything that i am missing with the eclipse settings. It really troubles me because it puts a brake on my development every now and then
Thanks
I personally never got comfortable with Eclipse and wound up settling on IDEA. When I had to work in C#, I found I was so stuck on it that I sprung out of my own pocket for the plugin to make Visual Studio work like IDEA
When I started to pick up Android, I begrudgingly went back to Eclipse, but once I needed to actually do something in Android, I checked back and discovered current version of IDEA (including the free one) supports Android development now too. Instructions for Eclipse all translate to it reasonably well, and the emulator won't change, so if that's where the issue is, you should find out reasonably quickly.
There are two general things that I suggest:
Fire up the emulator from outside of eclipse at startup time and leave it running (if you don’t already do this).
Add some memory to your development machine.
I am working on a game in eclipse. I connect my android phone to test my game application. Upon pressing "RUN" in eclipse, the game will begin to be uploaded to my device. However, it onl makes it half way then the console in eclipse gives me this error: INSTALL_FAILED_INSUFFICIENT_STORAGE. I checked my internal storage and I have 30mb left. My game is 3.20mb. I should have plenty of room. shouldn't I? Is this just a bug?
ps. This is very frustrating to me. I go to google developer forums and they tell me that if I am a neebie, to post on stackoverflow. I post on stackoverflow only to find they migrate me to SuperUser. Then SuperUser says, you were supposed to post on Android Enthusiast (beta), and migrate me there. Finally, I just looked, and someone posted that my question belongs on STACKOVERFLOW!!! Now I am back where I started. I am just trying to get some answers. Could someone please help me instead of migrating me please?
My application had a special german character in it,
like
"ö,ä,ü ... ß" .... (it was ö), prohibited adb to deploy the apk file no the device.
-> resulted in this error message...
so check your project name.
good luck!