Re: [android-developers] Loading and Saving Settings to a file

2012-02-06 Thread John-Marc Desmarais
Hi, Thank you for your reply. I have a couple follow up comments/questions related to the responses. I have included these inline. On Mon, Feb 6, 2012 at 12:25 PM, TreKing treking...@gmail.com wrote: On Mon, Feb 6, 2012 at 11:15 AM, John-Marc Desmarais j...@ieee.org wrote: I have an Override

Re: [android-developers] Loading and Saving Settings to a file

2012-02-06 Thread John-Marc Desmarais
On Mon, Feb 6, 2012 at 12:56 PM, TreKing treking...@gmail.com wrote: On Mon, Feb 6, 2012 at 11:36 AM, John-Marc Desmarais j...@ieee.org wrote: How do I handle the byte[] settingsBuffer = new byte[(int) inputFile.length]; without opening a File? You get the stream of data as the returned

Re: [android-developers] Loading and Saving Settings to a file

2012-02-06 Thread John-Marc Desmarais
Yup. commit() still works as advertised. Thank you, -jm On Mon, Feb 6, 2012 at 1:19 PM, TreKing treking...@gmail.com wrote: On Mon, Feb 6, 2012 at 12:04 PM, John-Marc Desmarais j...@ieee.org wrote: And am now getting Input settings not found when closing and reopening my application

Re: [android-developers] NullPointerException error

2012-02-03 Thread John-Marc Desmarais
On Tue, Jan 31, 2012 at 6:37 AM, geo geoandr...@gmail.com wrote: Hello,i am getting error: Caused by: java.lang.NullPointerException E/AndroidRuntime(329):  at ...LineGraph.getIntent(LineGraph.java:109) E/AndroidRuntime(329):  at LineGraph.onCreate(LineGraph.java:80)

Re: [android-developers] Re: In-App Billing always fails with “Reason: Took too long to deliver”

2012-02-03 Thread John Coryat
Seeing that too on a couple of orders. Not a huge number though. A couple today. Bad deal that. I also see the same users trying again and hitting the same error. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

Re: [android-developers] Android app (.apk) x Web app (using WebView)?

2012-02-03 Thread John Coryat
with that interface, you might be in luck. Otherwise, it's going to be native coding for Android and iOS. Good luck! -John Coryat -- Science and Technology News Aggregator Twitter: http://twitter.com/coryat G+: http://www.usnaviguide.com/+ -- You received this message because you are subscribed

[android-developers] Re: WebView problem with youtube video

2012-02-02 Thread John Purcell
Danielle, If you look at the src (android-3.2.2_r2 is what I'm looking at), it's crashing in the custom view. Unless you've implemented the code I mentioned before, this will be the case. John On Jan 31, 3:42 pm, drenda daniele.re...@gmail.com wrote: Hi John, thanks for your replay. I'm

[android-developers] Tethering two android phones

2012-02-02 Thread John-Marc Desmarais
? Thanks, John-Marc Desmarais -- 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+unsubscr...@googlegroups.com

[android-developers] sqlite databases and non-rooted phones

2012-02-01 Thread John Davis
application privilege to perform sql queries on the live database but this does not work either. Any suggestions on how to work on the database on a non-rooted phone? I would prefer to use the database on the phone rather than on a pc. -- John F. Davis 独树一帜 -- You received this message because

Re: [android-developers] sqlite databases and non-rooted phones

2012-02-01 Thread John Davis
Hello Kostya Vasiyev, Many thanks. I see what you mean. I could add an import/export command to the app. And in the final release, simply remove the import/export capability. John On Wed, Feb 1, 2012 at 11:43 AM, Kostya Vasilyev kmans...@gmail.com wrote: On 02/01/2012 08:36 PM, John Davis

[android-developers] Re: Multiple APKs installed to the same location

2012-02-01 Thread John Coryat
Different APK's will have different package names and be installed in different directories, so in short, the answer is no. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android

[android-developers] Re: Multiple APKs installed to the same location

2012-02-01 Thread John Coryat
You're pretty much stuck sending a complete APK and dealing with additional features using switches inside the app itself. There may be other ways to handle this but I am unaware of them. -John Coryat -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: WebView problem with youtube video

2012-01-31 Thread John Purcell
In general, the loading of the URL should come last (right now you've got plugins and Javascript enabled messages being sent to the webcore after you send a url request). Is this on Honeycomb or ICS? (I'm guessing ICS due to the 'normal' errors you posted above). Keep in mind that video needs

Re: [android-developers] VideoView and buffering

2012-01-31 Thread John-Marc Desmarais
. Thanks for your help. -jm On Mon, Jan 30, 2012 at 11:16 AM, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: John-Marc, I have not done this myself, but here is tutorial on how to do it: http://blog.pocketjourney.com/2008/04/04/tutorial-custom-media-streaming-for-androids-mediaplayer

Re: [android-developers] VideoView and buffering

2012-01-31 Thread John-Marc Desmarais
...@gmail.com wrote: John-Marc, I am glad that it works. I am not sure whether prepareAsync would be quicker than blocking prepare call. I mean that whatever the system implementation of the player, preparing it takes the same amount of time and async call simply does not block, but if you call

[android-developers] still having problems with gridview and spacing.

2012-01-31 Thread John Davis
-issues.html -- John F. Davis 独树一帜 -- 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+unsubscr

[android-developers] Re: Javascript binding issues

2012-01-30 Thread John
and just directly adding to a couple of nodes? d.) Binding mouseup/down might be problematic with jQuery (due to multitouch, trackball, etc). John On Jan 29, 10:28 pm, Greg Donald gdon...@gmail.com wrote: I'm working up some new code that uses Javascript binding, described here: http

