[android-developers] Re: Outgoing call states

2010-12-27 Thread viktor
Any ideas? On 24 Грд, 15:14, viktor victor.scherb...@gmail.com wrote: Yes :), but I wrote what I catch. On 24 Грд, 14:33, Pent tas...@dinglisch.net wrote: Hi, Is it any additional listeners to listen call state such as BUSY, NO_ANSWER, I just have only CALL_STATE_IDLE,

[android-developers] How to do use WebView load html?

2010-12-27 Thread CaryWang
I want use webView load html.however, shows only the screen size of the html, and other areas not show, a user can't drag it to other areas -- Cary -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] How to exit the application..?

2010-12-27 Thread Abhilash baddam
Hi , I am new to android. How can we exit from application...For example if we have 3 activities each activity consists one button..when we click on a button which may be from any activity, i want to exit from application and it should go home screen. again if we start the application from

[android-developers] Do GPS_EVENT_SATELLITE_STATUS and GPS_STATUS_SESSION_BEGIN have any relationship?

2010-12-27 Thread nelsonchung
In AP level, I try to use gpsListener = new GpsStatus.Listener() to get event from android jni. and expect to get event - GPS_EVENT_SATELLITE_STATUS to update the gps status. In HAL level, I try to set GPS_STATUS_SESSION_BEGIN to alert AP to update gps status by callback function. It can't be

Re: [android-developers] How to exit the application..?

2010-12-27 Thread Kostya Vasilyev
Call finish() on an activity you would like to, well, finish. 27.12.2010 11:40, Abhilash baddam пишет: Hi , I am new to android. How can we exit from application...For example if we have 3 activities each activity consists one button..when we click on a button which may be from any activity,

[android-developers] HeadStart Ventures:Expert Talk Series1 on Mobile Video and Side Loading

2010-12-27 Thread Raman Shrivastava
Dear All, Headstart Ventures (www.headstartventures.in) is excited to launch Expert Talk Series with the intent to create a platform for exchange between Industry experts and startups working on innovative products/ services in the domain relevant and of interest to the associated large corporate

[android-developers] Re: How to exit the application..?

2010-12-27 Thread viktor
You can set for every Activities android:launchMode=singleTask ; And if you go Home, you always restart an Activity with onCreate state. On 27 Грд, 10:40, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: Hi ,      I am new to android. How can we exit from application...For example

Re: [android-developers] Re: How to exit the application..?

2010-12-27 Thread Abhilash baddam
Hi viktor, What your saying is if i use finish(); method in my code, is i have to use android:launchMode=singleTask in manifest file right? 2010/12/27 viktor victor.scherb...@gmail.com You can set for every Activities android:launchMode=singleTask ; And if you go Home, you

[android-developers] Launch Activity with Intent Filter on Right Time

2010-12-27 Thread sjor
Hi. I want to launch my own media player application when I want to watch a video from Youtube. When I write android:scheme=http and android:host=m.youtube.com it is OK. But, it asks everywhere in m.youtube.com to open my app. So, it gets annoying. I tried to use pathPattern, pathPrefix and path

[android-developers] store string array in database

2010-12-27 Thread pramod.deore
Hi, I have a String array (which contains some day from Monday - Sunday). But which days are stored is decided at runtime means sometime it want to store all day or sometime 1 or none. Now I want to store this array in database. How to save array of string in database? Or should I create 7

[android-developers] openGL problem

2010-12-27 Thread pedr0
Hi at all, I have a terrible issues with texure sphere mapping. This is my code: public void onSurfaceCreated(GL10 gl10, EGLConfig config) { GL11 gl = (GL11) gl10; gl.glDisable(GL10.GL_DEPTH_TEST); //Disable Depth Testing

[android-developers] Re: openGL problem

2010-12-27 Thread pedr0
This a link of my issues -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: openGL problem

2010-12-27 Thread pedr0
img198(dot)imageshack(dot)us/img198/6370/failfs.png -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] Re: How to exit the application..?

2010-12-27 Thread Abhilash baddam
any help please... 2010/12/27 Abhilash baddam abhilash.androiddevelo...@gmail.com Hi viktor, What your saying is if i use finish(); method in my code, is i have to use android:launchMode=singleTask in manifest file right? 2010/12/27 viktor victor.scherb...@gmail.com You can

[android-developers] Re: AES in Gingerbread

