[android-developers] Upgrades and fixes to my Android OAuth app (BLOA)

2013-04-16 Thread Brion Emde
This last weekend I fixed the problems with my Android OAuth application (poorly) named Brion Learns OAuth (BLOA) I just posted a video showing the outcome running on three different versions of the OS: 1.6, 2.3.3 and 4.2.2 (latest) The video is at:

[android-developers] Re: How to specify an IntentFilter that only activates when the Intent comes from within my own app?

2013-01-13 Thread Brion Emde
Another way would be to use a custom Mime type for your data, instead of text/plain, and only your IntentFilter services that type. I like the exported=false solution better though. On Saturday, January 12, 2013 9:38:25 PM UTC-8, William Ferguson wrote: I have an Activity that responds to

[android-developers] Re: How to read data off a website into an Android app

2011-11-12 Thread Brion Emde
Take a look at the WebView sample here: http://developer.android.com/resources/tutorials/views/index.html On Nov 11, 6:06 am, Jungle Jim jjjungle...@gmail.com wrote: I need to write an android app that will read data off a webpage and then display it in an activity in my app. Unfortunately, I

[android-developers] Re: Thresholding a Bitmap

2011-11-12 Thread Brion Emde
Take a look at the ZXing library. They use a monochrome bitmap class that is the basis of the barcode scanning, and the algorithms to turn photo bitmaps into the monochrome form. Using that might help you. http://code.google.com/p/zxing/ On Nov 11, 12:13 am, melakamc melak...@gmail.com wrote:

[android-developers] Re: Parsing JSON from Grails application

2011-11-10 Thread Brion Emde
When I've used a Rails application to talk to my Android application, I've done it by implementing a RESTful interface to the web application on the RAILs server, then implement calls to the RESTful interface via HTTP. You can see a guy talk about such a thing in this video from Google IO 2010:

[android-developers] Re: Application with Hardware Acceleration, hardware layers, and rotated ImageViews is causing jaggies.

2011-04-27 Thread Brion Emde
Hi Romain, I'm having the same problem, and I don't really understand what you're talking about with layer on and layer off. Could you explain that a bit more, so I can get a better hold on this whole problem? Thanks, Brion Emde On Apr 26, 4:51 pm, Romain Guy romain...@android.com wrote

[android-developers] ActionBar problems

2011-03-24 Thread Brion Emde
Hi All, We're trying to use ActionBars on Honeycomb and stay backward compatible with earlier code. Everything seemed to be fine when we just used the default behaviors, like the upgrade of options menus to show in the action bar as Actions. But then the requirements got broader and they wanted

[android-developers] Re: Using AndroidHTTPClient

2010-12-15 Thread Brion Emde
You might gain some good ideas from watching the RESTful application development video from this year's GoogleIO conference: http://www.google.com/events/io/2010/sessions/developing-RESTful-android-apps.html I found it fascinating. On Dec 15, 4:28 am, flipside flipside...@gmail.com wrote: I'm

[android-developers] Updating Pre-Installed or Built-In Apps

2010-12-15 Thread Brion Emde
I posted this late last Friday, so maybe no one saw it. I thought I'd give it one more try: - My employer has a customer with the good fortune of having products that will be shipped with some OEM devices. This has raised some questions about updating the application

[android-developers] Re: Concern on AsyncTask in an Activity

2010-12-13 Thread Brion Emde
One way to do this is to have the AsyncTask keep WeakReference references to the view components that it wants to update. Then, if it cannot get the soft reference to resolve, it just can exit without changing anything. I've done this using AsycQueryHandler, but I don't see why it shouldn't work

[android-developers] Questions about Updating of Pre-Installed or Built-In Apps

2010-12-10 Thread Brion Emde
My employer has a customer with the good fortune of having products that will be shipped with some OEM devices. This has raised some questions about updating the application that, despite having researched this subject on this group and in some others, we are still unsure about. 1) It appears

[android-developers] Re: Listview array adapter gives me Null pointer exception.

2010-12-02 Thread Brion Emde
You still have a bug in your code. The convertView variable may contain a recycled view, as described in the documentation. You are inflating a view every time, even when convertView is non-null. Please review the documentation for the ArrayAdapter and only inflate a new view when convertView ==

[android-developers] Re: Anyone have an experience dealing with Ubinuri?