[android-developers] VideoView and buffering

2012-01-30 Thread John-Marc Desmarais
Hi, I am currently writing a video file to the SDCard while playing it with VideoView. My problem is that, if I buffer 1MB of video and begin the Video playback, the video stops after 1MB has been played, even though by this time, 5MBs of file has now been written to the sdcard. I have been

[android-developers] User Generated Content on Google Maps. Legality.

2012-01-30 Thread John
I am interested in creating an application that allows users to draw on top of google maps and then store the information on the local device. For example, create a line of their favorite hiking trail. I may also make a site (ala, http://scribblemaps.com/) that allows users to generate

[android-developers] Re: Javascript openDatabase callback never executes

2012-01-30 Thread John
Martin, The creation callback is only supported on ICS (it might be supported on Honeycomb, I never checked there). It's definitely not supported in the 2.x codebase. Cheers, John On Jan 29, 1:26 am, Martin warwo...@gmail.com wrote: Hi. I'm using the Database Storage API in a WebView

[android-developers] Re: Javascript openDatabase callback never executes

2012-01-30 Thread John Purcell
Also keep in mind that certain versions of Android you should/must give webkit a custom path for your databases (websettings.setDatabasePath(), et al), which can be set on a per view basis (unlike AppCache, which is a singleton per app). On Jan 29, 1:26 am, Martin warwo...@gmail.com wrote: Hi.

[android-developers] Re: What does 'light touch' mean in WebSettings?

2012-01-30 Thread John Purcell
I haven't used this personally myself, but the src points to supportTouchOnly in WebViewSettings turning off touch highlighting, etc in the WebView (look for what WebViewSettings.setLightTouchEnabled() actually mutates and work backwards). John On Jan 30, 1:53 am, Sungil holy.adrea...@gmail.com

[android-developers] Re: SQLiteDatabase.execSQL() not behaving as expected

2012-01-28 Thread John
is that the flash drive on most Android devices is abysmally slow and SQLite is constantly doing fsyncs (especially on ext3 devices). execSQL(PRAGMA synchronous=OFF); can give up to a 4x speed boost depending on the device, YMMV. John On Jan 27, 9:33 am, Robert Hawkey rhaw...@gmail.com wrote: Yes

[android-developers] gridview weirdness

2012-01-26 Thread John Davis
Hello I modified the hellogridview example so it has 5 colunns by changing the NumColunns property from auto_fit to 5. This is great, it gives me 5 columns, however it only gives me one row. How to set so it gives additional rows? -- John F. Davis 独树一帜 -- You received this message because

Re: [android-developers] gridview weirdness

2012-01-26 Thread John Davis
Many thanks. 2012/1/26 Mark Murphy mmur...@commonsware.com Give it an Adapter with more than five items. On Thu, Jan 26, 2012 at 10:59 AM, John Davis davi...@gmail.com wrote: Hello I modified the hellogridview example so it has 5 colunns by changing the NumColunns property from

[android-developers] any idea why this gridview has large vertical spacing between rows

2012-01-26 Thread John Davis
http://netskink.blogspot.com/2012/01/grid-view-notes.html -- John F. Davis 独树一帜 -- 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] any idea why this gridview has large vertical spacing between rows

2012-01-26 Thread John Davis
Hello Mark, You mentioned that tool before. I have yet to look it up. I assume this is the starter page for it http://developer.android.com/guide/developing/debugging/debugging-ui.html I'll look into it. Thanks man. John 2012/1/26 Mark Murphy mmur...@commonsware.com Use Hierarchy Viewer

[android-developers] Questions about Permission

2012-01-26 Thread john an
I am unfamilier with android and programming. I want to know about what each permission implies. I already found out the descriptions of them on the website of android developer, but it is really difficult for me to understand unfamiliar and expert words exactly. My ultimate purpose is to

[android-developers] Re: SQLiteDatabase.execSQL() not behaving as expected

2012-01-26 Thread John
It's because of the use of the TEMPORARY TABLE clause I think. # MATCH clause variance http://www.sqlite.org/fts3.html # iOS sqlite support http://stackoverflow.com/questions/3142575/iphone-ios-2-0-to-ios-4-0-sqlite-compatibility # Android sqlite support

[android-developers] Re: SQLiteDatabase.execSQL() not behaving as expected

2012-01-26 Thread John
Oh and from the same session: sqlite sqlite CREATE VIRTUAL TABLE pages USING fts4(title, body); SQL error: no such module: fts4SQL error: near sqlite: syntax error sqlite On Jan 26, 3:15 pm, Robert Hawkey rhaw...@gmail.com wrote: SQlite supports FTS3 and FTS4 (full text searching).  I've seen

[android-developers] custom ui widgets?

2012-01-25 Thread John Davis
a component with three lines of text with two font sizes. Any suggestions on what I should do? -- John F. Davis 独树一帜 -- 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

Re: [android-developers] custom ui widgets?

2012-01-25 Thread John Davis
Hello TreKing, Thank you. I'll look into that. FWIW, I've gotten some other suggestions off list. It appears that I will need to learn gridview. Possibly the solution to my problem is a custom component consisting of a GridView with three textviews. Does that seem right to you? John On Wed

Re: [android-developers] custom ui widgets?

2012-01-25 Thread John Davis
Hello TreKing, Yes, the diagonal placement might not work with the gridview, but I can adjust my goal to fit the gridview. Very true about many viable ways. I'm just trying to get a rough heading from the established guide before I head out into the wilderness. John On Wed, Jan 25, 2012 at 9

[android-developers] VideoView.setLayoutParams - ClassCastException

2012-01-25 Thread John-Marc Desmarais
Hi, I have a VideoView in a LinearLayout with 2 other boxes. In trying to create a full screen video, I am doing the following: private boolean isFullScreen = false; public void onClick(View v) { VideoView vv = (VideoView) v.findViewById(R.id.videoView1);

Re: [android-developers] VideoView.setLayoutParams - ClassCastException

2012-01-25 Thread John-Marc Desmarais
That is a very good point. Thanks. -jm On Wed, Jan 25, 2012 at 2:33 PM, TreKing treking...@gmail.com wrote: On Wed, Jan 25, 2012 at 1:25 PM, John-Marc Desmarais j...@ieee.org wrote: Can anyone suggest why this is the case? This is your code: (LinearLayout.LayoutParams)vv.getLayoutParams

[android-developers] Re: Another free lunch tomorrow for SF devs, from Flurry

2012-01-24 Thread John Coryat
There's no such thing as a free lunch! -- 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: Two webview windows in one app

2012-01-23 Thread John
Completely possible, though keep in mind that due to the design of the WebKit/Android integration some things are shared app wide (http cache, AppCache, android.net.http.* RequestQueue stack, etc). On Jan 23, 6:51 am, Mark Murphy mmur...@commonsware.com wrote: On Fri, Jan 20, 2012 at 9:18 PM,

Re: [android-developers] How can use node.js in android

2012-01-23 Thread John Coryat
He might be asking if he can use node.js within a webview... That would be applicable to this group. -John Coryat -- 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

RE: [android-developers] ScrollView (fill_parent)

2012-01-22 Thread John
) On Sun, Jan 22, 2012 at 12:55 AM, John j...@julientech.com wrote: the LinearLayout does not appear to be filling the height of the parent. Does anyone know why this might be? I think ... if the parent is a ScrollView, it will only fill up as much as is needed. If it's more than is available

RE: [android-developers] ScrollView (fill_parent)

2012-01-22 Thread John
in a vertical linear layout. You can use layout_weight on the table layout, or replace linear layout with relative layout, using android:layout_alignParentBottom and android:layout_above on its children. -- K 22 января 2012 г. 10:55 пользователь John j...@julientech.com написал: Hi, I have a scroll view

Re: [android-developers] Database Access from Android Application

2012-01-22 Thread John Julien
What would be the preferred way of storing a database on a server to allow dynamic changes to data? On Jan 22, 2012, at 6:16 AM, Mark Murphy mmur...@commonsware.com wrote: On Sun, Jan 22, 2012 at 3:51 AM, Matt Clark mrclark32...@gmail.com wrote: Is there some kind of SQL library that i could

[android-developers] ScrollView (fill_parent)

2012-01-21 Thread John
of the parent. Does anyone know why this might be? Thanks, John -- 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

Re: [android-developers] again: App Engine connected *Android* project: someone please help me understand this code

2012-01-18 Thread John Goche
On Wed, Jan 18, 2012 at 2:21 AM, Nikolay Elenkov nikolay.elen...@gmail.comwrote: On Wed, Jan 18, 2012 at 7:00 AM, John Goche johngoch...@googlemail.com wrote: In AccountsActivity.java we have methods getAuthToken() and getAuthCookie(). Basically the AccountManager takes care of storing

Re: [android-developers] Lots of Cancelled by Google - Payment declined from one person

2012-01-18 Thread John Coryat
I've seen the multiple cancel lots of times. I've also seen many double payments. Has anyone else seen double payments? Those are of greater concern to me than cancels. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group

Re: [android-developers] Lots of Cancelled by Google - Payment declined from one person

2012-01-18 Thread John Coryat
so I'm guessing it's probably due to either Google doubling the charge or the API not kicking back the notification to the app in a timely fashion. I've asked a few times what happened to people who have been double charged and never had a response so I am in the dark. -John Coryat -- You

[android-developers] app engine debugging

2012-01-17 Thread John Goche
Hello, I would like to know what the best way is to debug an app engine application. The problem I am experiencing is that I cannot step through the code in Jetty nor can I find a log where I can see what exceptions are thrown. Any ideas on how to proceed would be very appreciated. John Goche

[android-developers] again: App Engine connected *Android* project: someone please help me understand this code

2012-01-17 Thread John Goche
the code so that I may adapt it to my own use case. Thanks a lot, John Goche -- 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

[android-developers] AsyncTask never calls onProgressUpdate

2012-01-16 Thread John-Marc Desmarais
Hi, I have the following AsynchTask class but, it fails to execute the onProgressUpdate method when doInBackground is running. That is to say the Log.v(LogName.onProgressUpdate, LogName.onProgressUpdate) never occurs in LogCat. There are two calls to publishProgress. The first is after the

Re: [android-developers] Re: AsyncTask never calls onProgressUpdate

2012-01-16 Thread John-Marc Desmarais
Hi, The authenticate method takes a long time, and I want to update progress while that's happening like this: Authenticating . Authenticating . . Authenticating . . . Authenticating . . . . Authenticating So I created a thread to add a dot to my TextView every 1/4 second. Mark Murphy's

Re: [android-developers] Re: AsyncTask never calls onProgressUpdate

2012-01-16 Thread John-Marc Desmarais
How do I pass my Dialog to onPreExecute? -jm 2012/1/16 Kostya Vasilyev kmans...@gmail.com: ... and this: textViewAuthenticating = (TextView) dialog.findViewById(R.id.TextViewAuthentication); belongs in onPreExecute, or elsewhere on the UI thread, *not* in doInBackground. 16 января 2012 

[android-developers] android and XML

2012-01-15 Thread John Goche
, John Goche -- 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+unsubscr...@googlegroups.com For more options

Re: [android-developers] android and XML

2012-01-15 Thread John Goche
processing the file? If not, then you may want to rethink what you are asking about. Well, my XML files are going to be varied but small in size, so memory shouldn't be a problem. I was wondering about the availability of good tutorials on Java XML DOM though. Regards, John Goche -- You

Re: [android-developers] android and XML

2012-01-15 Thread John Goche
://www.amazon.com/Beginning-Java-7-Apress/dp/1430239093/ref=sr_1_7?ie=UTF8qid=1326650427sr=8-7 even though android AFAIK uses Java 6 this reference should be good enough for my purposes. Regards, John Goche -- You received this message because you are subscribed to the Google Groups Android Developers group

Re: [android-developers] android and XML

2012-01-15 Thread John Goche
guess that would be another alternative, which, presumably, being part of java 6 also works on android? Regards, John Goche -- 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

[android-developers] Re: Order numbering system changed in the market

2012-01-13 Thread John Coryat
Update... I replied to Komal the following: *Komal,* * * *P L E A S E R E A D M Y E N T I R E R E P O R T B E F O R E R E P L Y I N G !!!* * * *snipped* * * *-John Coryat* * * I got a reply today: *Hello John, Thanks for reaching out to us. To ensure a faster resolution, I’ve

[android-developers] Re: Order numbering system changed in the market

2012-01-12 Thread John Coryat
Update... Got a response from the market support team. I'm not surprised they didn't bother to actually read my report and just sent a canned response: *Hello John, Thanks for your email. I suggest that you have the buyer write to our buyer support specialist at http://www.google.com/support

[android-developers] Order numbering system changed in the market

2012-01-11 Thread John Coryat
) pass the original Google Order Id to the user. Has anyone else seen this problem? -John Coryat -- 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

