Android : How To Select Random Values From A Given Range?
Aug 27, 2010
I'm trying to create an android application which will generate random series of values (integer numbers in this case) in a given range (but NOT equal between them) and display them in a simple TextView.
View 5 Replies
Nov 22, 2010
I am struggling from long time to get this done i know some of the solutions in sql but couldn't find any of them from sqlite.
View 3 Replies
View Related
Jun 24, 2010
I need to create a random character generator that return a single character. The character should range within the letters of the alphabet, numbers 0 through 9, and some characters like.
View 3 Replies
View Related
Jul 15, 2010
When i open my "Messages" app (SMS) to read a new text, ill click the message to open the thread, but a thread 6 lines below opens instead? Example: my wife sends me a new text.I open Messages, click on her new message but it opens the text thread from my brother (which was 6 slots down in the main Messaging screen).What the heck? It keeps randomly happening.Is this happening to anyone else?
View 15 Replies
View Related
Sep 6, 2010
CODE:......
When i select an item random other items background also gets changed although they are not added to the array names and numbers. i need only the background of the selected item tochange..is there a way to do this without creating my own listadapter ?
View 1 Replies
View Related
Apr 9, 2014
I want to ask where does the defaults values of memory min-free values of a Rom reside? I mean what file I would have to edit to edit those values?
View 1 Replies
View Related
Jun 16, 2010
I've had my Incredible since 4/28, and everything has been working smoothly up until about last Thursday night when it just restarted out of the blue while I was listening to music. Then right after it booted up, it restarted again, then again about seven more times. I got fed up and took out the SD card and it seemed to stop after that, so I haven't put the SD card back in since then.
Just now, Wednesday, about a week later, I was browsing around on the internet and all of a sudden, it restarted, and then again, and again, and again. I've read that it is because of poor signal strength or something like that so I had just enough time to put it in airplane mode before it restarted again.
Side note, that theory about it being caused by poor signal seems to make sense because the first time it happened to me I was out of town in a city that gets very bad coverage with Verizon, and now today when it started happening again was at my house where for some reason I get very bad service with the incredible, my old phone worked perfectly fine in my house but the incredible gets terrible service, and so does my brother's Droid. In fact, about two weeks ago I got my first dropped call on Verizon in about three years, and it was in my house.
So anyways, I decided to put it in airplane mode, and just after I put it in airplane mode it restarted again. Then when it booted back up my Helix Launcher 2 home screen went back to the standard Helix Launcher 2 icons, I go into my messages and everything is gone, my contacts are all gone, everything is gone. I go to the app menu and all my apps are still there, but when I start up an app, all the custom settings are default now. I went into the settings and my accounts are all still there. I click on internet and I get a terms of service agreement, it's as if I am booting it up for the first time, but for some reason my apps and accounts are all still there.
I turn airplane mode off thinking it might have something to do with it not being connected to my google account, and I restart it again and everything is still gone. I don't know what to do, has this happened to anyone before? I feel like there should be a way for me to get this stuff back since my apps are still there and my accounts are still synced, but random things are missing like my contacts and messages etc. This is really starting to get annoying, I have insurance and everything, but I really don't want to exchange it for another one because I've read that other people who have had there phones replaced have still had the same rebooting problem, even after going through multiple replacements.
View 2 Replies
View Related
Nov 2, 2010
I'm trying to implement a Select All menu item for a ListView in a ListViewActivity. The relevant parts of my ListViewActivity: public class MyListViewActivity extends ListActivity browsed around stackoverflow.com and the google; the above is something that should work. But it isn't. setSelection(i) appears to be the method I want to call on ListView but it's not working as advertised. What am I doing wrong? Is this even possible on Android in code?
View 2 Replies
View Related
May 9, 2010
New to Android and starting to work on file mgmt. I set up some subfolders on my SD card for pictures. I have been moving pictures from one folder to another, but I can only move one at a time. Is there a way to select multiple picture files and move them to another folder (like "Select All" with Windows)? This is the sequence I've been following: Use the Edit Icon in the Astro taskbar, select Move, then going to the directory folder I want to move them, and hit Paste. Moving one file at a time is taking for ever.
View 2 Replies
View Related
Oct 14, 2010
I am initiating the design of an application that would require an Android phone to connect to another Android phone via Ad-Hoc networking with or w/o security. I would like to know if Android supports ad-hoc networking. I would also like to know what is the average range of the wifi signal from an Android handset point-to-point with no obstructions. I cannot find any information about this on the web.
View 10 Replies
View Related
May 2, 2010
I have a droid and the range I get with wifi compared to a laptop is horrible. The networks I have tested on are all 802.11g. Is this just normal because of the antenna size on the droid or is there something I can do to improve it? I feel like I have to be right next to the access point to have a good connection.
View 2 Replies
View Related
Jul 1, 2010
I was thinking how awesome it would be to create a to-do list at home, set the location, then have it pop up when you get into the set range. Does this exist already?
View 1 Replies
View Related
Jul 29, 2010
Does anyone have any dialogs that will allow a user to pick a number within a certain range? It seems like this would be a fairly common need, but I can't find a common dialog for it and I'd rather not have to spend the time creating my own. Any help?
View 3 Replies
View Related
Jun 12, 2010
I realize that it would probably require boosting antenna power and thus reduce battery life but, if I am prepared to accept that, can I programatically extend wifi range?
View 1 Replies
View Related
Nov 22, 2010
How can I read GPS raw data, to be more specific I need the saellites pseudo range. This data is not available in NMEA format.
View 2 Replies
View Related
Jun 5, 2009
I have written some app which connects to server and fetches some data. Here is the response I am getting. HTTP/1.1 416 Requested Range Not Satisfiable Content-Type: text/html Content-Length: 0 Expires: Fri, 05 Jun 2009 07:29:49 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Connection: keep-alive X-N: I am not understanding this. I just established a socket connection. I am not understanding is it my coding problem or server problem.
View 2 Replies
View Related
Jul 15, 2009
I am trying to resolve following task: smooth change of brightness from 100% to 0%, but can't gain effect of smoothness. Want to emphasize that I am using following approach of brightness change. The recommended one.
WindowManager.LayoutParams lp = window.getAttributes();
lp.screenBrightness = floatPercent;
// 0 - 1 window.setAttributes(lp);
Well, it obviously works, but not smooth. I will describe logic. I have a thread that changes brightness:
while (isRunning()) { Thread.sleep(sleepTime);
spentTime+=sleepTime;
view.post(new Runnable() {
public void run() {
changeBrightness();
} } );
}
We have duration of brightness change, for example 10 seconds. I calculate next value of floatPercent (see code snippet above) the way, sleepTime should always be less than 50ms. So looks like it had to be smooth. But I always get not smooth transition. It relates specially the range of 0% - 5% of brightness. Smoothness is completely lost on this brightness range. What can you propose?
View 3 Replies
View Related
Apr 24, 2009
Are there any video players that can handle AVI or a full range of mpeg formats seamlessly?
View 2 Replies
View Related
Nov 21, 2010
I have just recently moved from Nokia E75 to HTC Desire, and there are lots of stuff on the E75 that I will never miss... But, there are a couple of things I am missing very much, tho. One thing was a very clever feature that saved a lot of battery... On my HTC Desire I have to leave wlan enabled at all time for the phone to utilize wireless at all, and I can see that it's consuming approx 20% of the battery power - even if no apps or widgets are accessing internet.
But on the Nokia E75 it's very different... The wlan is switched off by default, so whenever an application on the E75 needs a data connection (internet), it will quickly enable wlan and check to see if there are any networks nearby it can access, and then disable it again if it doesn't find any. (If no wlan access point is detected, it will go online using the mobile data connection automatically instead)
View 7 Replies
View Related
Feb 10, 2010
I have a full-screen TextView holding a long Spanned that requires scrolling. The TextView's getLineCount() gives me the total number of lines used for the entire block of text but I'd like to know how many lines of text are currently visible on the screen.
Or, better yet, is there a way to figure out the range of lines currently visible on the screen? For example, as the view scrolls, can I tell that lines 20-60 are currently visible?
View 1 Replies
View Related
Aug 2, 2010
I have got a HTC EVO for myself n facing a problem with its Wi-Fi range.. As soon i get out from the room where i hav got router installed, it loses all its signals.. way to improve its range?
View 2 Replies
View Related
Aug 31, 2010
As you know android today is many versions many constructors, many screen sizes,...
it's quite difficult for developers today to write programs that targets a big part of devices.
What would be THE developer must-know practices for this ?
View 4 Replies
View Related
May 16, 2010
My home wireless network has always worked with my Eris until I updated to 2.1. I can get it to connect once, but after a few minutes, it disconnects and when I go into the wireless settings, I see the status as "not in range, remembered" even though I'm right next to my wireless router.
View 5 Replies
View Related
Sep 7, 2010
Not sure if any of you guys have the same problem but when I leave my Wifi on all day, and return home from work, my home Wifi never picks back up. When I toggle my Wifi on and off, it picks up again. My signal is always above 1 bar when on Wifi in my house, it just does NOT automatically connect anymore.
View 4 Replies
View Related
Jul 21, 2010
I'm going to ask a shot version of my question first because, as I was typing out my thorough explanation below, I realized that I had seen a setting that I believe fixes my problem but I cannot remember where it is or how to get to it. In short, the problem I am having is that Non-recurring events (one time appointment) that are in the Google Calendar online are not showing in the Moment calendar app. There was a Settings Page not sure if it was in the main OS menu or the Calendar menu that gave you the option of choosing to show events "before" a certain date and to show events "After" a certain date. You repeatedly tap the two "before" or "after" options and the dates would move further back in time and further forward in time respectively creating a date range.
Non-recurring events, obviously, continue to show for years prior or in the future but Non-recurring one-time events outside of a "range" of a time period do not show. Does Anyone know what the setting I am referring to and how to get back to it?? If not, perhaps my more thorough explanation of my problem and what I am trying to accomplish below might help me find the display before this date/after this date setting that I cannot find again! (longer explanation/description follows below): We have a Moment and an EVO and we are both new to Android but it appears I am only having the problem with our Moment. Though we are new to Android and the gmail sync, I am very comfortable with the sync process and working with Google Calendar online or on the phone and the settings for forcing a sync, choosing which calendars to display, etc. I did some troubleshooting of the problem and this is what I have figure out here goes:
It appears that the calendar on the Moment is only showing recurring events birthdays, anniversaries anything where the event is set to recur some time in the future. The non-recurring events a random party, a random doctor's appointment does NOT show on the Moment Calendar app! I prefaced my issue with being comfortable and familiar with the Google calendar operation because I am certain that the events are in the Google Calendar online. If I change the one-time event to a yearly recurring event and force the phone to sync then WHAM BAM the now recurring event shows in the Moment calendar app. Remove the recurrence and go back to the one-time doctor appointment, sync, and disappears again! The other odd thing is that "old" Non-recurring events that have already passed do seem to continue to show on the Moment calendar app for about a month. In other words, stuff back to about a month from today (today 7/20) DOES SHOW even if non-recurring but anything older than a month does not show.
Now I can Understand why if you had a doctor's appointment on May 20, 2010, that that even should NOT appear on either your Google Calendar online OR your Moment calendar app for May 20, **2011** because that doesn't make sense. However, it DOES make sense and is important to be able to go back to May 2010 and ask,"what day was that appointment with so-and-so company?" and you scroll back in your calendar to see the name of the company or "In February, 2010, did our son or daughter see the doctor? and you scroll back a few months to see that your son and not your daughter went. The Google Calendar online does NOT automatically purge older events, they are all visible online back yearsand years. Why is the Moment "purging"/not displaying non-recurring events on the phone that are in a range of about 1 month old to about to happen in a month?
View 5 Replies
View Related
Jun 15, 2010
I noticed this same issue with my HTC Hero, and then it seemed to go away. Now I've noticed it again.
The issue is this: I have around 2700 songs on my SD card, all in a folder called Music, and they are arranged, quite logically, by artist and album under that. Unfortunately, when I put the music application on random, it seems to get stuck on 4 or 5 artists (and sometimes within those artists, one particular album) and play those almost exclusively, with only an occasional diversion to some other artist. At one point it was so bad that a. it played one particular song 6 times in a 4 hour period, and b. I got so tired of one of my artists, I deleted it entirely!
So, is this a bug with the built in music player? Is it because of the amount of music I have? Is it because of where my music is stored? Has anyone else had this problem? (Or does Android OS just have an affinity for The Byrds? )
Are there any other music apps I can try? I tried Simply Music, and it did work much better on the randomization, but it hung for a few seconds several times (for no discernable reason) and it is very slow to load.
View 16 Replies
View Related
Nov 14, 2010
What is the range of wireless tether
View 2 Replies
View Related
Nov 10, 2009
I got the Hero on 3UK yesterday. As soon as I booted it up it found a number of wireless networks and I was able to connect to my BeBox with no problems. Later on last night and continuing today, it can't find any networks in range. It shows the BeBox as 'remembered' but not in range. Even tho I'm obviously sitting near it. I've rebooted the phone today and no change. I installed the Fonera application yesterday and thought it might be causing problems so disabled it and still the problem was there.
View 2 Replies
View Related
Jun 13, 2010
Quick background, I am still on a $30/month SERO plan with my Touch Pro 2 and waiting to get a $10/24 month discount but Sprint has put a halt to all discounts for the time being, so I'm going to try when the iPhone 4 comes out and when Verizon gets their Droid X. I was going to sell my EVO but it seems I might as well keep it since I'm going to eventually use it.
So in the meantime, I'm going to hold onto the TP2/SERO and use the EVO when I am within a WiFi network. Thing is sometimes I want to bring the EVO out, so I thought maybe I could open up a WiFi hotspot with HTC's Wifi-Router software and connect to it with the EVO. But the EVO isn't recognizing the WiFi hotspot. My laptop can recognize it though. I tried to add the WiFi network but it'll say "Not in range, remembered".
View 2 Replies
View Related
Jul 16, 2012
I used to know a way to dump a raw range of data (i.e. specifying start/end in hex address) from a block device which I used to do from data recovery days, but I can't remember what it is.
FYI, I am trying to grab data from an unknown range of data on the nand layout for the Xperia Play but this is a general linux/busybox question. For details on what I'm doing check here.
View 5 Replies
View Related