2010-12-27 Thread Bob Kerns
I wonder if you realize that sr.setSeed(seed) does *NOT*, repeat *NOT* set a SecureRandom to produce a predictable series of values? Not only would that no longer be secure, it's not what setSeed() does for a SecureRandom. Instead, it supplements the existing seed (which is beyond your control

Re: [android-developers] How to exit the application..?

2010-12-27 Thread Mark Murphy
On Mon, Dec 27, 2010 at 3:40 AM, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: Hi ,      I am new to android. How can we exit from application...For example if we have 3 activities  each activity consists one button..when we click on a button which may be from any activity, i want

Re: [android-developers] Launch Activity with Intent Filter on Right Time

2010-12-27 Thread Mark Murphy
That is not possible. The path in both cases are identical. The ? and stuff to the right is not part of the path. On Mon, Dec 27, 2010 at 4:55 AM, sjor sleche...@gmail.com wrote: Hi. I want to launch my own media player application when I want to watch a video from Youtube. When I write

[android-developers] Re: Cannot compile Desk Alarm Clock (branch eclair ver 2.1)

2010-12-27 Thread Bob Kerns
Indeed. This is called eating your own dogfood, and it's a highly valuable part of creating a high-quality product. If there's ANY reason this would inconvenience the developers, than that's a red flag that there's something that needs to be addressed -- whether it's the build/release system or

Re: [android-developers] store string array in database

2010-12-27 Thread Mark Murphy
Option #1: Use an INTEGER column and bit positions for the different days Option #2: Serialize the strings into a comma-separated list or similar structure and store the result in a TEXT column On Mon, Dec 27, 2010 at 5:38 AM, pramod.deore deore.pramo...@gmail.com wrote: Hi, I have a String

Re: [android-developers] Re: How to exit the application..?

2010-12-27 Thread Manoj Maurya
you have to call finish() whenever u want to exit. Thanks Manoj Kumar Maurya any help please... 2010/12/27 Abhilash baddam abhilash.androiddevelo...@gmail.com Hi viktor, What your saying is if i use finish(); method in my code, is i have to use android:launchMode=singleTask in manifest

Re: [android-developers] Getting the Android Java source?

2010-12-27 Thread Mark Murphy
On Sun, Dec 26, 2010 at 11:03 PM, John Lussmyer johnlussm...@gmail.com wrote: Is it possible to get just the source for the Android .jar files? I don't want the whole bleeding OS, just the source that will help me figure out what's going wrong in my code when I get weird exceptions. Like,

[android-developers] Re: Launch Activity with Intent Filter on Right Time

2010-12-27 Thread sjor
Thank you. So, Is there any other possible way to launch my application when I open a video on Youtube? On 27 Aralık, 13:39, Mark Murphy mmur...@commonsware.com wrote: That is not possible. The path in both cases are identical. The ? and stuff to the right is not part of the path. On Mon,

[android-developers] Re: store string array in database

2010-12-27 Thread pramod.deore
Thank you Sir. On Dec 27, 4:41 pm, Mark Murphy mmur...@commonsware.com wrote: Option #1: Use an INTEGER column and bit positions for the different days Option #2: Serialize the strings into a comma-separated list or similar structure and store the result in a TEXT column On Mon, Dec 27,

Re: [android-developers] Re: Launch Activity with Intent Filter on Right Time

2010-12-27 Thread Mark Murphy
On Mon, Dec 27, 2010 at 6:46 AM, sjor sleche...@gmail.com wrote: Thank you. So, Is there any other possible way to launch my application when I open a video on Youtube? If your app is the one that is in control at the time the user says I want to watch this video, you can start up your own

[android-developers] Re: How to store date and time in database

2010-12-27 Thread Bob Kerns
Be very, very, VERY careful about storing date and time information in a textual format. There are boundary conditions, timezone issues, leap-year issues, skipped-leap-year-issues, leap seconds, and finally, localization issues, which can all reach out and bite you in ways you may not consider.

[android-developers] Re: How to store date and time in database

2010-12-27 Thread Federico Paolinelli
I do agree with this approach :-) On 27 Dic, 08:39, Kostya Vasilyev kmans...@gmail.com wrote: Kris Pramod, With all due respect, there is a much easier way. Java date/time stamps are internally represented by long values, the value being the number of milliseconds since Jan. 1, 1970 GMT.

[android-developers] Re: How to store date and time in database

