Re: [android-developers] Save ID & name in list view

2010-12-02 Thread TreKing
On Wed, Dec 1, 2010 at 11:51 AM, Faheem Khatri wrote: > is there any property where i can set ListView value member & display > member or any other way? > Nope. It works quite differently from C#. - T

[android-developers] Re: How to update an ArrayAdapter

2010-12-02 Thread Doug
What do you need to see from an example? If there is any data backing the display of items in your list, and that data changes for whatever reason, just notify the adapter of those changes. I don't think it's any more complicated than that. Each application's conditions for change and notificati

Re: [android-developers] Re: column '_id' does not exist

2010-12-02 Thread Jonas Petersson
Um, you might try something like "select RoomID as _id ..." Best / Jonas On 12/03/2010 08:40 AM, Kumar Bibek wrote: You cannot in this case. This is a mandatory requirement. "pramod.deore" wrote: Hi Bibek, Thanks for reply. But my table RoomTable have only three colu

[android-developers] Re: column '_id' does not exist

2010-12-02 Thread pramod.deore
oh. Thanks On Dec 3, 12:40 pm, Kumar Bibek wrote: > You cannot in this case. This is a mandatory requirement. > > "pramod.deore" wrote: > >Hi Bibek, Thanks for reply. But my table RoomTable have only three > >columns, RoomID, RoomName, and RoomSuffix. It doesn't have  _id field. > >Then how to u

Re: [android-developers] Re: column '_id' does not exist

2010-12-02 Thread Kumar Bibek
You cannot in this case. This is a mandatory requirement. "pramod.deore" wrote: >Hi Bibek, Thanks for reply. But my table RoomTable have only three >columns, RoomID, RoomName, and RoomSuffix. It doesn't have _id field. >Then how to use Cursor Adapter here. > >On Dec 3, 11:55 am, Kumar Bibek wr

[android-developers] Re: column '_id' does not exist

2010-12-02 Thread pramod.deore
Hi Bibek, Thanks for reply. But my table RoomTable have only three columns, RoomID, RoomName, and RoomSuffix. It doesn't have _id field. Then how to use Cursor Adapter here. On Dec 3, 11:55 am, Kumar Bibek wrote: > Cursor Adapters require the table to have a _id field. Else, you would get > this

[android-developers] Re: SMS PDU Behaviour

2010-12-02 Thread Tez
any ideas? On Dec 1, 7:49 pm, Tez wrote: > Sms's have a max length of 160 characters. Assuming a sender sent an > sms with length 200 chars, does the system send out 2 SMS_RECEIVED > broadcasts? or it internally aggregates the 160 + 40 characters and > sends out a single broadcast? > > Cheers, >

[android-developers] Re: Loading external images with basic auth and url redirects

2010-12-02 Thread John C. Bland II
Anyone? --- John C. Bland II Blog: http://www.johncblandii.com Company: http://www.katapultmedia.com Twitter: @johncblandii On Thu, Dec 2, 2010 at 4:24 PM, John C. Bland II wrote: > http://mysite.com/imageslug > > It redirects to: http://mysite.com/path/to/some/image.jpg. > > I also need to use

[android-developers] How to push the code changes to review.source.android.com

2010-12-02 Thread Feng Chris
Hi all, I try to push my changes to eview.source.android.com as method described in site http://source.android.com/source/submit-patches.html. But when I do "repo upload", error occurred. Is anyone know something about this? Or is anyone can provide a details about how to push the code changes t

Re: [android-developers] column '_id' does not exist

2010-12-02 Thread Kumar Bibek
Cursor Adapters require the table to have a _id field. Else, you would get this exception. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Fri, Dec 3, 2010 at 11:15 AM, pramod.deore wrote: > Hi Everyone, > > I have a table and I want to retrieve one column (RoomName) from thi

Re: [android-developers] Re: starting local service class not found

2010-12-02 Thread Hendrik Greving
By the way, I am getting an InstantiationException and shortly before, a NewInstance failed: no init<>(). When I google for it, I find a little bit about IntentService constructors and alike, I am not using IntentService though, just regular Service. - Original Message - From: "Hendr

Re: [android-developers] Re: starting local service class not found

2010-12-02 Thread Hendrik Greving
I do. Like this - Original Message - From: "Mark Murphy" To: Sent: Wednesday, December 01, 2010 4:30 PM Subject: Re: [android-developers] Re: starting local service class not found On Wed, Dec 1, 2010 at 7:09 PM, Hendrik Greving wrote: Still having this problem :/ Anyone