2010-11-09 Thread Brion Emde
I have no updates, Greg. I haven't heard a thing about how things are going and haven't seen any sales proceeds. Still basking in the glow of that $280, though :-) On Nov 9, 8:54 pm, Greg gdub...@yahoo.com wrote: Brion, Could you please post any sales updates since your app has been listed?  

[android-developers] Re: Anyone have an experience dealing with Ubinuri?

2010-11-05 Thread Brion Emde
I did the Ubinuri thing. It involved adding their Application Rights Management (ARM) to my paid app. That was really straightforward, after a bit of going around trying to find the developer's key that they had sent me in their initial reply to my statement of interest. For some reason they could

[android-developers] Re: integrate twitter in my app

2010-11-04 Thread Brion Emde
I have a crappy example app that gives an approach to using OAUTH to log into Twitter. It's open-source, on GitHub. The OAUTH part isn't too bad. The rest of it is not something that you should rely on. It lets you display your main timeline and post tweets. I've just never gotten around to fixing

[android-developers] Re: Service onCreate is asynchronous

2010-11-03 Thread Brion Emde
This result might (I'm speculating) be because the onCreate() methods of the Activity and the Service are guaranteed to complete in their lifecycle. So maybe Android only lets one of them run at a time? This is very true. Since the Service runs in the UI thread, along with the Activity, all

[android-developers] Re: Hello android

2010-10-10 Thread Brion Emde
That sounds like your emulator has not completely started up. When you start an emulator the very first time, it can take a very long time to completely initialize. On Oct 9, 1:39 pm, Lahoucine MOUDNI l.mou...@gmail.com wrote: Hello everybody Im a beginner in Android platform, i read docs

[android-developers] Re: TableLayout and displaying Database data

2010-10-08 Thread Brion Emde
I suggest you start by looking at the Notepad sample, included in the SDK in the samples directory. That shows how to do a query and display the result in a list view. The code can also be found in the developer's page: http://developer.android.com/resources/samples/NotePad/index.html Since you

[android-developers] Re: Launching application in Market

2010-09-30 Thread Brion Emde
I created a blog on blogspot.com and write about my apps there and embed screencast video demonstrations, and stuff like that. Then I put the address of the blog in field on the Marketplace. On Sep 30, 3:13 am, pramod.deore deore.pramo...@gmail.com wrote: Hi, I want to launch my application

[android-developers] Re: Simple Context Menus

2010-09-24 Thread Brion Emde
You should look at the Context menu examples in this article: http://developer.android.com/guide/topics/ui/menus.html You are setting up an Options menu, not a context menu. On Sep 23, 7:40 pm, rb rbs...@gmail.com wrote: Hi, I am attempting to create a simple context menu that will show

[android-developers] Re: ExpandableListView question

2010-09-21 Thread Brion Emde
I'm interested in this discussion also. I had this exact problem and put it on hold for a while with a workaround. I decided that I would probably need a child view that is a superset of all the desired group views and that I would set the visibility of the child view components as I determined

[android-developers] Re: How to set permission in content providers

2010-09-21 Thread Brion Emde
I believe that both applications will need to declare that they use those permissions, in their uses-permission / part of the manifest. My app declares its own permissions for read/write in the ContentProvider and the permissions appear in three places: the declaration of the permissions; the

[android-developers] Re: Apps running cuncurrently

2010-09-21 Thread Brion Emde
Yes, that is exactly what it means. From the user's perspective, nothing has happened: when they come back to app #1, it has been restarted, has restored its state and things look exactly like they did when the user was there before. If you want to notify the user somehow, you would do that in

[android-developers] Re: Apps running cuncurrently

2010-09-21 Thread Brion Emde
will now be a saved draft, a moves-based game will be exactly as before,  but a half filled web form night just be gone. On Sep 21, 8:32 am, Brion Emde brione2...@gmail.com wrote: Yes, that is exactly what it means. From the user's perspective, nothing has happened: when they come back

[android-developers] Re: How much money do you make?

2010-09-21 Thread Brion Emde
BPTracker v1.2.5 Applications: Health (2) Comments 51 total 30 active installs (58%) $1.00 Errors Published BPTracker Free v1.2.5 Applications: Health (18) Comments 3388 total 1042 active installs (30%) Free Errors Published On Sep 21, 3:06 pm, Agus agus.sant...@gmail.com wrote: @JonFHancock

[android-developers] Re: How much money do you make?

2010-09-21 Thread Brion Emde
BPTracker v1.2.5 Applications: Health (2) Comments 51 total 30 active installs (58%) $1.00 Errors Published BPTracker Free v1.2.5 Applications: Health (18) Comments 3388 total 1042 active installs (30%) Free Errors Published -- You received this message because you are subscribed to the Google

[android-developers] Re: ContentProvider blank screen

2010-09-17 Thread Brion Emde
be highly appreciated. Many thanks On Sep 16, 5:56 pm, Brion Emde brione2...@gmail.com wrote: You should perhaps kick off an IntentService or a Service with an AsyncTask that reads your data files and updates the ContentProvider in the background. Then you could publish your progress via

[android-developers] Re: ContentProvider blank screen

2010-09-16 Thread Brion Emde
You should perhaps kick off an IntentService or a Service with an AsyncTask that reads your data files and updates the ContentProvider in the background. Then you could publish your progress via the AsyncTask's methods for doing that. On Sep 16, 12:03 pm, netlander merid...@gmail.com wrote: Hi,

[android-developers] Re: Best Practice for additional content delivery and add-ons

2010-09-14 Thread Brion Emde
, Sep 13, 2010 at 1:03 PM, Brion Emde brione2...@gmail.com wrote: I'd guess that if you used HttpClient-related protocols running in an Android Service and talking to a RESTful web application running on a server somewhere, you could pretty easily populate a ContentProvider- backed database

[android-developers] Re: Marshalling web service data to the UI

2010-09-14 Thread Brion Emde
Also, this video from this year's Google IO about using RESTful Services with Android is excellent and may give you some ideas: http://code.google.com/events/io/2010/sessions/developing-RESTful-android-apps.html On Sep 14, 11:08 am, Bret Foreman bret.fore...@gmail.com wrote: I'm stuck on a

[android-developers] Re: ContentObserver not working

2010-09-13 Thread Brion Emde
From my limited usage of ContentObserver, it is used to determine when a single record of the database changes. If you want to observe many records, I believe that you need to use a DataSetObserver. Look at the source code for how SimpleCursorAdapter uses them. I'd be interested in clarification,

[android-developers] Re: Best Practice for additional content delivery and add-ons

2010-09-13 Thread Brion Emde
Since you don't say how these extra levels are delivered, or what they are, or how they are save in your game, I'll just speculate for you. I'd guess that if you used HttpClient-related protocols running in an Android Service and talking to a RESTful web application running on a server somewhere,

[android-developers] Re: UriMatcher match not working properly

2010-09-09 Thread Brion Emde
You should not hijack existing threads with new questions that do not correspond to the original thread. That makes it very difficult for people to find the original thread. Instead, you should start a new thread with your question. That said, I see that the value of the AUTHORITY that you

[android-developers] Re: Lat Long value using zip code or city name

2010-09-08 Thread Brion Emde
The special Google intents in this article will bring up a map of a named city or street address, or a StreetView. Zip codes probably work also. http://developer.android.com/guide/appendix/g-app-intents.html On Sep 8, 9:07 am, cool.manish mannishga...@gmail.com wrote: Hi All, Is there any

[android-developers] Re: EditText field not update, how to do this?

2010-09-01 Thread Brion Emde
You should update the value of you EditText in onResume(), which you don't seem to have right now. That is called when your activity returns to the foreground. At that point you should have your new value and you just do a setText() on the EditText to display the new value. On Sep 1, 6:49 am,

[android-developers] Re: String being truncated when its long

2010-08-27 Thread Brion Emde
I'm pretty sure that if there is a limit, it is much bigger than what people are saying here. I wrote a little Twitter example on Android and just doing the home_timeline query can return up to 200 tweets, each up to 140 characters, plus overhead. That's 10s of kilobytes per GET request. See if

[android-developers] Re: How to make the eclipse to recognize my mobile phone?

2010-08-26 Thread Brion Emde
You should not be taking over some other thread and changing its title for a new subject. That makes it harder for others to search for the original question and answer. You should, instead, start a whole new thread with your new question. You don't say what phone you are trying to use. Some

Re: [android-developers]

2010-08-10 Thread Brion Emde
The Notepad tutorial in the SDK gives a nice example of using a database. You can find that example here: http://developer.android.com/resources/tutorials/notepad/index. Also, the Notepad sample code gives another approach, using a ContentProvider to encapsulate the database:

[android-developers] Re: Content provider doubt

2010-08-09 Thread Brion Emde
We use content providers because of the nice integration that is provided to support our applications. Content Providers allow us to use ContentResolver and AsyncQueryHandler and all the other tools. ContentProvider helps us manage our database more easily than trying to do it on our own. The

[android-developers] Re: Android testing: can't programmatically press buttons, etc...

2010-08-05 Thread Brion Emde
Did you try working with the testing tutorial? http://developer.android.com/resources/tutorials/testing/activity_test.html That gives an example of using the Instrumentation to send key presses to an Activity. On Aug 5, 10:22 am, Fabrizio Giudici fabrizio.giud...@tidalwave.it wrote:

[android-developers] isReachable() is about 1000X slower than it should be

2010-08-02 Thread Brion Emde
I did a search for this question, about isReachable() in the InetAddress class. What I found is a couple of postings of people who claimed that isReachable() does not work at all. What I've found, instead, is that isReachable() does work, except it is about 1000X slower than one would expect. So

[android-developers] Re: Binder is leaked by binding to a service

2010-07-30 Thread Brion Emde
Binding to a service is asynchronous. You should maybe disable the button that binds and unbinds until you are sure that you are actually, respectively, bound and unbound. You do that by keeping track of when the ServiceConnection object's onServiceConnected() and onServiceDisconnected()

[android-developers] Re: Using DefaultHttpClient in Eclipse for AndroidApp

2010-07-26 Thread Brion Emde
Did you remember to declare the INTERNET permission in the Manifest.xml file? Can you talk to the internet via the browser in your emulator? Your pseudo-code looks okay to me. On Jul 24, 7:48 am, ArtworkAD artjomzabe...@googlemail.com wrote: Hi all, I just want to make a http request...thats

[android-developers] Re: SQLiteOpenHelper per activity??

2010-07-23 Thread Brion Emde
The Notebook sample application contains a simple ContentProvider and a list of Notes. That lives here: http://developer.android.com/resources/samples/NotePad/index.html On Jul 23, 9:09 am, gcstang gcst...@gmail.com wrote: Does anyone have a easy example to setup the ContentProvider and a

[android-developers] Re: How to update pre-installed apps

2010-07-23 Thread Brion Emde
You have to update the VersionCode and VersionName in the manifest.xml to different values and the Market will interpret it as an update, provided that you sign it with the same Certificate you used to upload it in the first place. On Jul 23, 12:49 pm, Joseph Earl joseph.w.e...@gmail.com wrote:

[android-developers] Re: Socket in AsyncTask - application crashesso the UI won't be blocked

2010-07-19 Thread Brion Emde
It looks to me that you are trying to do stuff in the UI Thread while in the doInBackground() function. You are supposed to do UI related stuff in the onPostExecute(), onPreExecute() and onProgressUpdate(), not in doInBackground. This is what I'm talking about: if

[android-developers] Re: getting a key !!!!!

2010-06-24 Thread Brion Emde
I don't believe you can do that. I think that is a reason that the signing certificates are used: so someone else cannot counterfeit the developer's work. On Jun 24, 1:36 am, Mooncheol Yang saile...@gmail.com wrote: hello ~!!! i wonder if there is a way this problem.. 1. I have one apk...

[android-developers] Re: Experience with GoAPK.com

2010-06-07 Thread Brion Emde
I did it with my free app. Seems they did a nice job and I added Taiwanese Chinese to the Android Marketplace as well as having the app in the mainland Chinese market with Simplified Chinese. They gave me instructions to look at the downloads and I did that once a while back and not recently. On

[android-developers] Re: Import a *.jar (htmlparser jericho)

2010-06-07 Thread Brion Emde
I created a lib directory under the project and put the jar file there. Then, in Eclipse, I go to the project build path and Add External Jar and put the path to the jar file. That works. On Jun 2, 6:53 am, herr...@googlemail.com herr...@googlemail.com wrote: Hello guys, I have a big problem

[android-developers] Re: Linear Layout

2010-05-31 Thread Brion Emde
Try setting layout_weight=1 on the items following the one that is asking for the full height. That will tell the LinearLayout that those items need some space also. On May 31, 7:43 am, Anton Persson don.juan...@gmail.com wrote: Hello, I have a set of custom views that I would like to add to

[android-developers] Re: Application Crashes when Orientation changes - Very Urgent plz

2010-05-26 Thread Brion Emde
It looks to me as if you have a Class Cast Exception going on in an ExpandableListView, during the super.onCreate(Bundle savedState) method, when it is trying to restore the saved state of the ExpandableListView. I'm not sure you have the complete error log there, but I don't see the actual

[android-developers] Re: i am having problems with my view

2010-05-24 Thread Brion Emde
Maybe what you're talking about is something more like this, if you replace my ScrollView with your ListView: ?xml version=1.0 encoding=utf-8? RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent

[android-developers] Re: how to add new table for a existing database

2010-05-19 Thread Brion Emde
If you are talking about during development, perhaps the easiest thing might be to uninstall your application from the emulator/phone via Settings. Or you could start your emulator with the Wipe User Data checkbox selected. Or you could use adb to delete the database. Or sqlite. There are many

[android-developers] Internal Files, Email Attachments

2010-05-16 Thread Brion Emde
I was notified by one of my customers that she was unable to use the feature of my application where she is supposed to be able to send her data as an attached csv file to an email. When I run this on my emulator at home, it works. She reports that she's using the GMail client. I'm not clear on

[android-developers] Re: Internal Files, Email Attachments

2010-05-16 Thread Brion Emde
I don't mean that my code is getting exceptions. I meant exceptions to what I have going on my emulator vs. what the user has and what I see on the group. Sorry for any confusion. On May 16, 12:46 pm, Brion Emde brione2...@gmail.com wrote: I was notified by one of my customers that she

[android-developers] Re: Internal Files, Email Attachments

2010-05-16 Thread Brion Emde
on the email client having finished with the file when I resume my activity that kicks off the ACTION_SEND? Thanks again, Mark. On May 16, 12:57 pm, Mark Murphy mmur...@commonsware.com wrote: Brion Emde wrote: She reports that she's using the GMail client. I'm not clear on what

[android-developers] Re: Internal Files, Email Attachments

2010-05-16 Thread Brion Emde
app, to have her attachments handled correctly. On May 16, 5:01 pm, Mark Murphy mmur...@commonsware.com wrote: Brion Emde wrote: I don't think FLAG_GRANT_READ_URI_PERMISSION is helping you any, since you don't have a Uri in this Intent. It's in there, Mark. It was obscured by clouds

[android-developers] Re: XML editor problem

2010-05-14 Thread Brion Emde
You can probably find an XML editor somewhere. I use the Eclipse editor. The platform has no way of knowing what you are going to put into an arbitrary XML file, so it cannot help you out in the same way that it does for layouts. On May 14, 12:57 am, SHameed shaahulham...@gmail.com wrote: Hi  

[android-developers] Re: Android 2.1 MS SQL Server

2010-05-12 Thread Brion Emde
Many people have asked the very same question that you're asking. Did you try searching for SQL Server in the Search box? It works and there are answers here about the very thing that you are asking. This very same question was asked just last week. On May 10, 10:07 am, Mark marks0...@gmail.com

[android-developers] Re: Problem in sending in SMS

2010-05-10 Thread Brion Emde
Another option is to use the built-in ACTION_SEND or its variants, so that you are using the facilities that are already available. This is and especially useful approach for a beginner. Look for ACTION_SEND in this document: http://developer.android.com/reference/android/content/Intent.html and

[android-developers] Re: Wrong date in Calendar day layout, Showing Thursday 01-Jan-1970.

2010-05-04 Thread Brion Emde
You don't show your code, so it's hard to see what the problem is. I'd guess that you are creating an uninitialized Calendar of some sort, so the date inside of it is zero, corresponding to the date that you report. A way to get a calendar of the current is like this: private Calendar mCalendar

[android-developers] Re: Retrieving the Json data into a list view...

2010-05-03 Thread Brion Emde
Your problems are right up on top of your log. It is not correctly parsing your JSONObject. As I said earlier, you need to figure out your parsing. I took a different approach to writing my own adapter, although I think I did that too, in some iteration or other. I create a generic JSONArrayList

[android-developers] Re: How to connect with MS SQL to android

2010-05-03 Thread Brion Emde
Your SQL database is running on a remote server. You need to build a web-service, an application that turns queries via Http GET requests, and updates via Http POST, PUT and DELETE requests, into operations on your database. It is probably built right into your SQLServer and uses XML or JSON or

[android-developers] Re: No Phone Signal in Emulator (2.1)

2010-05-03 Thread Brion Emde
I'm not sure what you're asking. The developer guide is pretty clear that you can't make or receive phone calls via the emulator, but you can simulate phone calls via the console. What are you talking about? On Apr 30, 7:55 am, Bruno Melo krate...@gmail.com wrote: Hi there, i'm having problems

[android-developers] Re: Can custom read/write permissions effect user acceptance of an application?

2010-04-30 Thread Brion Emde
: On Thu, Apr 29, 2010 at 3:28 PM, Brion Emde brione2...@gmail.com wrote: The question is: is it possible that the permission acceptance part of installing my app could be putting  customers off? Possible? Sure. Everyone has their own criteria for downloading, trying, and buying apps. I'm

[android-developers] Re: Can custom read/write permissions effect user acceptance of an application?

2010-04-30 Thread Brion Emde
Thanks for the information. 250K installs! Wow! Nice work. On Apr 29, 4:25 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: My main app (Radar Now!) has over 250,000 installs. I've received questions, comments and numerous other contacts from users but never once has anyone even

[android-developers] Re: Retrieving the Json data into a list view...

2010-04-30 Thread Brion Emde
I don't see a problem. You should look at your log file or post it. Have you traced through your code via the debugger? That is a good way to see what is happening. On Apr 30, 6:16 am, Rahul rahulvarma.kalidindi0...@gmail.com wrote: I have done the following. But still i cant get the result...

[android-developers] Re: Retrieving the Json data into a list view...

2010-04-30 Thread Brion Emde
That first logcat you posted was pretty interesting. It was telling you that what you are getting back from you webservice is a JSONArray, not a JSONObject, as you are assuming it is. They aren't the same thing. You need to get clear on what you are expecting with what they are sending or you are

[android-developers] Can custom read/write permissions effect user acceptance of an application?

2010-04-29 Thread Brion Emde
I have two published apps that are pretty targeted to the user collecting their personal medical data (like Blood Pressure, etc.) and then, eventually sending it somewhere, if they choose. I decided to put Read/Write permission on my ContentProvider, so if another app comes along that wants to

[android-developers] Re: progress bar in a tabhost

2010-04-28 Thread Brion Emde
If you want a ProgressBar to work, you have to be doing the work in a separate thread, as in AsyncTask. Since the ProgressBar runs in the UI thread, if you block that, you won't get the effect that you are looking for. Is loading your tabs really that slow? On Apr 28, 3:59 pm, Alain

[android-developers] Re: How to use Java classes in an Android project

2010-04-28 Thread Brion Emde
Have you tried building a Java application with your files to see if that works? That would be much easier than figuring that out and dealing with the extra complexity of Android development. Then once you can build a Java project with your files, and you've looked at the Android examples, you

[android-developers] Re: stock api

2010-04-28 Thread Brion Emde
Google Finance is using a web service to provide that data to the mobile devices. The mobile devices is performing database queries, or receiving periodic packets of information from the server that implements the web service. For the information that you are asking, you would somehow need to tie

[android-developers] Re: Using same sqlite database from multiple Activities and Services

2010-04-27 Thread Brion Emde
There is a standard way of doing this in Android: ContentProvider. It is so important that there is a whole chapter written about it in the Developer's Guide: http://developer.android.com/guide/topics/providers/content-providers.html Also, look at the Notepad example, as others have suggested.

[android-developers] Re: Progress bar is run after task completing

2010-04-24 Thread Brion Emde
Your sendFileToServer function should be in a separate thread, like the background operation of an AsyncTask. Your android application is doing everything in the main thread, the UI thread, so it is doing your file send, then, when it comes back, it is updating the UI. On Apr 24, 1:03 am,

[android-developers] Re: ListActivity does the ArrayAdapterT class have to be an Inner Class

2010-04-22 Thread Brion Emde
No, there is no reason at all that your Adapter has to be in internal class. Post your code and maybe someone will see your problem. On Apr 21, 2:40 pm, David Parry d.dry.pa...@gmail.com wrote: Question: I have a Concrete class that implements ListActivity in this class I have an InnerClass

[android-developers] Re: Can´t set the emulator´s dns servers on windows

2010-04-05 Thread Brion Emde
, Gabriel Simões gsim...@gmail.com wrote: Actualy 8.8.8.8 is google´s openDNS The second should be 8.8.4.4 On 4 abr, 22:54, Brion Emde brione2...@gmail.com wrote: That's a funny lookingDNSthat you're entering. How are you finding yourDNS? I'm not saying those are not right, but I

[android-developers] Re: Can´t set the emulator´s dns servers on windows

2010-04-04 Thread Brion Emde
That's a funny looking DNS that you're entering. How are you finding your DNS? I'm not saying those are not right, but I suspect that if they were right, I your emulator would work. On Apr 4, 7:37 pm, Gabriel Simões gsim...@gmail.com wrote: Hello, Right now my app needs to use the device´s

[android-developers] Please help me with permission problems

2010-04-03 Thread Brion Emde
I'm just trying to make happen what is described here, with the custom permission: http://developer.android.com/guide/topics/manifest/manifest-intro.html#perms i.e. I want my activities (I'm only showing one below) and ContentProvider to not be accessible from other applications, because they