2010-12-27 Thread pramod.deore
Thanks Bob and Federico. On Dec 27, 4:59 pm, Federico Paolinelli fedep...@gmail.com wrote: I do agree with this approach :-) On 27 Dic, 08:39, Kostya Vasilyev kmans...@gmail.com wrote: Kris Pramod, With all due respect, there is a much easier way. Java date/time stamps are internally

[android-developers] Re: Launch Activity with Intent Filter on Right Time

2010-12-27 Thread sjor
Yes, I want to launch my application while using browser. Is it exactly unpossible to make something for it? Can I use android:mimeType for example? for On 27 Aralık, 13:50, Mark Murphy mmur...@commonsware.com wrote: On Mon, Dec 27, 2010 at 6:46 AM, sjor sleche...@gmail.com wrote: Thank you.

Re: [android-developers] Re: Launch Activity with Intent Filter on Right Time

2010-12-27 Thread Mark Murphy
On Mon, Dec 27, 2010 at 7:12 AM, sjor sleche...@gmail.com wrote: Yes, I want to launch my application while using browser. Is it exactly unpossible to make something for it? Yes. Can I use android:mimeType for example? All YouTube videos will share a MIME type. -- Mark Murphy (a Commons

[android-developers] Re: Launch Activity with Intent Filter on Right Time

2010-12-27 Thread sjor
So, what is it? I mean, what is the mime type of a youtube video play page? On 27 Aralık, 14:21, Mark Murphy mmur...@commonsware.com wrote: On Mon, Dec 27, 2010 at 7:12 AM, sjor sleche...@gmail.com wrote: Yes, I want to launch my application while using browser. Is it exactly unpossible to

Re: [android-developers] Re: Launch Activity with Intent Filter on Right Time

2010-12-27 Thread Mark Murphy
On Mon, Dec 27, 2010 at 7:39 AM, sjor sleche...@gmail.com wrote: So, what is it? I mean, what is the mime type of a youtube video play page? Beats me. That would be a fine question for some place that relates to YouTube. But it does not matter -- your video will have the same MIME type as

[android-developers] Re: Launch Activity with Intent Filter on Right Time

2010-12-27 Thread sjor
If I know the mime type i can write android:scheme=http, android:host=m.youtube.com and android:mimeType= then it works. I should find the mime type as i see. On 27 Aralık, 14:44, Mark Murphy mmur...@commonsware.com wrote: On Mon, Dec 27, 2010 at 7:39 AM, sjor sleche...@gmail.com wrote:

Re: [android-developers] Re: Launch Activity with Intent Filter on Right Time

2010-12-27 Thread Mark Murphy
On Mon, Dec 27, 2010 at 7:49 AM, sjor sleche...@gmail.com wrote: If I know the mime type i can write android:scheme=http, android:host=m.youtube.com and android:mimeType= then it works. I should find the mime type as i see. No, that will give you the same results as you have today --

[android-developers] Re: Launch Activity with Intent Filter on Right Time

2010-12-27 Thread sjor
I want to control every Youtube video. I just don't want when I press share,search, hq, the username of the owner of the video etc. my application is launched. Only when I want to play a video(can be any video in Youtube) my app should be launched. When i write android:scheme=http and

[android-developers] Re: Launch Activity with Intent Filter on Right Time

2010-12-27 Thread sjor
But, for example when I want to search a video it launchs my application, too * On 27 Aralık, 15:08, sjor sleche...@gmail.com wrote: I want to control every Youtube video. I just don't want when I press share,search, hq, the username of the owner of the video etc. my application is launched.

[android-developers] Re: How to store date and time in database

2010-12-27 Thread pramod.deore
Ok, Now I have stored date in miliseconds format. from this I can get year, month and date(I can also get time from this). But how to store time? Because there are 2 buttons for user to select using first button user select the date on which he wants to on particular switch and second button for

[android-developers] Re: How to store date and time in database

2010-12-27 Thread DanH
Store it any way you want. If you want to do selection by date I'd favor long integer (seconds since 1970), unless you need sub-second resolution. But supposedly SQLite can sort out (and select by) a wide variety of date formats, as described in the article someone referenced. On Dec 27, 12:21 

[android-developers] Re: How to store date and time in database

2010-12-27 Thread DanH
It should be pointed out that long integer is one of the date formats supported by SQLite. On Dec 27, 1:39 am, Kostya Vasilyev kmans...@gmail.com wrote: Kris Pramod, With all due respect, there is a much easier way. Java date/time stamps are internally represented by long values, the value

[android-developers] Re: How to store date and time in database

2010-12-27 Thread DanH
(Though the SQLite long int representation of date is in seconds, not milliseconds.) On Dec 27, 1:39 am, Kostya Vasilyev kmans...@gmail.com wrote: Kris Pramod, With all due respect, there is a much easier way. Java date/time stamps are internally represented by long values, the value being

[android-developers] Re: How to store date and time in database

2010-12-27 Thread DanH
Well, you can store time as date-time modulo 24 hours -- fits easily in 32 bits. Otherwise, probably some sort of hours/minutes/seconds triplet (or just hours/minutes). On Dec 27, 7:17 am, pramod.deore deore.pramo...@gmail.com wrote: Ok, Now  I have stored date in miliseconds format. from this

[android-developers] SMS Receipt Notification

2010-12-27 Thread Ian
Hi Folks, It would be really good if there was a way to programmatically turn on SMS receipt notification before sending an SMS (again programatically). I couldn't find this - anybody know how? Many Thanks Ian Hunter -- You received this message because you are subscribed to the Google Groups

[android-developers] Cursor.getString() truncating Strings issue

2010-12-27 Thread Damien Cooke
Hi All, I have an app that stores it's local data in a database, The database has a TEXT field called description that on some rows is truncated on retrieval. I have checked the database by running it app in the emulator and grabbing the database and checking the contents. So I know the data

[android-developers] Re: Is this normal textview or webview?

2010-12-27 Thread Mystique
Hi Master TreKing, I know it is a listview but is it a textview in the listview or webview in a listview? I wanted to do something like this but I can't seems to get it right modifying the textview so is wondering is it something special to create this look or it is just same text component in

Re: [android-developers] RelativeLayout problems

2010-12-27 Thread John Lussmyer
I fixed the id problem that was pointed out by the previous reply. It made no difference. On Sun, Dec 26, 2010 at 11:44 PM, Kostya Vasilyev kmans...@gmail.comwrote: John, Two suggestions: 1 - When your app suspends like this, it means it's crashing, but hasn't quite crashed all the way

Re: [android-developers] Getting the Android Java source?

2010-12-27 Thread John Lussmyer
On Mon, Dec 27, 2010 at 3:46 AM, Mark Murphy mmur...@commonsware.comwrote: If you are getting this in Eclipse, then your problem is with Eclipse and the ADT plugin. BridgeXmlBlockParser is related to the layout preview/drag-and-drop stuff, near as I can tell via Google Code Search. If you

Re: [android-developers] Getting the Android Java source?

2010-12-27 Thread Mark Murphy
On Mon, Dec 27, 2010 at 10:02 AM, John Lussmyer johnlussm...@gmail.com wrote: I've restarted Eclipse, multiple times. This appears to have something to do with a Custom widget I have in my XML file. I'd really like the Java source so I can see what Eclipse is choking on. Use Google Code

Re: [android-developers] Re: Is this normal textview or webview?

2010-12-27 Thread Mark Murphy
On Mon, Dec 27, 2010 at 9:50 AM, Mystique joven.ch...@gmail.com wrote: I know it is a listview but is it a textview in the listview or webview in a listview? Most likely, each row is three TextViews in a RelativeLayout, where the top TextView really should have an android:ellipsize entry but

Re: [android-developers] Re: store string array in database

2010-12-27 Thread Frank Weiss
True, you can store a set of weekdays in a single column, but the real question should be what kind of queries would you make regarding that column. Consider if that column may be used in join, where, order by, etc. On Dec 27, 2010 3:49 AM, pramod.deore deore.pramo...@gmail.com wrote: Thank you

Re: [android-developers] Getting the Android Java source?

2010-12-27 Thread John Lussmyer
I've been digging around in Google searches anyway. I did finally find the problem. The Eclipse preview code absolutely REQUIRES that you provide the AttributeSet that was passed in to your custom widget for any widgets you create programmatically inside it. It can not be null, and it must be

[android-developers] Re: How to store date and time in database

2010-12-27 Thread Bob Kerns
Wha On Dec 27, 6:14 am, DanH danhi...@ieee.org wrote: Well, you can store time as date-time modulo 24 hours -- fits easily in 32 bits.  Otherwise, probably some sort of hours/minutes/seconds triplet (or just hours/minutes). -- You received this message because you are subscribed to the

[android-developers] Re: OpenGL Problem with Sphere Texture Mapping

2010-12-27 Thread pedr0
But normal.x what is it? Is the abs(x) ? On 23 Dic, 20:41, Robert Green rbgrn@gmail.com wrote: UV unwrapping/mapping is standard practice in 3d games.  It's how the artist lines up the textures onto the skin/model. You're doing UV coordinate generation, which is similar but is

[android-developers] Re: How to store date and time in database

2010-12-27 Thread Bob Kerns
(Ignore the previous garbage post; it posted while I was typing; who knows why. Mouse was nowhere near the Send button). I would recommend storing the date+time in milliseconds as a single field, just as Java's Date class does. This makes sorting work 100% properly -- a benefit I forgot to

Re: [android-developers] Cursor.getString() truncating Strings issue

2010-12-27 Thread Frank Weiss
logcat may be truncating, have you also tried Log.i(TAG,contents from cursor = +cursor.getString(Additives.DESCRIPTION_COLUMN).length()); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: OpenGL Problem with Sphere Texture Mapping

2010-12-27 Thread Kostya Vasilyev
Pedro, A normal is a unit vector (length == 1) that is perpendicular to the surface. Normals are used for shading, so don't worry about them too much for now. Texture coordinates, as was already pointed out here, are in 2D space, i.e. two coordinates. The reason is that textures are

Re: [android-developers] Re: How to store date and time in database

2010-12-27 Thread Frank Weiss
milliseconds from midnight jan 1 1970 UTC to midnight dec 27 2010 UTC plus miliseconds from midnight dec 27 2010 UTC to 15:57 27 dec 2010 UTC -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: How to store date and time in database

2010-12-27 Thread Bret Foreman
Here's a handy reference article: http://en.wikipedia.org/wiki/Unix_time -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: store string array in database

2010-12-27 Thread Bret Foreman
I would use an enum for the Weekdays like this enum Weekdays { SUNDAY , MONDAY, TUESDAY, ...} And then store the ordinal in the DB like this: int ordinal_to_store_in_DB = weekday.SUNDAY.ordinal() And retrieve the values from the DB like this: Weekdays day =

[android-developers] Generating a unique widget ID

2010-12-27 Thread John Lussmyer
I have a custom view that programmatically creates several widgets within itself. I need to give these widgets ID numbers, so the RelativeLayout can position them properly. How do I find unused ID numbers that I can use? Just using constants won't work. Even if I happen to choose some that nobody

[android-developers] How to simulate power off key

2010-12-27 Thread Daddym85
Hi, I have a Samsung Galaxy S with Android 2.2. In order to power off the phone, I must press and hold the power off key. I would like to simulate this action from a Java code. Can I do it? Best regards, Daddym85. -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Generating a unique widget ID

2010-12-27 Thread Bret Foreman
You could use a static value in your widget class. Increment the static value in the constructor and use that to initialize an ID that is local to the instance. Basically the classic singleton pattern. You can add serialization for the static if you plan to support multi- threading but that's not

Re: [android-developers] How to simulate power off key

2010-12-27 Thread Mark Murphy
Only if you modify the firmware, or possibly root your phone. Normal SDK applications cannot power off the phone. On Mon, Dec 27, 2010 at 12:16 PM, Daddym85 davidemulf...@gmail.com wrote: I have a Samsung Galaxy S with  Android 2.2. In order to power off the phone, I must press and hold the  

[android-developers] Cross Word Game

2010-12-27 Thread Diego N.
I would like to develop a crossword puzzle game but never worked with game development. He wanted to know where to start. I will use Java 2D? I have experience only with the development of applications, not games. -- Diêgo Nunes Assunção Give Peace a Chance -- You received this message

Re: [android-developers] Re: Generating a unique widget ID

2010-12-27 Thread John Lussmyer
Yes, but that still doesn't assure that you won't collide with somebody elses custom view ID numbers. On Mon, Dec 27, 2010 at 9:22 AM, Bret Foreman bret.fore...@gmail.comwrote: You could use a static value in your widget class. Increment the static value in the constructor and use that to

[android-developers] Forcing volume control to be for the Media volume in my app

2010-12-27 Thread John Lussmyer
My app plays very short sounds frequently. I'd like the user to be able to use their normal volume controls to turn the volume up or down. The problem is that while my app is running, the volume control defaults to the Ringer volume, and only adjusts the Media volume if the user happens to press

[android-developers] InetAdress bug or documentation ambiguity or some other explanation?

2010-12-27 Thread bc
I am stumped. InetAdress.isReachable simply does not work. By that I mean, it always returns false for an external host. I have tried searching the internet to see if anybody else is having the same problem, I have found a few people have had the same problem, but cannot really find an

Re: [android-developers] Re: Generating a unique widget ID

2010-12-27 Thread Kostya Vasilyev
For the case you're describing, it doesn't matter. RelativeLayout only looks at its own children when resolving id references. -- Kostya 27.12.2010 20:40, John Lussmyer ?: Yes, but that still doesn't assure that you won't collide with somebody elses custom view ID numbers. On Mon, Dec

Re: [android-developers] Forcing volume control to be for the Media volume in my app

2010-12-27 Thread Mark Murphy
On Mon, Dec 27, 2010 at 12:44 PM, John Lussmyer johnlussm...@gmail.com wrote: My app plays very short sounds frequently. I'd like the user to be able to use their normal volume controls to turn the volume up or down. The problem is that while my app is running, the volume control defaults to

[android-developers] Re: Generating a unique widget ID

2010-12-27 Thread Bret Foreman
The view ID is intended to be used inside the scope of an onClick() or some other onEvent() method. In that case, the onEvent method was set in the initialization for the widget, which will be unique to your widget. In other words, it's always one of your custom widgets. I wouldn't use a view ID

Re: [android-developers] Android random time delayed user abortable infinite loop

2010-12-27 Thread Ron Richmond
Hello and thanks for the reply, It's really the user abortable loop that I'm having trouble with now. Since first posting my problem, I have been researching code snippets and have zeroed in on this one: import java.util.Timer; import java.util.TimerTask; import android.app.Activity; import

Re: [android-developers] InetAdress bug or documentation ambiguity or some other explanation?

2010-12-27 Thread Mark Murphy
On Mon, Dec 27, 2010 at 12:46 PM, bc clarkbrianc...@gmail.com wrote: I am stumped. InetAdress.isReachable simply does not work. By that I mean, it always returns false for an external host. I have tried searching the internet to see if anybody else is having the same problem, I have found a

[android-developers] Re: Android random time delayed user abortable infinite loop

2010-12-27 Thread Bret Foreman
Well first, you need a call to finish() somewhere in order to exit the Activty. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

Re: [android-developers] InetAdress bug or documentation ambiguity or some other explanation?

2010-12-27 Thread Kostya Vasilyev
While I'm not necessarily more experienced with Android or perhaps a Google engineer It's kind of a weird call to begin with. On a mobile device (and not only) the network connection can go bad or completely disappear at any time. Even when this call properly works, it can't predict the

Re: [android-developers] Re: Android random time delayed user abortable infinite loop

2010-12-27 Thread Ron Richmond
Thank You, I will be working on my problem today as I was pulled away from it for a few days (Holidays!) Thanks again, I really appreciate any and all help!! Ron On Mon, Dec 27, 2010 at 1:02 PM, Bret Foreman bret.fore...@gmail.comwrote: Well first, you need a call to finish() somewhere in order

Re: [android-developers] Forcing volume control to be for the Media volume in my app

2010-12-27 Thread John Lussmyer
Thanks. Using: setVolumeControlStream(AudioManager.STREAM_MUSIC); did the trick. (Sure would be nice if the setVolumeControlStream() docs actually told you what the valid values are, or at least where to find them.) On Mon, Dec 27, 2010 at 9:49 AM, Mark Murphy

Re: [android-developers] Re: Generating a unique widget ID

2010-12-27 Thread John Lussmyer
Well, things just aren't quite working that way. I had 2 instances of my custom view (subclass of RelativeLayout) on screen. Each of these did have a unique ID number. When the children of my view all used the same set of ID numbers (900,901,902 for the 3 children of the custom view), then when

Re: [android-developers] Re: How to store date and time in database

2010-12-27 Thread Kristopher Micinski
Yes, This is why I included a link to the original SQLite reference in the links I previously provided :-). I agree with the long / string representation, but it's all just representation, each has its advantages / disadvantages, though for sorting and selection, this might be nice. I'm not an

