Android :: Good Draw Time?
Sep 8, 2009Whats a Good Draw Time? Im getting around 30-35 MS when i look at it in HeirchyViewer
View 2 RepliesWhats a Good Draw Time? Im getting around 30-35 MS when i look at it in HeirchyViewer
View 2 RepliesI'd like to add widget support to my app, but I suppose that it'll take quite a while until 1.5 is globally rolled out. I assume that widget support means that I need to compile against 1.5 and set up the minSdkVersion to 3, so I'll effectively lock out anybody with 1.1. Other than adding a second version of the same app for 1.5, what's the best way to approach this? Wait a couple of months until 1.5 is globally spread? (Assuming that all carriers even decide to roll it out in the first place.)
View 7 Replies View RelatedI like interesting talk combined with nu metal and hard rock, maybe some news thrown in here and there. Any good stations available in radio time like that?
View 1 Replies View RelatedLooking in the forum there it seems to be non-stop issues and problems that continuously quickly get sorted out, and I thought this would be a good time to quickly thank everyone on here who is helping all the time, literally answering the same questions over and over!
Particularly devan and rastaman who in the last 2days have made my phone go from a crap slow h8 to speedy fast hero-look-a-like that can finally play speedforge! But those are just two of the many that I wont list for fear of leaving someone out, but you know who you are.
Ok so after messing around with both the X and Incredible and literally WAY too much time spent researching, Ive pretty much made my decision with the Incredible. But now it has me thinking again. Is it really a good time to upgrade? I feel like the Incredible is starting to phase out a little (Or thats the feeling I get from some people) and I wonder if maybe I should just wait for the next HTC phone, or if this is the perfect time to upgrade.Im still unsure if I can do a 1 year plan(I need to talk to a VZN rep) instead of a 2 year plan, but if I can I would be a little more comfortable upgrading from my dinky LG Dare right now. Again, do you personally think it is a good time to upgrade to my first smartphone or simply waiting a little while for something else to come along?PS. I also keep hearing about an Incredible 2.any news on that?
View 23 Replies View RelatedIn my android application I use this method in "draw" Overlay class for draw route on map. Can someone tell me if this method is good (in terms of performance) for route draw on map or I must to put code in Thread ??
I'm new to android.
public synchronized void draw(Canvas canvas, MapView mapView, boolean shadow) {
if (pointsAndTimes.isEmpty()) {
return;
}
Projection projection = mapView.getProjection();
Paint paint = new Paint();
paint.setARGB(250, 255, 0, 0);.............
Moving Good for Enterprise around from rom to rom?
I have a Galaxy Nexus (Verizon) and was looking to test out Jelly Bean, or at least move to the stock image once available.
Problem is with Good for Enterprise..it's no longer hosted by my company and as an IT admin I used to be able to root, rom, reset my activation pin, etc.
Currently the parent company has a 1 and done activation (very annoying); so if I flash I have to wait for another activation?
Anyhow, was wondering if I were to take a backup of it and all its glory with Titanium backup, move to another rom and restore it, would it allow me to preserve my activation? I sort of tried it once, but it would never get any new email upon restore, so I was wondering if its really possible or if I am out of luck there?
I want to have a elmenent with a 2 color border outline. I can do a single color outline using the element, but this only allows me to draw a single line. I tried using 2 elements within my but that didnt work either. Is there a way to either draw a shape within a shape or draw 2 lines around my shape (which has rounded corners btw).
View 3 Replies View RelatedMy calls to getFromLocationName() always fail the "first" time I start my app. I catch the IOException which has reason:
Unable to parse response from server
Then I make a second call and it succeeds. Once things are "awake" all future calls to getFromLocationName() succeed, it's just that first one, and there is a ton of latency.
I haven't run this on a device yet, just in the emulator. This seems like a network problem, but it is so reproducible I'm thinking I'm not initializing something properly. I'm using Android SDK 1.1.
How can I make progress bar to measure time (pause/playing/total time) of different video which is streaming from website?
View 2 Replies View RelatedI am getting a date/time string from web in the format of "yyyy/mm/dd'T'HH:MM:SS'Z'" and it is in UTC. Now i have to identify the current time zone of device and then convert this time to my local time. (FYI, Currently, UTC time is 10:25 AM, in india current time is 3:55 PM)
View 1 Replies View Relatedat the moment I am thinking about a new app and need some information to decide whether to develop on Android or an alternative OS. I am particularly interested in "time to first screen", "boot-up time", "time to first Audio" and "app-start" (can be any from the android market or even one of the pre-installed ones) time? Does anyone know a source or perhaps measured those numbers?
View 9 Replies View RelatedI want to develop a game, so I need to know elapsed time at lots places in my game. For example, to measuring FPS. I see there is some example use "System.currentTimeMillis" to measure elapsed time. But I see the warning on document: http://developer.android.com/intl/zh-TW/reference/java/lang/System.ht... "This method shouldn't be used for measuring timeouts or other elapsed time measurements, as changing the system time can affect the results." So, if this method should not be used for measuring elapsed time, then what will be suitable?
View 2 Replies View RelatedSo I wanted some DigitalClock help. I have set up a digitalclock, and here's what I want to do. Once the clock hit's a certain time, perform an action. How can I control the actions on the digital time to check for a certain time?
View 2 Replies View RelatedIs there any android widget that enable to pick the date and the time at the same time ? I already use the basic date picker and date picker:
http://developer.android.com/guide/tutorials/views/hello-timepicker.html
http://developer.android.com/guide/tutorials/views/hello-datepicker.html
but they are not that sexy and user friendly (I found). Do you know if a widget including both date and time exists? Thanks a lot,WW.
I'm searching for time and billing apps. I've tried Time Catcher, myTimeSheet, and Time Recording. None of these allows start and stop of clock for multiple entries throughout the day. Any tips for better time sheet apps?
View 1 Replies View RelatedI am trying to get a local time from a server UTC time. I get the UTC time form the server -- and i want to make it right for each individual Android phone whether it be in California or China. This is the code I am using now -- however it snot working.The time I get from the server is "2010-08-17 19:41:13.0" And the code I use to get the difference(in seconds) is the following: public static long getSecondsDifference(Timestamp timeStamp) { final Calendar calendar = Calendar. get Instance (Locale.getDefault()); int refrenceOffset = TimeZone. get Default (). getOffset(timeStamp.getTime()); final long referenceSeconds = (timeStamp. get Time() + refrenceOffset) / 1000; final long currentTimeSeconds = (calendar. getTimeIn Millis()) / 1000; final long differenceMinutes = (currentTimeSeconds - referenceSeconds) / 60; return differenceMinutes; The timestamp is from the java.sql.timestamp package.Right now the time where I am is 11:50AM -- and the method returns that the given server time is -53 minutes ago( so obviously doing something wrong
View 1 Replies View RelatedIs there a way to get the time or date stamp of the last time the GPS was updated?
View 6 Replies View RelatedI'm trying to figure out how to draw on a bitmap in android, and keep a copy of these changed bitmaps for an undo function.
Bitmap b = ...
Paint p = new Paint();
canvas.drawBitmap(b, new Matrix(), null);
canvas.drawCircle(0,0,20,20);
//does Bitmap b have the circle drawn on it next time?
Or how do I get the bitmap after its been drawn on with the canvas(I want to preserve a stack of bitmaps with the changes applied by canvas drawing)? Maybe I'm going about this entirely wrong.
I'm new to openGL and I have done some first tests with drawing a triangle. Now I would like to draw a circle, which is filled with a texture, but I have no idea, how to do so.Can someone of you give me a hint?
View 5 Replies View RelatedI want to draw charts like pie charts to display stats in my Android app. As Android doesn't support Swing and AWT, i wonder how can i draw charts in Android? Please note that i don't want to use a third party tool.
View 6 Replies View RelatedI'm investigating the possiblity of writing an app for Android/iOS4/both that would use GPS in the background. I found the "Receiving Location Events in the Background" section of the iphone developer documentation, which recommends that I only register for "significant location change" events. I'm not aware of any such capability in the Android SDK, but it still seems like a good idea to do it this way if I can (so as not to drain the battery). My question is this: has anyone done any sort of benchmarking for this on and iPhone/Android phone? So far, I've seen a lot posts/documentation saying that listening for GPS events in the background is a VERY BAD THING and I should AVOID IT AT ALL COSTS, but I haven't been able to find any numbers for just how much power a background application listening on GPS changes would drain (i.e. % battery drain per time app is running in the background).
This information might be helpful for me (and possibly others too) because I might be able to poll less frequently or even register/unregister my GPS listener based on power drain. Essentially, I could try to put a ceiling on how much battery life my app could drain while in the background.
how to draw a line in android give example
View 1 Replies View RelatedI'm making an App that needs to be able to draw new graphics on top of the last set.
This is my current onDraw() method -
protected void onDraw(Canvas canvas) {
canvas.drawColor(Color.WHITE);
if(points.size() > 0) {
//do some stuff here - this is all working ok
canvas.drawLine(p1.x, p1.y, p2.x, p2.y, linePaint);
}
}
Basically, I need to draw the new graphics as a layer on top of the last, so what I'm looking for is a way to carry the image of the last canvas to the current. I have tried to figure it out myself using the canvas.setBitmap() method but it acts very funny.
I have some images that I want to put on top of each other on random order. If it possible using one ImageView or do I need to create multiple image views based on number of images?
View 2 Replies View RelatedI studied the Androidreference for hours now, but don't really get the clue how to draw something (Text, Bitmap, Path ....) on a ImageView.
Should I extend View and use the onDraw()-Method? If yes, how can I draw on my ImageView?
Or is there any other way to achieve my goal?
I have a set of views that are populated with data from an online database. The context menu has a "refresh" choice that re-reads the online database and updates some attributes of the views, like setText and setChecked for some buttons. After the various setTexts and such, I invalidate the Views. However, they are not immediately redrawn. In fact, they don't get redrawn at all unless something like a rotation happens to cause a redraw of the screen. How can I initiate an immediate redraw after the refresh is complete?
View 4 Replies View RelatedI've got a standard RelativeLayout laying out my Buttons and TextAreas. What I want to do now is be able to draw various sparks, flying cows etc. at arbitrary places on the screen on top of the whole thing. What's the best way to do this? Should I override onDraw() on the containing View and draw after calling super.onDraw()? Or is there some better way of drawing a layer on top?
View 1 Replies View RelatedAll text messages that I receive are 6 hours ahead of the actual time on the phone. Does anyone know how to fix this?
View 1 Replies View RelatedHey I think this was covered in a Hero forum but there was no good answer. Does anybody know why Handcent decides to not show facebook pictures from time to time?
View 2 Replies View Related