[android-developers] Re: Please help me with permission problems

2010-04-03 Thread Brion Emde
: Brion Emde wrote: I'm just trying to make happen what is described here, with the custom permission: http://developer.android.com/guide/topics/manifest/manifest-intro.htm... i.e. I want my activities (I'm only showing one below) and ContentProvider to not be accessible from other

[android-developers] Re: Please help me with permission problems

2010-04-03 Thread Brion Emde
android:writePermission=com.eyebrowssoftware.BPTracker.permission.MEDICAL / I cannot query the data. I do have, as shown above, the uses- permission element declared at the top of my manifest file. On Apr 3, 1:15 pm, Mark Murphy mmur...@commonsware.com wrote: Brion Emde wrote: I'm just

[android-developers] Re: Please help me with permission problems

2010-04-03 Thread Brion Emde
database. Thanks! On Apr 3, 1:48 pm, Brion Emde brione2...@gmail.com wrote: I discarded the permissions on the Activities, as I didn't know why they were there either, I was trying out that example. If I go with a permission entry on my ContentProvider, I cannot query the data. If I change

[android-developers] Re: Is This Another Bug In TextView?

2010-03-23 Thread Brion Emde
Ok, I created an Issue on the Android Bug Tracking Site at: http://b.android.com about the bug in the documentation. Thanks for the encouragement and information. On Mar 22, 11:05 am, Mark Murphy mmur...@commonsware.com wrote: Brion Emde wrote: Thanks for the pointer. I don't know where