Re: [android-developers] Re: store string array in database

2010-12-27 Thread Kristopher Micinski
Would JSON perhaps be a good solution for this? Kris Micinski On Mon, Dec 27, 2010 at 12:09 PM, Bret Foreman bret.fore...@gmail.com wrote: I would use an enum for the Weekdays like this enum Weekdays { SUNDAY , MONDAY, TUESDAY, ...} And then store the ordinal in the DB like this: int

Re: [android-developers] Re: store string array in database

2010-12-27 Thread Kristopher Micinski
You have seven days, is it horribly looked down upon to store a byte and just mask the bits? Probably so, but that's how I'd do it in C :-). Hopefully that doesn't store up too much excitement, kris On Mon, Dec 27, 2010 at 1:32 PM, Kristopher Micinski krismicin...@gmail.com wrote: Would JSON

Re: [android-developers] Re: How to store date and time in database

2010-12-27 Thread Kostya Vasilyev
It just all depends on the database. SQLite docs specifically says this: http://www.sqlite.org/datatype3.html SQLite does not have a storage class set aside for storing dates and/or times. Instead, the built-in Date And Time Functions of SQLite are capable of storing dates and times as TEXT,

Re: [android-developers] Re: Generating a unique widget ID

2010-12-27 Thread Dianne Hackborn
It will return the first it finds during a depth-first traversal of the hierarchy. The framework uses framework ids -- 0x01nn. It is up to you to generate unique id integers (if you aren't using @id/blah) however you would like, if needed. There is no requirement for ids to be unique in a

[android-developers] Re: InetAdress bug or documentation ambiguity or some other explanation?

2010-12-27 Thread bc
Thank you for the replies. Perhaps I should give a little background on this phenomena. A few years ago I created a free server monitor. The monitor has always had ping checks, port checks, and http(s) checks. I was doing ping checks via the isReachable method. I have never had issues with the

Re: [android-developers] Re: RemoteViews notification is not being displayed in notification window??

2010-12-27 Thread Dianne Hackborn
Buttons and other widgets inside of notifications aren't supported in the standard platform. If it happens to work on a particular device, that is an extra feature there but not something you can count on working elsewhere. On Dec 26, 2010 9:19 PM, mkmand manojk.mau...@gmail.com wrote: I am

Re: [android-developers] Re: RemoteViews notification is not being displayed in notification window??

2010-12-27 Thread Manoj Maurya
I understand that but custom expanded view is part of standard platform. What I fail to understand is that how it can be device dependant if OS is same? I am not getting any exception or error. Simply, click on buttons in side notifications is not working on few devices. It might be resolution

Re: [android-developers] Re: InetAdress bug or documentation ambiguity or some other explanation?

2010-12-27 Thread Mark Murphy
ICMP and Java have had a long and sordid history, IIRC. You might consider doing your own ping via the NDK. Personally, I would have the server monitor running on a server, and have the Android app only be a control panel/notification mechanism, but that's just me. On Mon, Dec 27, 2010 at 2:02

[android-developers] Re: Which JSON Parser is better

2010-12-27 Thread Rmac
Check out GSON... in version 1.6 there is a new very small streaming parser. On Dec 27, 1:11 am, ko5tik kpriblo...@yahoo.com wrote: On Dec 26, 7:18 pm, Jonathan Foley jonefo...@gmail.com wrote: Are you aware of the jackson JSON library, its very fast and has nice data binding APIs. Yes,

Re: [android-developers] Re: RemoteViews notification is not being displayed in notification window??

2010-12-27 Thread Dianne Hackborn
The expanded notification is standard. Being able to have clickable widgets inside is *not*. Just don't do that. It is not supported. Try it on the emulator. Does it work? If not, that is the expected behavior. On Dec 27, 2010 12:08 PM, Manoj Maurya manojk.mau...@gmail.com wrote: I

Re: [android-developers] Re: RemoteViews notification is not being displayed in notification window??

2010-12-27 Thread Manoj Maurya
Thanks for replying. Unfortunately, emulator is too slow to start n respond. So, I do use my phone for testing etc. Thanks Manoj Kumar Maurya The expanded notification is standard. Being able to have clickable widgets inside is *not*. Just don't do that. It is not supported. Try it on the

Re: [android-developers] Re: RemoteViews notification is not being displayed in notification window??

2010-12-27 Thread Stephen Lau
More than likely you're seeing something where a vendor (i.e. manufacturer or carrier) wanted that behaviour, and passed through click handling events from the expanded notification tray to the underlying notification, and thus its widgets. As Dianne mentioned, this isn't part of the standard

Re: [android-developers] Re: RemoteViews notification is not being displayed in notification window??

2010-12-27 Thread Stephen Lau
Slow maybe. Correct definitely. :) I don't use the emulator for day to day development, but I still run sanity checks against it for correctness to ensure my app runs on as many platforms as possible. The only time I've been bitten by this is when vendor customisations totally deviate from