Re: [android-developers] Re: Giving away my book: Genius Android Marketing

2012-01-10 Thread John-Marc Desmarais
I'll play. Sign me up. -jm On Mon, Jan 9, 2012 at 3:45 PM, YuviDroid yuvidr...@gmail.com wrote: Looks very interesting! Count me in!  :) Yuvi On Mon, Jan 9, 2012 at 6:04 PM, PhotoSteve dfwgoph...@gmail.com wrote: Add me too...I'm so new to Android I don't even know what I don't know

[android-developers] Add Native Support not found in Eclipse

2012-01-10 Thread John-Marc Desmarais
Hi, Can anyone help getting Android Tools - Add Native Support to show up in Eclipse? Eclipse Version: Eclipse IDE for C/C++ Developers Version: Indigo Service Release 1 Build id: 20110916-0149 My system path includes C:\Android\android-ndk-r7 Running Windows 7. I have no problems building

Re: [android-developers] Re: Add Native Support not found in Eclipse

2012-01-10 Thread John-Marc Desmarais
Hi, Thanks for your help. I installed Sequoya and MTJ but, I still have no Add Native Support under Android Tools. I have also tried installing android-ndk-r6b and having C:\android\android-ndk-r6b in the path. But, currently, I have C:\android\android-ndk-r7 installed and in the system path.