[android-developers] Re: Free version to Paid version

2010-12-02 Thread Zsolt Vasvari
If somebody tricked me into updating so that they can remove features and try to charge me to get them back, not only would I leave a 1-star on the free version, but buy the paid version, 1-star it and then get a refund. Don't do that, it's a really, really stupid idea. On Dec 3, 7:17 am, TreKi

[android-developers] friend locator

2010-12-02 Thread abhishek
hi!! can any one please post the code to find location of friend using gps ! please it is urgent -- 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

[android-developers] friend locator

2010-12-02 Thread abhishek
hi!! can any one please post the code to find location of friend using gps ! please it is urgent -- 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

[android-developers] column '_id' does not exist

2010-12-02 Thread pramod.deore
Hi Everyone, I have a table and I want to retrieve one column (RoomName) from this table and display it as a list. had tried it but it gives me exception as " java.lang.IllegalArgumentException: column '_id' does not exist" My .java class is public class RemoveRoom extends Activity { S

[android-developers] Creating a PDF on Adroid?

2010-12-02 Thread Zsolt Vasvari
Could somebody recommend a PDF creator library for Android, or at least in Java that could be ported to Android? It doesn't have to be anything too sophisticated, my requirements are for simple styled text. Thanks. -- You received this message because you are subscribed to the Google Groups "An

[android-developers] onsaveinstancestate Beginner guidance

2010-12-02 Thread Abhishek Talwar
Hi all My application is a simple one. It just has an EditText and the user enters text in it but when he navigate away from the application and comes back the text is gone and the user has to type again. Basically i just want to get an idea of how to save the state of the application. Just let me

[android-developers] Re: Update database

2010-12-02 Thread pramod.deore
Thanks Bibek and Kostya, problem is solved On Dec 2, 4:35 pm, Kostya Vasilyev wrote: > The next-to-last argument to db.update is the WHERE clause, but without > the WHERE (look it up in a SQL reference). > > So while in SQL you'd write "WHERE SwitchName = value", with db.update > you need to use

[android-developers] Re: Upload picture to php server

2010-12-02 Thread zeeshan mirza
sorry for my long poste, but is there anyone who can help me ?? //Zeeshan -- 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 t

[android-developers] Re: Why on earth do the Android Ant tools use javac with encoding="ascii"?

2010-12-02 Thread Zsolt Vasvari
Totally agree. I just changed all my instances of non-ASCII characters to use the \u notation (I have a few for currency codes and for a minus sign where I use a long-dash for asthetic reasons instead of a regular -). That said, having non-ASCII in your source file probably means that you shou

[android-developers] question about the proper way of quitting the program

2010-12-02 Thread billconan
Hello guys, I'm working on a game, mainly based on NDK. I now have a problem of how to quit the application. Right now, i just implement my own function to handle the "back" button. inside that function, I simply call the activity.finish() api to finish the activity that uses my C++ code. However,

[android-developers] Re: Intent filter targeting specific SDK version

2010-12-02 Thread Kwisatz
Wow! Thank you so much, Mark. You really guided me to the right place. Here is what I come up with: In the manifest, I have my Activity, let's call it com.test.disable.TargetActivity, and it is set with one or more intent filters. So, during the app execution, somewhere in the code, I can see if

[android-developers] Re: Attach debugger to app that is already running

2010-12-02 Thread fadden
On Dec 2, 8:58 am, Kostya Vasilyev wrote: > - Run your game. > - In Eclipse, switch to DDMS perspective (green Android, top-right toolbar). > - In the "Devices" window (top-left), select your process. > - Click the green bug icon in the toolbar above. Also, if you want to wait at a specific point

[android-developers] How to update an ArrayAdapter

2010-12-02 Thread kiros88
Okay So im basically come to a problem and a question im trying to search online for. I know your going to have to notifyDataSetChanged to update your listView but im having a hard time finding an example of how to update my arrayAdapter when data would change is there and example of how to do this

[android-developers] Re: How to detect FPS (frame per second) in video ?

2010-12-02 Thread Doug
On Dec 1, 10:41 pm, Paddy Yao wrote: > I use VideoView to play video . > I can use getCurrentPosition() to get current run time . > But I don`t know how to detect how many frames has play. > > Or I should use the other class but not VideoView ? > > Does anyone know this issue? You can't know the

[android-developers] Re: Listview with section headers shows same data under each of the them.

2010-12-02 Thread Doug
On Nov 30, 10:34 pm, umakantpatil wrote: > I have been facing the problem. > > I tried posting on stackoverflow too. Below is the > link.http://stackoverflow.com/questions/4321329/listview-with-section-head... > > I have listview with headers. But it shows same list under each > header. Dont know

[android-developers] Re: Restlet api

2010-12-02 Thread Brill Pappin
Try it with a Post instead of a Put. Put isn't supposed to return anything but the request status. - Brill Pappin On Dec 2, 5:08 pm, biokys wrote: > So I make another step, > I can succesfully call this method from client: > >  User user = resource.getUser("Test"); > > On the server side it look

[android-developers] SyncAdapter questions: monitoring sync status; getting sync settings; sync icon

2010-12-02 Thread focuser
Hi, I am experiementing with SyncAdatpers and have a few questions that I could not find answers either in the documentation or this group yet. - How to monitor the status of sync after requesting it via ContentResolver.requestSync? For example, I need to refresh the UI when the requested sync f

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

2010-12-02 Thread Doug
On Dec 2, 12:52 pm, Brion Emde wrote: > 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. I'm not aware of any documentation that says you are obliged to use convertView if it's non-

Re: [android-developers] Re: How to make a backwards compatible aidl?

2010-12-02 Thread Mark Murphy
On Thu, Dec 2, 2010 at 6:23 PM, Rohan wrote: > Bump. > Any tips for me? I don't think what you literally asked for ("make a backwards compatible AIDL") is possible. What should be possible, though, is to support two different AIDL versions. I have not tried this, so your kilometerage may vary,

[android-developers] Re: How to make a backwards compatible aidl?

2010-12-02 Thread Rohan
Bump. Any tips for me? On Nov 26, 2:25 pm, ANT wrote: > I want to support multiple applications communicating with my service > through aidl, but I will need to add IPC functions in the future while > still supporting the old applications.  Adding a new function to the > service aidl, but not upd

Re: [android-developers] Re: Free version to Paid version

2010-12-02 Thread TreKing
On Thu, Dec 2, 2010 at 4:46 PM, Leon Moreyn-Android Development < lmor...@earthcam.com> wrote: > What you can do is remove features in an update to your free app and keep > them in your paid version. > That is an awesome way to piss people off. :-) ---

[android-developers] Buttons supported in notification expanded view?

2010-12-02 Thread CrazyH
Hi, I am trying to get buttons to work in notification expanded view. The goal is to use the buttons to launch activities from the notification view. Is this even supported? Here is a very simple outline with irrelevant details omitted: 1. Create a RemoteView object using a layout with some I

Re: [android-developers] Intent filter targeting specific SDK version

2010-12-02 Thread Mark Murphy
On Thu, Dec 2, 2010 at 5:29 PM, Kwisatz wrote: > I have an Activity with an Intent-Filter that must be always active, > but only when the application is running on devices above Froyo, > > Is there a way to: > > 1. Permanently add Intent-Filters? > > or > > 2. Permanently remove Intent-Filters? >

Re: [android-developers] Detect when the screen is locked

2010-12-02 Thread Mark Murphy
On Thu, Dec 2, 2010 at 5:44 PM, Peter Eastman wrote: > How can I detect when the screen is locked? Watch for ACTION_SCREEN_OFF broadcasts -- it's the closest thing, AFAIK. > I'm writing a game, and > have found that sometimes users will pause the game by just hitting > the power button to turn o

[android-developers] Re: Free version to Paid version

2010-12-02 Thread Leon Moreyn-Android Development
pretty much thats the general method being used. One thing to consider is unpublishing the app and releasing a paid version in its place. But users may find that kinda a slap in the face. I would say do as your doing, add features to the app and call it app Plus and charge money for it. Remember th

[android-developers] Detect when the screen is locked

2010-12-02 Thread Peter Eastman
How can I detect when the screen is locked? I'm writing a game, and have found that sometimes users will pause the game by just hitting the power button to turn off the screen. onPause() gets called then as expected. But onResume() gets called as soon as they turn the screen back on, causing my

[android-developers] Custom Drawable Type refrerenced from XML

2010-12-02 Thread Greg Giacovelli
Hi I was wondering if something like this is possible { public class Foo extends Drawable { public void draw(Canvas canvas) { ... custom draw routine } } ... some_layout.xml ... ... I know the second syntax doesn't work. However is such a concept possible? Like can I reference a custom d

Re: [android-developers] Attach debugger to app that is already running

2010-12-02 Thread if05041
Yes. You can select the process from ddms and then attach the debugger to process. Powered by Telkomsel BlackBerry® -Original Message- From: Leigh McRae Sender: android-developers@googlegroups.com Date: Thu, 2 Dec 2010 07:41:30 To: Android Developers Reply-To: android-developers@google

[android-developers] Intent filter targeting specific SDK version

2010-12-02 Thread Kwisatz
Problem: I have an Activity with an Intent-Filter that must be always active, but only when the application is running on devices above Froyo, Is there a way to: 1. Permanently add Intent-Filters? or 2. Permanently remove Intent-Filters? or 3. Make the intent-filter target specifically an SDK

[android-developers] Loading external images with basic auth and url redirects

2010-12-02 Thread John C. Bland II
http://mysite.com/imageslug It redirects to: http://mysite.com/path/to/some/image.jpg. I also need to use basic auth. I'm using the Apache HttpUrlConnection and Base64. Any tips? --- John C. Bland II Blog: http://www.johncblandii.com Company: http://www.katapultmedia.com Twitter: @johncblandii

Re: [android-developers] Passing objects to new intents

2010-12-02 Thread John C. Bland II
Just reporting back. It works perfectly. I had a couple glitches but that was bad coding. :-D Thx guys! --- John C. Bland II Blog: http://www.johncblandii.com Company: http://www.katapultmedia.com Twitter: @johncblandii On Tue, Nov 30, 2010 at 11:22 AM, John C. Bland II wrote: > Ok...I'll look

[android-developers] Re: Restlet api

2010-12-02 Thread biokys
So I make another step, I can succesfully call this method from client: User user = resource.getUser("Test"); On the server side it looks like: @Put public User getUser(String msg) { return new User("John" + msg, "Locke" + msg); } So I can pass String param to method getUser and receive obj

RE: [android-developers] FIXED But 1 question: Strange Issue..Fail to set top app changed..Please help

2010-12-02 Thread Tommy
It turns out that for some reason when I do a myTextView.setText(Html.fromhtml()) it errors out BUT ONLY on the new application. On the old application (where I copied the source code exactly from) the FromHtml method works just fine. In order to fix this I had to add this: myTextView.setText(Strin

[android-developers] NullPointerExeption during addTab to TabHost

2010-12-02 Thread Vladyslav Namashko
Hi all. I have TabActivity, whose tabs are added during onCreateMethod. Something like this: tabHost = getTabHost(); tabHost.addTab(tabHost.newTabSpec("main_tab1").setIndicator(...)); ... It works fine, but sometimes I get NullPointerExeption when trying to add tab using addTab. This problems re

Re: [android-developers] Re: Restricted location in publisher GUI is not working on some devices

2010-12-02 Thread dan raaka
I am seeing this "disappearing" issue on some of my apps as well. -Dan On Thu, Nov 25, 2010 at 4:28 AM, Chister Nordvik wrote: > I changed location to "All countries" and it appeared... so something > is amiss here. But now I have all the other problems with apps > disappearing, paging not wor

Re: [android-developers] Problem in communicating from tabActivity to Child Activity

2010-12-02 Thread TreKing
On Wed, Dec 1, 2010 at 8:21 AM, cool.manish wrote: > Please help me in doing it. > In doing what? You've outlined quite a few different things there. - TreKing

[android-developers] Right value getRefreshRate in android devices ..

2010-12-02 Thread Dan Raaka
What is the expected value for this API on android devices ? http://developer.android.com/reference/android/view/Display.html#getRefreshRate() Should it match the claimed screen display refresh rate or 60 ? -Dan -- You received this message because you are subscribed to the Google Groups "Andro

[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 ==

Re: [android-developers] Re: Drawing a circle on a MapView to mark the accuracy of the location estimation ?

2010-12-02 Thread TreKing
On Thu, Dec 2, 2010 at 12:34 PM, Dennis R. wrote: > Anyone can help with this? Help with what? - TreKing - Chicago transit tracking app for Androi

[android-developers] Re: System Font Files

2010-12-02 Thread burton miller
Ping. I know there are some brainiacs that can answer this with two lines of code:) I have already spent a couple of hours on it - or I wouldn't have posted:) On Nov 30, 4:41 pm, burton miller wrote: > Anybody know how to get to thesystemfontfilesprogramatically? > > I am building an app that n

[android-developers] Free version to Paid version

2010-12-02 Thread Brill Pappin
I've got a situation a lot of us do, where I have released a free version and now need to make a Paid version of the same app. As those who have tried will know, you can't change an app from Free to Paid (a silly feature of the Market). So, what I'm planning to do is release a "Plus" version that

Re: [android-developers] Re: onItemClick(AdapterView parent, View view,

2010-12-02 Thread Mark Murphy
On Thu, Dec 2, 2010 at 3:05 PM, kiros88 wrote: > Okay so i guess this kinda makes sense I'm not really sure how am i > suppose to change my data model. I did > ((TextView)adapt.getView(0, null, parent)).setText("hello"); > adapt.notifyDataSetChanged(); > > but nothing changed ? You did not change

RE: [android-developers] Strange Issue..Fail to set top app changed..Please help

2010-12-02 Thread Tommy
I tried thatDidn't workBUT I am now having the issue on both computers... -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Kostya Vasilyev Sent: Thursday, December 02, 2010 3:23 PM To: android-developers@google

[android-developers] Re: Drawing a circle on a MapView to mark the accuracy of the location estimation ?

2010-12-02 Thread Dennis R .
> Is using GPolygon() the only way ? > > > No, you can just use this: Canvas.drawCircle(). Canvas.drawCircle is completely different from GPolygon. GPolygon draw the polygon with different sizes taking into account zoom level. I think that GPolygon it is not available on Android :( Anyone can

Re: [android-developers] Strange Issue..Fail to set top app changed..Please help

2010-12-02 Thread Kostya Vasilyev
Tommy, Since it works when you move the project to another computer (the notebook), you could try and do the same on your desktop. Copy the contents of src, res, assets (if you use them) and the manifest to a safe location. Delete the project, including the old directory. Create a new Andr

[android-developers] Strange Issue..Fail to set top app changed..Please help

2010-12-02 Thread Tommy
Hi everyone, I have a strange issue that I can't seem to find a resolution to. I am working on an app using Eclipse Galileo on my laptop Windows 7 64bit. I decided to break my app down and pull out a specific section along with the activity's and services that went with that section. I moved them

Re: [android-developers] Missing instance state when restoring dialogs

2010-12-02 Thread Olivier Guilyardi
The onRestoreInstanceState() doc does not say that: http://developer.android.com/intl/fr/reference/android/app/Activity.html#onRestoreInstanceState%28android.os.Bundle%29 >From what I read, onCreate() is all what is needed. Implementing onRestoreInstanceState() doesn't seem necessary in my case. I

Re: [android-developers] how to zoom camera through code

2010-12-02 Thread TreKing
On Wed, Dec 1, 2010 at 5:59 AM, Atik wrote: > but what exactly should i need to do to achieve the same. Setting the zoom change listener will tell you when the zoom has changed, it won't change it. Look at the other methods for camera - one of them apparently does exactly this. ---

[android-developers] Re: onItemClick(AdapterView parent, View view,

2010-12-02 Thread kiros88
Okay so i guess this kinda makes sense I'm not really sure how am i suppose to change my data model. I did ((TextView)adapt.getView(0, null, parent)).setText("hello"); adapt.notifyDataSetChanged(); but nothing changed ? On Dec 2, 11:28 am, Mark Murphy wrote: > Of course. Again, ordinarily, you

[android-developers] Can i prevent RecognizerIntent to prompt user to "Retry" or "Abort" in case of RESULT_NO_MATCH, and handle the error myself ?

2010-12-02 Thread mrqzzz
Hi, I am developing a hands-free app that uses Google's Voice recognition intent. In case of RESULT_NO_MATCH error, the Voice Recognition dialog prompts the user if he wants to retry or abort and that breaks the hands- free rule. Is there a way to call the intent and eventually handle any err

Re: [android-developers] Missing instance state when restoring dialogs

2010-12-02 Thread Frank Weiss
Use the onRestoreInstanceState() callback, not just onCreate(). -- 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-d

[android-developers] Re: App freezes when the power key is pressed

2010-12-02 Thread Eyvind Almqvist
Thanks, I read the article. Then I saw that I had a global reference to a context, which I didn't need. I removed it and then it worked much smoother. I think this fixed the leak. I don't have any reference to a context at all now. I mailed you my app. Hope it works like it should on your HTC! On

[android-developers] Re: Selling app from own website

2010-12-02 Thread mot12
Are you still in need for an answer? 1) Updates I have a simple file on my website just containing the current version number and then the apk itself. By checking against the version number, the app determines if an update is available and, if the user wants to update, downloads this file in the b

[android-developers] Re: Proposal to Market Place

2010-12-02 Thread Maps.Huge.Info (Maps API Guru)
"...did you know you can download your app, rate it and comment it under your google market account ?" A far better use for this tactic is to answer negative comments with a preface like "Developer Comment: I've tested the app completely on the XYZ and it works perfectly." or something to that eff

Re: [android-developers] Re: onItemClick(AdapterView parent, View view,

2010-12-02 Thread Prakash Iyer
You need to do setText in your implementation of getView. In the item clicked, store your state and call notifyDatasetChanged (check the exact name). Do not call getView... On Dec 2, 2010 2:18 PM, "kiros88" wrote: > Okay wait so i get the concept tthat u do a getView from an > ArrayAdapter but wha

Re: [android-developers] Re: onItemClick(AdapterView parent, View view,

2010-12-02 Thread Frank Weiss
Admittedly, I haven't read this thread in detail. It seems to me, that using an MVC approach is called for. The controller (the click handler) shouldn't be calling the view directly. The controller should call the model. The model will update the view accordingly. -- You received this message bec

Re: [android-developers] Re: onItemClick(AdapterView parent, View view,

2010-12-02 Thread Mark Murphy
Of course. Again, ordinarily, you do not call getView(). You are going about your problem in the wrong way. You are attempting to change your UI directly by grabbing some row out of a ListView and changing it. That's not going to be reliable at all, since that row might not exist. Rather, you need

Re: [android-developers] Re: Proposal to Market Place

2010-12-02 Thread Frank Weiss
Good ideas, but as has been said, good luck with that. Some observations, if I may: 1) A developer shouldn't rely so much on ratings for feedback. Built-in bug reporting, email, a user network, a marketing site with user comments all provide a better dialog than the market's half-ass rating syste

Re: [android-developers] Listview with section headers shows same data under each of the them.

2010-12-02 Thread TreKing
On Wed, Dec 1, 2010 at 12:34 AM, umakantpatil wrote: > Can some one help me out please? What does you adapter look like? My guess is you're returning the same view for each row. - TreKing

[android-developers] Re: onItemClick(AdapterView parent, View view,

2010-12-02 Thread kiros88
Okay wait so i get the concept tthat u do a getView from an ArrayAdapter but what i tried this before during the i called the adapter i used ArrayAdapter adapt = new ArrayAdapter(this,android.R.layout.simple_list_item_1 , songs); then after its already created i do public void onItemClick(Adapt

[android-developers] Re: What is Process Name for mediaserver e.g. com.android.phone is for phone app.

2010-12-02 Thread Dianne Hackborn
You can't start a Android/Dalvik process through a process name. Nor should you rely on these names, which are implementation details. On Thu, Dec 2, 2010 at 6:41 AM, Atul Raut wrote: > Hi, > > *What is Process Name for mediaserver e.g. com.android.phone is for phone > app > like same I want fo

Re: [android-developers] Re: onItemClick(AdapterView parent, View view,

2010-12-02 Thread Mark Murphy
On Thu, Dec 2, 2010 at 2:06 PM, kiros88 wrote: > Okay like where do u gets getView I dont see that function in the > Listview class or the adapterView class so im not really sure where im > suppose to be able to call getView. Generally, you do not call getView(). You implement getView() in a cust

[android-developers] Re: onItemClick(AdapterView parent, View view,

2010-12-02 Thread kiros88
Okay like where do u gets getView I dont see that function in the Listview class or the adapterView class so im not really sure where im suppose to be able to call getView. On Dec 1, 7:54 pm, Prakash Iyer wrote: > My 2c - you are over-complicating this.The getView is ONLY to give back the > view

Re: [android-developers] I'm using onSensorChanged(). What should I specify in ?

2010-12-02 Thread TreKing
On Tue, Nov 30, 2010 at 9:54 PM, Kakyoin wrote: > Which one do I need to specify in my manifest? Or both? If nothing else, try none, either, then both, and see which way makes it work. - TreKing

[android-developers] Re: Proposal to Market Place

2010-12-02 Thread Yahel
> person give you one just because they want to be jerks. I would like > to propose a change . Good luck proposing, nobody's listening :s > to the market rating system where a rate of 1 or 5 > must include comments What you'll get is : 1 star ratings with the following very helpful(but short t

[android-developers] Missing instance state when restoring dialogs

2010-12-02 Thread Olivier Guilyardi
Hi, in my app, certain dialogs need some instance data when onPrepareDialog() is called. I am saving this data in onSaveInstanceState() and restoring it in onCreate(). This works fine according to my tests: I received the saved data in the bundle passed to onCreate(), and then the dialogs get auto

Re: [android-developers] Proposal to Market Place

2010-12-02 Thread Kostya Vasilyev
Maybe it's just me, but I sometimes see 1-star ratings that do include well written, thoughtful, long, helpful, descriptive comments. Some are like "dis suxx". Some are like "Doesn't work on device XYZ" (right above a 5-star that says "Perfect on device XYZ"). You can submit your proposal

[android-developers] Proposal to Market Place

2010-12-02 Thread Leon Moreyn-Android Development
As a developer I find it difficult to understanding ratings sometime. 1 to 5 is a good scale. But here is the problem with scale you can have people give you a five for the sake of giving you a five or a person give you one just because they want to be jerks. I would like to propose a change to the

Re: [android-developers] Attach debugger to app that is already running

2010-12-02 Thread Leigh McRae
And there was much rejoicing... Thank you! On 12/2/2010 11:58 AM, Kostya Vasilyev wrote: Yes: - Run your game. - In Eclipse, switch to DDMS perspective (green Android, top-right toolbar). - In the "Devices" window (top-left), select your process. - Click the green bug icon in the toolbar abo

[android-developers] Why on earth do the Android Ant tools use javac with encoding="ascii"?

2010-12-02 Thread Matt Quigley
First of all, I find it odd that the encoding is even specified at all. Why not just leave it as the default system encoding? Secondly, if one is going to specify an encoding, then it should NOT be ascii. It should be UTF-8. After all, the files themselves are not ascii, they are UTF-8 (or Cp12

[android-developers] Upload picture to php server

2010-12-02 Thread zeeshan mirza
I am trying to upload a picture to my php server from android application. Both are developed by me. I am getting error when i try to upload picture from my android app to php server. The error is "11-28 05:37:55.310: DEBUG/SntpClient(59): request time failed: java.net.SocketException: Address fami

Re: [android-developers] Attach debugger to app that is already running

2010-12-02 Thread Kostya Vasilyev
Yes: - Run your game. - In Eclipse, switch to DDMS perspective (green Android, top-right toolbar). - In the "Devices" window (top-left), select your process. - Click the green bug icon in the toolbar above. -- Kostya 02.12.2010 18:41, Leigh McRae пишет: When I use eclipse to launch a debug ses

[android-developers] App will not Install/Move to SD Card on HTC Desire HD

2010-12-02 Thread lloyd1949
Hi Folks: A user of my app has reported the following: Phone: HTC Desire HD with Android 2.2 with lots of room on the card. Android version 2.2 Baseband version: 12.28b.60.140eU_26.03.02.26_M Kernal version 2.6.32.21-g66cfb7a ht-ker...@and18-2 #1 Tue Oct 26 15:58:17 CST 2010 Build number: 1.35.76

[android-developers] How to make glow effect around a bitmap?

2010-12-02 Thread Hongbo
The following code is what I got so far. However, there are 2 issues: 1. I want both inner and outer glow effects, which looking similar to the Photoshop's blending options. But I only managed to make the outer glow, if I set BlurMaskFilter.Blur.INNER or other value, the whole image is blocked, i

[android-developers] seekto is not displaying the video frame on mediaplayer, any help?

2010-12-02 Thread genxsol
Hi Dear, i made a simple application to play a video from position1 untill position2 when mediaplayer reaches at position2, i pause the mediaplayer and seek it to position1 again. now the problem is, mediaplayer still displays position2 video frame how can i set the mediaplayer back to frame po

[android-developers] Voice search/Record Error

2010-12-02 Thread Satya
Hi, I am new to Audio module and new to Android. I am getting the following error when I start "Voice Search" application. # W/InputManagerService( 965): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$S8 D/dalvikvm( 1196): GC_

[android-developers] Attach debugger to app that is already running

2010-12-02 Thread Leigh McRae
When I use eclipse to launch a debug session on my device it takes 2-3 minutes just to load the game. I would like to be able to run my game, get to the point I'm interested in and then attach the debugger. Is this possible? -- You received this message because you are subscribed to the Google

[android-developers] What is Process Name for mediaserver e.g. com.android.phone is for phone app.

2010-12-02 Thread Atul Raut
Hi, *What is Process Name for mediaserver e.g. com.android.phone is for phone app like same I want for mediaserver. Wanted to start mediaserver through process name I have tool which uses such naming convention. * ---

[android-developers] strange behavior getting content from Gallery on Droid X - sets wallpaper when it shouldn't

2010-12-02 Thread Warren
I had a user report this issue. The app is designed to have the user pick an image from the Gallery that gets put on the SD card for later use. However, the user reported that the app instead sets the picture as the wallpaper! Any ideas why this might happen? The code for calling the gallery i

[android-developers] Re: App freezes when the power key is pressed

2010-12-02 Thread Yahel
> > When they rotate the screen several times, This is usually a symptom of a memory leak. Try to read this article from Romain Guy : http://www.curious-creature.org/2008/12/18/avoid-memory-leaks-on-android/ It explains how they can happen from a single handle to the context. The fact that you

[android-developers] TabHost Activity

2010-12-02 Thread pedr0
Hi at all, I develop an Tab based application, and I add activity in my tab in this way: mTabHost.addTab(mTabHost.newTabSpec("tab_test2").setIndicator("TAB 1").setContent(intent1)); mTabHost.addTab(mTabHost.newTabSpec("tab_test3").setIndicator("TAB 2").setContent(intent2)); mTabHost.addTab(mTabH

Re: [android-developers] Opening a recently written file using Intents

2010-12-02 Thread Mark Murphy
I would start by using a real MIME type. The ones in your comment are not real MIME types. On Thu, Dec 2, 2010 at 8:05 AM, Samuh wrote: > We are downloading a file from a server and writing it to folder on > sdcard. As soon as the write finishes, we perform a Media Scan on that > folder. When the

[android-developers] Opening a recently written file using Intents

2010-12-02 Thread Samuh
We are downloading a file from a server and writing it to folder on sdcard. As soon as the write finishes, we perform a Media Scan on that folder. When the user tries to open the file for viewing, we try to leverage upon the Intent mechanism of Android and raise an Intent as follows: Intent myInte

[android-developers] Intercept Incoming Message with Looper,MessageQueue and IdleHandler

2010-12-02 Thread muhammad mahmood
Hi I would like to say, i want to get what message come inside queueidle. public class ApplicationController extends Application { @Override public void onCreate() { super.onCreate(); MessageQueue queue = Looper.getMainLooper().myQueue(); IdleHandler ih = new IdleHa

Re: [android-developers] android tablet downloading problem

2010-12-02 Thread Kostya Vasilyev
02.12.2010 14:41, Narendra Bagade пишет: do u have implementation of wifi lock . Might go like this: WifiManager manager = (WifiManager) getSystemService(WIFI_SERVICE); WifiManager.WifiLock lock = manager.createWifiLock(); Locking: if (!lock.isHeld()) { lock.acquire(); } Unlocking: if

[android-developers] Android Optical Mouse

2010-12-02 Thread Thiago Lopes Rosa
Hi, Does anyone know how the optical mouse (example: HTC Incredible) is mapped? Would it be a trackball? DPAD? Touch? Another key? Thanks! Thiago -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andr

[android-developers] how to implement send text to windows(PC) via bluetooth

2010-12-02 Thread Chao stone
Hi! all: Did anyone try to implement android phone send text to windows(PC) via bluetooth? I have no idea if android bluetooth api can connect to microsoft bluetooth stack(on PC). The bluetoothchat sample in SDK is between 2 android device. It seems to be very simular to some remote controller p

[android-developers] Re: Displaying unicode in a TextView?

2010-12-02 Thread HippoMan
Yes. I should have written this after drinking my morning coffee. On my way to work, I woke up a little and remembered that this encoding pertains to the _source_ (in my case, the epub bundle) and not the _destination_ (the TextView). Luckily, I know something about the source: epubs are supposed

  1   2   >