Re: [android-developers] Re: RemoteViews notification is not being displayed in notification window??

2010-12-27 Thread Manoj Maurya
I appreciate your observation. Just to mention, it works on my HTC HD2 WITH froyo 2.2 build but not on mytouch and g2, tested so far. Thanks Manoj Kumar Maurya More than likely you're seeing something where a vendor (i.e. manufacturer or carrier) wanted that behaviour, and passed through click

Re: [android-developers] Re: RemoteViews notification is not being displayed in notification window??

2010-12-27 Thread Kostya Vasilyev
HTC is well known for heavily customizing Android for their phones. 27.12.2010 22:41, Manoj Maurya ?: I appreciate your observation. Just to mention, it works on my HTC HD2 WITH froyo 2.2 build but not on mytouch and g2, tested so far. Thanks Manoj Kumar Maurya More than likely you're

[android-developers] how to create irregular polygon and handle events within its boundary

2010-12-27 Thread Achie
How can we create polygons with shapes other than the normal regular rectangle/circle etc? I need to create a image with boundaries and let users click within the image. Then I need to highlight the image. I also need to highlight the image only when the user clicks within the boundaries of the

[android-developers] Re: Did sensor orientation change in SDK 2.3?

2010-12-27 Thread greg
posted to issue tracker at http://code.google.com/p/android/issues/detail?id=13450 On Dec 26, 9:17 am, greg sep...@eduneer.com wrote: I inserted a Log.d() in the ApiDemos/OS/Sensors application to confirm that the sensor data is inverted (not just the display of it) from SDK 2.2 to SDK 2.3.  