[android-developers] ListActivity and Email Link

2012-01-10 Thread John
Anyon know why when I have an email address linked in a ListActivity my onItemClickListener doesn't work? To link the email I'm using a TextView with autoLink=email Thanks, John -- You received this message because you are subscribed to the Google Groups Android Developers group

[android-developers] C2DM sample code: unable to deploy

2012-01-09 Thread John Goche
Hello, Has anyone been able to deploy an android C2DM web application as generated from eclipse? I am getting the following error during deployment: - Unable to update:

[android-developers] C2DM: cannot register account on emulator

2012-01-09 Thread John Goche
to open connection to server. I entered my username and password under Add an Exchange account. I am using the 2.3.3 emulator (which is post 2.2 hence should work, but does not). Thanks, John Goche -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: newbie: error deploying C2DM web application

2012-01-09 Thread John Goche
with the server. Still cannot get the emulator to work though. I had to C2DM from a physical phone. Regards, John Goche On Mon, Jan 9, 2012 at 4:17 PM, John Goche johngoch...@googlemail.comwrote: Hello, I have created and registered an application by the imaginative name called FooBarAkAFoobar. I

[android-developers] shared folders in eclipse

2012-01-09 Thread John Goche
a library, is that the way? Exactly what are the required steps to achieve the desired effect? Best Regards, John Goche -- 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