[android-developers] Re: Problem with TabActivity and ListActivity

2010-03-22 Thread Brion Emde
This is an example of using Activities in a TabActivity: package com.eyebrowsoftware.gobeering.activities; import android.app.TabActivity; import android.content.Intent; import android.os.Bundle; import android.widget.TabHost; import com.eyebrowsoftware.gobeering.Beers; import

[android-developers] Re: Accessing External Database

2010-03-22 Thread Brion Emde
I recommend that you take a look at an existing RESTful implementation and see how that works and you may be able to see how to do what you are doing. I think a beautiful example of RESTful architecture is that provided by Twitter. You can browse the Twitter API WIKI at:

Re: [android-developers] Re: Is This Another Bug In TextView?

2010-03-22 Thread Brion Emde
if you file the documentation problem as a bug - there are lots and lot of them. Jut mentioning it on this list doesn't get it fixed! On Mar 9, 10:18 am, Brion Emde brione2...@gmail.com wrote: I've confirmed that when you declare a ColorDrawable in the colors.xml file, then get it via

[android-developers] Re: Being legally harassed, by a large iPhone developer

2010-03-22 Thread Brion Emde
Sorry to continue the off-topic posting, everyone! I'm no lawyer and I think you should talk to one. Many cities' bar associations offer a low-cost or free first consultation with a lawyer. It would be under Attorney listings; something like Free Lawyer Consulation. If you have your source