[android-developers] Uploading images to BLOBSTORE @ AppEngine

2010-12-27 Thread biokys
Hi, I am trying to figure out, how to simply send and store any images to GAE Blobstore from Android. Is it possible? Thank you Honza -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] how to create irregular polygon and handle events within its boundary

2010-12-27 Thread Frank Weiss
OK, so how hard was it to google android polygon? The tougher question may be do you already have the polygon as a vertex list or do you just have an image that has a polygon? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Cross Word Game

2010-12-27 Thread ko5tik
On Dec 27, 6:35 pm, Diego N. diegonunes.sist...@gmail.com wrote: I would like to develop a crossword puzzle game but never worked with game development. He wanted to know where to start. I will use Java 2D? I would recommend to stick to standard android widgets if you do not need realtime

[android-developers] Re: layout editor in 2.3 SDK sucks! Sorry but it does.

2010-12-27 Thread fala70
I hope soon, this version is very unusable. On 13 Dic, 09:03, Xavier Ducrohet x...@android.com wrote: there's no doc at the moment as it's very much a work in progress. That first version is quite rough, I'll admit (but has a few more features than the previous one). We're hoping to release

[android-developers] Re: how to create irregular polygon and handle events within its boundary

2010-12-27 Thread Achie
OK, so how hard was it to google android polygon? hmm its harder than just assuming that I did not do the same. I have been looking around for that since a couple of days. May be I am searching with the wrong terms. Still thank you for the reply. The results does not pull up what I am looking

[android-developers] Re: ClassNotFoundException crash reports from Market

2010-12-27 Thread Mark Wyszomierski
Anyone word on this from google? I am distributing a pretty popular app and this error has popped up a few hundred times now in the marketplace crash report. I can't really do anything for these users except ask them to run something like Log Collector but it's a slim chance they'll do that (no

[android-developers] Re: layout editor in 2.3 SDK sucks! Sorry but it does.

2010-12-27 Thread Tim H.
Preview 2 is much improved - being able to drag views up and down the list (and into child layouts) is great, no need for the up/down button now. Again, can still use some work, but it's getting back to the point where I am comfortable using drag and drop, but able to do things manually now.

  1   2   >