Re: [android-developers] Google App Engine and Users API and android

2012-01-08 Thread John Goche
sincerely appreciated, I'm really stuck on this one. Regards, John Goche -- 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

Re: [android-developers] Google App Engine and Users API and android

2012-01-08 Thread John Goche
On Sun, Jan 8, 2012 at 3:20 PM, Nikolay Elenkov nikolay.elen...@gmail.comwrote: On Sun, Jan 8, 2012 at 9:24 PM, John Goche johngoch...@googlemail.com wrote: Hello, I am still trying to authenticate to app engine using google accounts and would like to figure out the details of how

Re: [android-developers] Google App Engine and Users API and android

2012-01-08 Thread John Goche
the following URLs out of the video (shown towards the end): http://bigdaddy-io.appspot.com/ http://code.google.com/p/cloud-tasks-io http://cloudtasks-io.appspot.com/ http://cloudtasksio.appspot.com/ I'm going to have a look at these too, Regards, John Goche On Sun, Jan 8, 2012 at 5:38 PM

Re: [android-developers] Google App Engine and Users API and android

2012-01-08 Thread John Goche
accounts authentication method is not mentioned on the following page: http://code.google.com/apis/accounts/docs/GettingStarted.html Regards, John Goche -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android

[android-developers] AERC library: questions