[android-developers] Re: 2 ListViews in one Activity?

2010-03-22 Thread Brion Emde
You can do it, but only one of the ListViews can be managed by the ListActivity. That's the one that you give android:i...@android:listview (or whatever, sorry). The other one, you have to call something else and so lower-level things to, the stuff that ListActivity is doing below the surface. So

[android-developers] Re: ListView not responding to Click or KeyPress

2010-03-21 Thread Brion Emde
I'm pretty sure all these people found the answer to their problem, as this is such a common need. The minimum you should need to make a clickable list view is this: @Override protected void onCreate(Bundle savedInstanceState) {

[android-developers] Re: ListView not responding to Click or KeyPress

2010-03-21 Thread Brion Emde
Actually, I could be more clear. I think that every Android beginner at least build the sample programs that have stuff in them they are interested in. For example, the APIDemos sample contains many example of ListViews. If you don't want to build the APIDemos sample, most of what is there,

[android-developers] Re: Application taking over Phone app call

2010-03-19 Thread Brion Emde
it is feasible). From within the app in development there is a need to initiate the phone call. If I understand it clearly what you said is that once the app gets the proper permissions declaration the Phone.apk will get the number passed and place the phone call? On Mar 18, 3:17 pm, Brion

[android-developers] Brand New Troubles Building on Mac OSX