2012-01-08 Thread John Goche
Hello, I am trying to follow the code from http://www.tbray.org/ongoing/When/201x/2011/09/29/AERC I have obtained the library with: $ git clone http://code.google.com/p/aerc/ but I cannot make out what the difference is between the following two variables: App.ROOT_URI App.ROOT_URI and

[android-developers] Re: Gallery Intent to pick image --- Picasa-based images are invalid (Android 4.0+)

2012-01-08 Thread John
I can confirm having this same bug only with picasa images on Honeycomb and ICS. Code: file = new File(getPath(intent.getData())); java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://

[android-developers] Newbie questions about best practices

2012-01-08 Thread John
I am kinda new to this all and have a question or two about the proper way to do some things when designing an app. my first question is, is it okay to use the built in SQLite database for an app? i ask this because it seems as if the database is supposed to be used for the operating system data

Re: [android-developers] Google App Engine and Users API and android

2012-01-08 Thread John Goche
On Sat, Jan 7, 2012 at 6:04 PM, John Goche johngoch...@googlemail.comwrote: Hi Nikolay, On Sat, Jan 7, 2012 at 5:39 PM, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Sun, Jan 8, 2012 at 1:32 AM, John Goche johngoch...@googlemail.com wrote: Now that you have mentioned

[android-developers] Google App Engine and Users API and android

2012-01-07 Thread John Goche
somewhat lost because all the examples I am finding are not android specific. Thanks, John Goche -- 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

Re: [android-developers] Google App Engine and Users API and android

2012-01-07 Thread John Goche
On Sat, Jan 7, 2012 at 5:14 PM, Nikolay Elenkov nikolay.elen...@gmail.comwrote: On Sun, Jan 8, 2012 at 1:08 AM, John Goche johngoch...@googlemail.com wrote: I am using google App Engine. I need my users to authenticate prior to being able to access the JDO objects on my servlet. Once

Re: [android-developers] Google App Engine and Users API and android

2012-01-07 Thread John Goche
Hi Nikolay, On Sat, Jan 7, 2012 at 5:39 PM, Nikolay Elenkov nikolay.elen...@gmail.comwrote: On Sun, Jan 8, 2012 at 1:32 AM, John Goche johngoch...@googlemail.com wrote: Now that you have mentioned AccountManager I have found the following site: http://gnuc.in/resources/archives/1404

[android-developers] listview with distinct colors for each row SOLVED

2012-01-06 Thread John Davis
faction; private static String TAG = CompanionName; public CompanionName() { Log.d(TAG, constructor hit); name = not specified; faction = not specified; } public String toString() { return name; } } -- John F. Davis 独树一帜 -- You received this message because you are subscribed to the Google

[android-developers] Re: How to set compass needle in true north direction or magnetic north direction?

2012-01-06 Thread John Coryat
http://en.wikipedia.org/wiki/Magnetic_declination -- 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: Android development and PhoneGap

2012-01-06 Thread John Coryat
There are quite a few developers using Phonegap. One, I know of is Pamela Fox, formally a Google Maps developer relations engineer. Here's a link to her app: https://market.android.com/details?id=io.everyday.app -John Coryat -- You received this message because you are subscribed

[android-developers] setRequetProperty seems to change the case of the Field string to lowercase on pre 2.3 Android devices

2012-01-06 Thread John Gaby
I am having a problem with setRequestProperty on pre 2.3 versions of Android. I am trying to implement an OAuth2 protocol to connect to a website (which is not under my control), and it requires the header field 'Authorization' to have the first letter capitalized. Since setRequestProperty is

[android-developers] is it possible to set text color for individual items in a list view?

2012-01-05 Thread John Davis
Hello I have a listview with items in it. I would like to set certain line items to be a certain color. Is this possible? -- John F. Davis 独树一帜 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

Re: [android-developers] is it possible to set text color for individual items in a list view?

2012-01-05 Thread John Davis
, 2012 at 9:59 AM, Mark Murphy mmur...@commonsware.com wrote: On Thu, Jan 5, 2012 at 9:50 AM, John Davis davi...@gmail.com wrote: I have a listview with items in it.  I would like to set certain line items to be a certain color.  Is this possible? Override getView() of your ArrayAdapter

Re: [android-developers] is it possible to set text color for individual items in a list view?

2012-01-05 Thread John Davis
Hmm. Ok, I maybe over my head. I guess the first thing to do is subclass array adapter as you said first so I can override its getView call. -- 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] is it possible to set text color for individual items in a list view?

2012-01-05 Thread John Davis
of overriding getView for a bit. John On Thu, Jan 5, 2012 at 10:26 AM, Mark Murphy mmur...@commonsware.com wrote: On Thu, Jan 5, 2012 at 10:19 AM, John Davis davi...@gmail.com wrote: Ok, I maybe over my head. I guess the first thing to do is subclass array adapter as you said first so I can

Re: [android-developers] is it possible to set text color for individual items in a list view?

2012-01-05 Thread John Davis
); return super.getView(position, convertView, parent); } The result from hacking around is that the list has invisible values. I guess its time to look at your pdf. lol John 2012/1/5 John Davis davi...@gmail.com: Hello Mark, Ok. Thanks. I've managed to create my own MyAdapter

Re: [android-developers] is it possible to set text color for individual items in a list view?

2012-01-05 Thread John Davis
I changed the getview code so it only calls the super code once and returns the rowView as you did. public class MyAdapterT extends ArrayAdapterT {        public MyAdapter(Context context, int textViewResourceId, T[] objects) {                super(context, textViewResourceId, objects);  

Re: [android-developers] is it possible to set text color for individual items in a list view?

2012-01-05 Thread John Davis
).setTextColor(0x64788e); rowView.setBackgroundColor(0x64788e); return rowView; } On Thu, Jan 5, 2012 at 10:57 AM, John Davis davi...@gmail.com wrote: I changed the getview code so it only calls the super code once and returns the rowView as you did. public

Re: [android-developers] is it possible to set text color for individual items in a list view?