2010-03-18 Thread Brion Emde
I just got a new computer, a Mac-mini, and I'm working on getting my Android development going on the new machine. I'm migrating from Vista, where my application currently runs correctly. It does not build correctly on OSX. I can create a new project, like HelloAndroid from the samples and run

[android-developers] Re: Brand New Troubles Building on Mac OSX

2010-03-18 Thread Brion Emde
my vast stores of patience, fooling around with this was vexing to me, on top of the low-level frustrations of learning a new platform. On Mar 18, 8:18 am, Michael MacDonald googlec...@antlersoft.com wrote: On 03/18/10 11:11, Brion Emde wrote: I just got a new computer, a Mac-mini, and I'm

[android-developers] Re: Application taking over Phone app call

2010-03-18 Thread Brion Emde
You can set up the dialer so it is ready to make a call when the user hits the Send key. That does not take any extra permission. You can also initiate a phone call via the Dialer, but you have to declare a permission to do that. On Mar 17, 4:38 pm, Fabio lfr...@gmail.com wrote: Hello all, I

[android-developers] Re: NoClassDefFoundError for gdata CalendarService class

2010-03-15 Thread Brion Emde
Hi Tom, I went down the same path as you with the gdata library and I was going to take a look at this library, which the developer claims does work on Android: http://code.google.com/p/simply-gdata/ I'd be interested in if this works for you, as I haven't gotten around to looking at it and if