2012-01-05 Thread John Davis
-ui.html On Thu, Jan 5, 2012 at 10:57 AM, John Davis davi...@gmail.com wrote: I changed the getview code so it only calls the super code once and returns the rowView as you did. public class MyAdapterT extends ArrayAdapterT { public MyAdapter(Context context, int textViewResourceId, T

[android-developers] Is there a docment on getView()?

2012-01-05 Thread John Davis
for the individual row items. Here, I tried to use the resource id of the list itself. There is not a View.getChild() like call. -- John F. Davis 独树一帜 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android

Re: [android-developers] Is there a docment on getView()?

2012-01-05 Thread John Davis
items since they are not defined. -- Kostya 5 января 2012 г. 20:31 пользователь John Davis davi...@gmail.com написал: Hello The getView() call for arrayadapter is blank.  Is there a document which describes how it works? I have overridden it in order to change the text color of items

Re: [android-developers] Is there a docment on getView()?

2012-01-05 Thread John Davis
Hello I don't have resource id's for the individual row items. You should, it's your project. Super. That might help, but this example http://developer.android.com/resources/tutorials/views/hello-listview.html does not use id's for the individual list items. How would I do that? John

Re: [android-developers] Is there a docment on getView()?

2012-01-05 Thread John Davis
to do. I don't understand why the hooks do not exist for what i want to do. -- Kostya 5 января 2012 г. 20:47 пользователь John Davis davi...@gmail.com написал: Hello Kostya, Thanks for the reply. On Thu, Jan 5, 2012 at 11:39 AM, Kostya Vasilyev kmans...@gmail.com wrote: 2: Yes, you're

Re: [android-developers] Is there a docment on getView()?

2012-01-05 Thread John Davis
the array adapter and list view set the tag for the color and the array adapter to draw the line items in blue or red based upon this tag. John On Thu, Jan 5, 2012 at 12:13 PM, Kostya Vasilyev kmans...@gmail.com wrote: Aha! android.R.layout.simple_list_item_1 is defined in the platform, you can

[android-developers] is this a bug

2012-01-05 Thread John Davis
A listview says there are 6 items in the list. ie. count = 6 Yet, you can not get the items for (int i=0;inumRows;i++) { count = theList.getCount(); // returns 6 fooView = (View) theList.getItemAtPosition(i); // raises exception -- John F. Davis 独树

Re: [android-developers] Is there a docment on getView()?

2012-01-05 Thread John Davis
пользователь John Davis davi...@gmail.com написал: Kostya, Tip of the hat to you.  That worked.  It will set all the items to blue text. I appreciate your help a lot. Now, is there a simple way to do this selectively?  I saw you could tag items and then look based upon a tag.  Perhaps

Re: [android-developers] is this a bug

2012-01-05 Thread John Davis
PM, John Davis davi...@gmail.com wrote: fooView = (View) theList.getItemAtPosition(i); // raises exception The exception would be? The stack trace would be? - TreKing - Chicago transit tracking

Re: [android-developers] Is there a docment on getView()?

2012-01-05 Thread John Davis
Yes, I would think it is possible, but not in this version. Its possible to set all line items to the same value. However, its not possible to set the colors on a case by case value using the provided api. This code will set all the line items to blue: public View getView(int position,

Re: [android-developers] is this a bug

2012-01-05 Thread John Davis
this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- John F. Davis 独树一帜 -- You received this message because you are subscribed to the Google Groups Android Developers group

Re: [android-developers] Is there a docment on getView()?

2012-01-05 Thread John Davis
the decision in some other way. -- Kostya 5 января 2012 г. 23:07 пользователь John Davis davi...@gmail.com написал: Yes, I would think it is possible, but not in this version. Its possible to set all line items to the same value.  However, its not possible to set the colors on a case by case value

Re: [android-developers] Is there a docment on getView()?

2012-01-05 Thread John Davis
Hello Treking, On Thu, Jan 5, 2012 at 2:17 PM, TreKing treking...@gmail.com wrote: On Thu, Jan 5, 2012 at 1:07 PM, John Davis davi...@gmail.com wrote: Yes, I would think it is possible, but not in this version. Its possible to set all line items to the same value. However, its not possible

<    2   3   4   5   6   7   8   9   10   11   >