[android-developers] Re: TextView before ListView

2010-03-13 Thread Brion Emde
Bob, Forgive me if this is obvious to you, but I have to remind myself over and over. RelativeLayout makes only a single pass through your XML to determine the Ids and collect the layout information. So it is essential that you order the elements correctly to make sure you have no forward

[android-developers] Re: TextView before ListView

2010-03-13 Thread Brion Emde
I'll let sleeping dogs lie until changes are required. On Mar 13, 8:05 am, Mark Murphy mmur...@commonsware.com wrote: Brion Emde wrote: RelativeLayout makes only a single pass through your XML to determine the Ids and collect the layout information. That is not true, as of Android 1.6

[android-developers] Re: Requesting to have a member of this group

2010-03-12 Thread Brion Emde
This article: http://developer.android.com/intl/de/resources/community-groups.html explains how to subscribe to the group. On Mar 10, 11:31 pm, evergreen.sub...@gmail.com evergreen.sub...@gmail.com wrote: Hello i am subrat,  i am working in android platform. i am interested to join your

[android-developers] Re: Custom content provider(java.lang.VerifyError)

2010-03-11 Thread Brion Emde
I think that if you do not enforce any permissions in your ContentProvider, it is, by default, open to all applications that know about it and wish to interact with it. On Mar 11, 5:50 am, Musafir musafir4frie...@gmail.com wrote: hi grace i solved the issue and my custom content provider is

[android-developers] Re: Custom content provider(like contact content provider)

2010-03-11 Thread Brion Emde
I think that if your content provider does not enforce any permissions, it is by default open to all applications. On Mar 11, 5:53 am, Musafir musafir4frie...@gmail.com wrote: hi friends, can anyone say how can i create a custom content provider like contact content provider? i know how to

[android-developers] Re: TextView before ListView

2010-03-11 Thread Brion Emde
You can totally do this. Make sure that your TextView is set to android:layout_height=wrap_content and not to fill_parent. That will surely do what you are describing. --- On Mar 11, 5:35 am, Pipen erik.ing...@gmail.com wrote: Dear All, I've tried to add a TextView before a ListView in a

  1   2   >