[android-developers] Video Live streaming between android devices

2012-05-07 Thread kavitha chidambaram
Hi, I am trying to implement video live streaming between android devices. Can I get any idea.. Darwin streaming server for PC to mobile, same thing can i do it between android devices. Thanks in advance. Regards, Kavitha -- You received this message because you are subscribed to the

[android-developers] dispatchTouch::touch event's action is 1, pending(waiting finished signal)=0

2012-05-07 Thread Jetti
Hi , When I trying to enter the text from the keyboard, I am not able to get the focus on the keys/layout. And in logcat it shows the below lines. Can anyone suggest why it is happening.. INFO/InputReader(2773): dispatchTouch::touch event's action is 1, pending(waiting finished signal)=0

Re: [android-developers] Customizing Android's default contacts app

2012-05-07 Thread asheesh arya
yes -- 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, vis

Re: [android-developers] Re: Allow button inside listview to be clickable

2012-05-07 Thread Zsolt Vasvari
Is the same Drawable shows a button clicked OUTSIDE of a list view? Because I have many list views with buttons and I don't have any problems showing state changes. On Tuesday, May 8, 2012 6:55:48 AM UTC+8, Juliano Nunes wrote: > > The click event is occurring as I tested with a toast message.

Re: [android-developers] how to get info from a clicked textView?

2012-05-07 Thread Andreas Bratfisch
Simply implement a ArrayList with all your TextViews included, ArrayLists does have fast access through Iterators, this is the way as GridViews are working with. In your TableView add the TextViews with the index parameter and get the TextView with the index. Give your TextView the index key as ta

Re: [android-developers] Switch Widget

2012-05-07 Thread Justin Anderson
Why have you defined an android1 namespace? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, May 7, 2012 at 7:14 AM, kiran g wrote: > Hi, > > I am new to Android.. > my problem is"Switch button in android generating an > error".please help me

[android-developers] Re: google map activity - show message "no network connection"

2012-05-07 Thread lbendlin
use a toast. On Monday, May 7, 2012 11:44:06 AM UTC-4, athpapa wrote: > > Hello, > > I have a public class like this: MyLocationActivity extends MapActivity > which shows me my location on google maps.But the program needs internet > connection. How can I display a message that "network connecti

[android-developers] Re: something better than 16bpp

2012-05-07 Thread guich
Hi, > If the frame buffer is 32bpp, what else would it report? So, what would be the way to retrieve that a screen is really true color? regards guich -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email

[android-developers] How can I get the number of constantsincluded in each API ?

2012-05-07 Thread seizo
> You could use reflection, I suppose. Hi Mark, thank you for the advice I tried it. I checked resource number by throwing integers from 0 to 10 like this -- int k; for(k=0; k<=10; k++){ int numTp3 = ContactsContract.CommonDa

Re: [android-developers] Error running a blank project

2012-05-07 Thread Dev Guy
On Mon, May 7, 2012 at 7:45 PM, Mark Murphy wrote: > On Mon, May 7, 2012 at 2:18 PM, DevGuy wrote: >> Hello I am trying to get started a simple hello world app going. I >> created a blank android (4.0.3) project and when I try to run it I get >> the following error. >> >> [2012-05-07 13:43:04 - H

Re: [android-developers] Customizing Android's default contacts app

2012-05-07 Thread Mark Murphy
On Mon, May 7, 2012 at 7:15 AM, shruthi santosh wrote: > Is it possible to customize the Android's default Contacts app to display > additional data??? By building your own firmware, yes. However, that is out of scope for this list -- try http://source.android.com. -- Mark Murphy (a Commons Guy)

Re: [android-developers] How can I get the number of constants included in each API ?

2012-05-07 Thread Mark Murphy
You could use reflection, I suppose. On Mon, May 7, 2012 at 9:02 AM, BluePencil wrote: > For example , as you know the API ContactsContract.CommonDataKinds.Email >  has five types of constants. > They are TYPE_CUSTOM / TYPE_HOME / TYPE_WORK / TYPE_OTHER / TYPE_MOBILE. > Of course I can find them

Re: [android-developers] Error running a blank project

2012-05-07 Thread Mark Murphy
On Mon, May 7, 2012 at 2:18 PM, DevGuy wrote: > Hello I am trying to get started a simple hello world app going. I > created a blank android (4.0.3) project and when I try to run it I get > the following error. > > [2012-05-07 13:43:04 - HelloAndroid] Error in an XML file: aborting > build. > > If

[android-developers] AndroidHttpClient retry POST with PHPSESSID

2012-05-07 Thread Alexis
I'm working with AndroidHttpClient to send some request, Server always use PHPSESSID so I facing this: - GET something - 401 here is the cookie - GET something - OK second get is resend automaticaly by AndroidHttpClient - POST data - 401 here is the cookie On this case Andro

[android-developers] google map activity - show message "no network connection"

2012-05-07 Thread athpapa
Hello, I have a public class like this: MyLocationActivity extends MapActivity which shows me my location on google maps.But the program needs internet connection. How can I display a message that "network connection is required" when the phone is not connected on the internet and open for exa

[android-developers] How can I get the number of constants included in each API ?

2012-05-07 Thread BluePencil
For example , as you know the API ContactsContract.CommonDataKinds.Email has five types of constants. They are TYPE_CUSTOM / TYPE_HOME / TYPE_WORK / TYPE_OTHER / TYPE_MOBILE. Of course I can find them easily to see the API reference on the web. But in case of programing, how can I get the number

[android-developers] Customizing Android's default contacts app

2012-05-07 Thread shruthi santosh
Is it possible to customize the Android's default Contacts app to display additional data??? I want to display an additional field in the native app. Is it possible to do that? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post

[android-developers] webservice or enligne database for my application android

2012-05-07 Thread abdelbar nasri
Hi !; hi, I'm going to develop image processing app in Android as Prixing . and i want an webservice to get information of the barcode decoded. or enligne data base. thanks -- You received this message because you are subscribed to the Google Groups "Android Developers"

[android-developers] Custom UI rotating control

2012-05-07 Thread Bernie Eng
Does anyone have any ideas on how to create a rotating control? Something that looks like this: http://www.raywenderlich.com/9864/how-to-create-a-rotating-wheel-control-with-uikit I came across 2 blog posts which is pretty close to what I need but, not quite: - http://mindtherobot.com/blog/

[android-developers] why am I receiving location updates without WakeLock if the device is put to sleep?

2012-05-07 Thread ste1024
In developing an app that needs to get periodic location fixes, I ran across several issues that are unclear to me. The application currently does not use any WakeLocks. Yet even if the device is put to sleep (e.g. via pressing the power button), I seem to be able to get location fixes. I have

[android-developers] Two survey on location based services and power management

2012-05-07 Thread Soumya
Hi all, For my research I am conducting two survey on LBS and PM.. Please fill up the surveys in the following links LBS: https://docs.google.com/spreadsheet/viewform?formkey=dENrODF5X1ZDSVp5R3NKWnlKM2NvaGc6MQ#gid=0 PM: https://docs.google.com/spreadsheet/viewform?pli=1&formkey=dGRLajk1Qzl

[android-developers] [Android LVL] Sporadic false negatives on client devices

2012-05-07 Thread Florin
Hello, I have an Android developer account and a couple of paid apps published on the Market since a while now. I have decided to use Android LVL for copy protection from the start on all of my apps, I found it pretty straightforward to use so I told myself why not? extra security is better than n

[android-developers] developing mp3 splitter, need help

2012-05-07 Thread arun kumar
Hi, I want to develop mp3 trimmer app. Can you please tell me how to approach. Do i need any encoder or decoder? How to get the current time stamp of the currently playing audio. I will catch the time stamps of the start and end point. Now how to trim the audio according to the start and end ti

[android-developers] How to find the Radius

2012-05-07 Thread Umamahesh Takkellapati
Hi In android when user location change get the radius of the user compared with his previous location could you please help me the way -- 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] Switch Widget

2012-05-07 Thread kiran g
Hi, I am new to Android.. my problem is"Switch button in android generating an error".please help me. http://schemas.android.com/apk/res/ android" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android1="http:// schemas.android.com/apk/res/android">

[android-developers] how to get info from a clicked textView?

2012-05-07 Thread Eran
i set up a TagActivity that has 4 tags, each tag sets the content of a large tableView that holds about 15 textViews Im trying to find a way to get the tag info aswell as the textView info as a return String now i can basicly compare all of the 60 ids one by one, but it seems too long. is there a

[android-developers] Error running a blank project

2012-05-07 Thread DevGuy
Hello I am trying to get started a simple hello world app going. I created a blank android (4.0.3) project and when I try to run it I get the following error. [2012-05-07 13:43:04 - HelloAndroid] Error in an XML file: aborting build. If I look at the "Problems" tab in eclipse, it says "Premature

Re: [android-developers] Re: appwidget setOnClickPendingIntent not always working

2012-05-07 Thread Ari Volcoff
I have a similar issue did you remove the Service or the Task to resolve the issue ? On Monday, May 23, 2011 7:20:53 AM UTC-7, biokys wrote: > > Thanks for your help. Now it looks like it is working. -- You received this message because you are subscribed to the Google Groups "Android Develope

[android-developers] Re: does NFC in gingerbread support card simulate?

2012-05-07 Thread Shailen Sobhee
Hello Michael, I see that you created the NFCTagInfo App, available on the market. This app is, by far, the best Tag reader, because of all the little information it can give us, for example the HEX/ASCII values of the sectors. Anyway, I just wanted to point out that it is possible to simulate

[android-developers] how to fetch access token for google api.Authenticating with OAuth 2.0 in android

2012-05-07 Thread Abhishek UB
Hiii, I need to fetch the access token for google account to access google reader data in android 4.0.4. using google api java client 1.8.0 beta. And for the sample code https://developers.google.com/google-apps/tasks/oauth-and-tasks-on-android it is showing the error "The method getAccountManager

Re: [android-developers] Re: Allow button inside listview to be clickable

2012-05-07 Thread Juliano Nunes
The click event is occurring as I tested with a toast message. The problem seems to be with Background Resource. Here is the code that I use to create the button: Button button = new Button(this.mContext); button.setId(1+columnIndex); button.setTextSize(TypedValue.COM

Re: [android-developers] Re: something better than 16bpp

2012-05-07 Thread Dianne Hackborn
On Mon, May 7, 2012 at 9:02 AM, guich wrote: > What i do know is that the Android OS > is returning incorrect information. If the frame buffer is 32bpp, what else would it report? -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to m

Re: [android-developers] Re: Add application licencing to apk

2012-05-07 Thread Jason Teagle
Take a look at the instructions here: http://developer.android.com/guide/market/licensing/setting-up.html#add-library Particularly, look a few lines down where it starts "If you are developing using the SDK command-line tools...". Why you aren't using Eclipse, though, is a mystery. Why make it

[android-developers] Re: Add application licencing to apk

2012-05-07 Thread huberte
I do not use Eclipse, so I ask myself if it's right : I think I have to modify the java file located in src/com/myproject and merge it with the example file from the SDK. Then I have to merge my Android manifest with the one in example. Am I right ? thanks. Le lundi 7 mai 2012 13:38:54 UTC-4

Re: [android-developers] Re: Add application licencing to apk

2012-05-07 Thread Justin Anderson
> > But can I start from my apk to add the licence ? > Ummm... what? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, May 7, 2012 at 11:40 AM, huberte wrote: > I do not use Eclipse. > > Le lundi 7 mai 2012 13:38:54 UTC-4, huberte a écrit : > >> Hi,

[android-developers] Re: Add application licencing to apk

2012-05-07 Thread huberte
I do not use Eclipse. Le lundi 7 mai 2012 13:38:54 UTC-4, huberte a écrit : > > Hi, I already have an apk. i did red > http://developer.android.com/guide/market/licensing/setting-up.html > > But can I start from my apk to add the licence ? > > thks > -- You received this message because you ar

[android-developers] Add application licencing to apk

2012-05-07 Thread huberte
Hi, I already have an apk. i did red http://developer.android.com/guide/market/licensing/setting-up.html But can I start from my apk to add the licence ? thks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send e

Re: [android-developers] can i put my sponsors banner as Add in my app

2012-05-07 Thread Justin Anderson
> i want to add a banner in my app showing my sponsors name > Ok, then do it... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sun, May 6, 2012 at 7:17 AM, Swapnil wrote: > i want to add a banner in my app showing my sponsors name > -- You received

Re: [android-developers] Serveur miroir

2012-05-07 Thread Justin Anderson
Your question has absolutely nothing to do with this list... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware 2012/5/4 bnr.android > Bonjour chers développeurs androïde, > > Je viens de créer une application qui permet l'ajout et l'affichage de > certains

[android-developers] Re: Confirmation with pressing back button

2012-05-07 Thread lbendlin
Most users press the back button for a reason. They may not take it gracefully when they get patronized "Are you really sure?". It may be easier for you to just take the appropriate action in your game (save the state, suspend the game). On Monday, May 7, 2012 9:24:17 AM UTC-4, Fran wrote: > >

Re: [android-developers] Confirmation with pressing back button

2012-05-07 Thread Jason Teagle
Depending on the version of Android you are targeting, this will also be very helpful: http://android-developers.blogspot.com/2009/12/back-and-other-hard-keys-three-stories.html lol... I didn't even know you could long-press hard buttons. -- You received this message because you are subscribe

Re: [android-developers] AccountAuthenticatorActivity

2012-05-07 Thread Justin Anderson
> > public static Context mContext; > Why are you making this static? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, May 7, 2012 at 3:11 AM, Jason Teagle wrote: > try mContext = this; >> > > That would then be an activity context, not an applica

[android-developers] SQLITE -query help

2012-05-07 Thread David Hodeffi
i have this db on sqlite(cause its for android 2.3 smartphones): (pseudo in sql) USERS userId int PK, userName nvarchar(50) GAMES gameId int PK, dateCreated datetime ROUNDS roundId int Pk, gameId int (FK to GAMES), dateCreated datetime, dateUpdated datetime ROUNDDETAILS roundId int, userId

Re: [android-developers] Confirmation with pressing back button

2012-05-07 Thread Justin Anderson
Depending on the version of Android you are targeting, this will also be very helpful: http://android-developers.blogspot.com/2009/12/back-and-other-hard-keys-three-stories.html Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, May 7, 2012 at 7:28 AM,

Re: [android-developers] Looking for a FIFO file storage system

2012-05-07 Thread Justin Anderson
What does this have to do with Android SDK development? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, May 7, 2012 at 9:27 AM, dillipk wrote: > Hi, > > I'm looking to implement a disk based caching system. The idea > is to allocate a certain

Re: [android-developers] Re: Allow button inside listview to be clickable

2012-05-07 Thread Justin Anderson
> > The problem is, the button is not clickable and doesn't change its state > (at least visually as configured on Background Resource). > - Try setting the android:focusable and android:focusableInTouchMode attributes to false. - Also, have you verified the button is not clickable? Put

[android-developers] android GestureOverlayView gesture layer margin

2012-05-07 Thread Evan
is it possible to give margin only for gesture layer of *GestureOverlayView*.Has anyone tried this before. -- 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 unsubsc

[android-developers] Re: something better than 16bpp

2012-05-07 Thread guich
Well, i'll consider that. thanks. -- 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...@googlegr

[android-developers] Re: Allow button inside listview to be clickable

2012-05-07 Thread Raffaele Sgarro
If I understand correctly, you should simply add android:clickable="true" to your list item On Monday, May 7, 2012 3:43:31 PM UTC+2, Juliano Nunes wrote: > > Hi, > > I needed to create kind of a sub-list that allows horizontal scrolling, so > I created the following structure inside my ListViewIt

Re: [android-developers] Re: something better than 16bpp

2012-05-07 Thread Jason Teagle
The P1000 seems to have a lcd screen. Anyway, i believe it is just a matter of time to have real 24-bpp screens on the market. My only concern is about a way to identify them. Have you considered the option of defaulting to 16 bpp, and letting the user choose whether to try changing up to 24 or

[android-developers] Re: something better than 16bpp

2012-05-07 Thread guich
Hi, Actually, i'm not sure at all. What i do know is that the Android OS is returning incorrect information. Ok, it can be a manufacturer problem, but the fact is that this information is not consistent, and therefore, cannot be used. The P1000 seems to have a lcd screen. Anyway, i believe it is

Re: [android-developers] Activity lifecycle and a null cursor

2012-05-07 Thread Jason Teagle
Unfortunately the crash reports don't show the device model. The NPE happens when the user clicks a row or one of the buttons in a row (since all three actions share the same code). I have imagined a possible cause for this issue. Looking into the sources (android/view/View.java) here is what

Re: [android-developers] Render Script samples does't show anything

2012-05-07 Thread Nicolas Embleton
Ok, I understand now ... You saved me hours of work... Thanks a lot Romain. Very very useful as usual. Nicolas. On Monday, February 28, 2011 2:17:56 PM UTC+7, Romain Guy wrote: > > You must run them on a device, they won't work on the emulator (at least > not the graphical ones.) > > On Sun, F

[android-developers] Looking for a FIFO file storage system

2012-05-07 Thread dillipk
Hi, I'm looking to implement a disk based caching system. The idea is to allocate a certain amount of storage space and save how much ever data fits in there, discarding of old files on First In First Out(FIFO) basis as I run out of space. Any idea on it's implementation or a sample sourc

[android-developers] Re: something better than 16bpp

2012-05-07 Thread RichardC
Are you sure that the physical screen on your test devices (not the controller chip) can do 24bpp. There are issues with screen controller chips reporting 24bpp with screens that can only do 16bpp and dithering the results (device manufactures have been know to mislead as well). This is excep

[android-developers] Re: Activity lifecycle and a null cursor

2012-05-07 Thread blake
Raffaele,   What information do you have, on the NPE?  Is it just user reports?  Something in them makes you certain that the problem is in the listener? G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do -- You re

[android-developers] Re: something better than 16bpp

2012-05-07 Thread guich
Same problem occurs with a Galaxy Tab 7 plus. guich -- 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+u

[android-developers] Re: something better than 16bpp

2012-05-07 Thread guich
Hi I made a test on a Defy with Android 3.2. The pixel format is 5, 32bpp. In a benchmark program, with 16bpp, i have 6.5s, in 32bpp, i have 7.7s. Also, its clear for me, by looking at the screen colors, that the device is mapping 32 bits to 16 bits, since i can easily see gray shades, which don't

[android-developers] Allow button inside listview to be clickable

2012-05-07 Thread Juliano Nunes
Hi, I needed to create kind of a sub-list that allows horizontal scrolling, so I created the following structure inside my ListViewItem template: And I added dynamically several buttons to this LinearLayout (schedule_minutes), which uses a

[android-developers] Re: Different Font Size on a Button

2012-05-07 Thread x300
Thank you, again. Most of my high-cost performance-sensitive stuff are run by the Handler on threads other than the main UI thread, and when I asked about Traceview in the past, someone told me "it is no good handling threads but otherwise is a good debugging tool" so I dismissed it without trying

Re: [android-developers] Activity lifecycle and a null cursor

2012-05-07 Thread Raffaele Sgarro
Indeed I agree. I am preparing a dialog to give users an opportunity to submit more information than a typical crash report. However I hope that someone from the Android team is on the list and can put some light on the overall Activity lifecycle and the management of views, threads and instance v

Re: [android-developers] Confirmation with pressing back button

2012-05-07 Thread Jason Teagle
One of these is that when the user press the back button of the phone - I mean that with a curved arrow-, the application is closed, so I want to ask for confirmation or something similar so, is there anyway to easy control this? I believe this link will help you considerably: http://stackoverf

Re: [android-developers] Re: Dalvikvm exception instantiating org.apache.http.entity.mime.content.FileBody

2012-05-07 Thread Slawomir Krupa
I know your pain man. That what I did 1. go http://hc.apache.org/httpcomponents-client-ga/httpmime/source-repository.html 2. check out src code using TortoiseSVN. 3. open folder that you checked out src code to: in my case httpmime on desktop 4. open src folder 5. open main folder 6. open java fol

[android-developers] Confirmation with pressing back button

2012-05-07 Thread Fran
Hi there, I am writing my first Android game. I have following the Mario Zechner's book "Begining Android Games" that I have found very useful to quick introduce in this world. In the first middle of his book his proposes a basic framework that I am using, that uses just one activity for all the g

Re: [android-developers] Re: View Pager performance hit when inflating views

2012-05-07 Thread Jason Teagle
But as soon as i add a linear or relative layout as parent to list view ...i am able to see the lag while scrolling Although I can't really help you reach an answer that will help, I will just say that using layouts as the parent *will* decrease speed performance due to having to do the e

Re: [android-developers] Activity lifecycle and a null cursor

2012-05-07 Thread Jason Teagle
while debugging on my devices (and emulators) I never got this NPE, so basically I am blind and must try to figure out what could happen on other devices. But, without being able to reproduce this behavior, the local debug is useless. I'd need to get in touch with the users I don't envy you i

[android-developers] Re: View Pager performance hit when inflating views

2012-05-07 Thread Varun Tewari
Okay so i tried some more Now layout xml has only listview as rootview and their is no performance difference as suchin total view pager has 80 listviews... But as soon as i add a linear or relative layout as parent to list view ...i am able to see the lag while scrolling I also lowere

Re: [android-developers] Activity lifecycle and a null cursor

2012-05-07 Thread Raffaele Sgarro
I appreciate your pragmatic response, however - while debugging on my devices (and emulators) I never got this NPE, so basically I am blind and must try to figure out what could happen on other devices. But, without being able to reproduce this behavior, the local debug is useless. I'd

[android-developers] Re: Different Font Size on a Button

2012-05-07 Thread x300
Thanks for the comment. I agree. This is the reason why I liked Zsolt Vasvari's code, and I did not change the RelativeSizeSpan to AbsoluteSizeSpan. But you have to remember an absolute size in pixels can get bigger or smaller depending on the displayed screen's density (dpi), meaning AbsoluteSi

[android-developers] Maha Abdel rahman wants to chat

2012-05-07 Thread Maha Abdel rahman
--- Maha Abdel rahman wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-89f5d0e994-ac20c7459b-oJRIvs5HskrSFoo8chvBdNIzXQc You

Re: [android-developers] Activity lifecycle and a null cursor

2012-05-07 Thread Jason Teagle
adapter = new SimpleCursorAdapter( /* query the SQLite db */); I can't understand why cursor may be null, since onResume() it's clearly initialized by the query. You would expect so, but it couldn't hurt to check (as a debugging test) if adapter.getCursor() actually returns a valid cursor im

[android-developers] Activity lifecycle and a null cursor

2012-05-07 Thread Raffaele Sgarro
My activity displays a ListView which retrieves its data from the associated cursor. I close the database (and the cursor) onPause, and get a new database (and a new cursor) onResume. This means that events callback should access the Cursor only when it's not null. However I get lots of NPE in

Re: [android-developers] how to disable options to select or cut or paste on text selection with android 4.0

2012-05-07 Thread Jason Teagle
In the log it showing 05-07 16:58:29.400: INFO/WindowManager(183): ... DRAW NOW PENDING OK... when is it showing this? Is this after you tried adding setLongClickable() or setOnLongClickListener()? I'm not sure how this relates to what you asked... -- You received this message because you

Re: [android-developers] how to disable options to select or cut or paste on text selection with android 4.0

2012-05-07 Thread Bunty syed
In the log it showing 05-07 16:58:29.400: INFO/WindowManager(183): createSurface Window{41cd54d8 PopupWindow:41893ab8 paused=false}: DRAW NOW PENDING On 7 May 2012 16:38, Jason Teagle wrote: > In android 4.0 version, when u select & long press text(specially a >> link or edit text),it shows an

Re: [android-developers] how to disable options to select or cut or paste on text selection with android 4.0

2012-05-07 Thread Bunty syed
Its coming for double tapping the text in the edit text... On 7 May 2012 16:38, Jason Teagle wrote: > In android 4.0 version, when u select & long press text(specially a >> link or edit text),it shows an ui with some options like cut(scissor >> image),select all,etc.. >> >> Is there any way t

Re: [android-developers] Re: IP Camera Live Streaming

2012-05-07 Thread Maha Abdel rahman
All ip Cameras can be controlled via android applications? On Mon, May 7, 2012 at 5:04 AM, gjs wrote: > Hi, > > Some / most (?) IP webcams come with an SDK, try reading that. > > For example http://www.axis.com/products/dev_sdk/ > > Regards > > On May 7, 1:00 am, Maha Abdel rahman wrote: > > I

Re: [android-developers] how to disable options to select or cut or paste on text selection with android 4.0

2012-05-07 Thread Jason Teagle
In android 4.0 version, when u select & long press text(specially a link or edit text),it shows an ui with some options like cut(scissor image),select all,etc.. Is there any way to disable that or any callback method to intercept that ??? Have you considered calling setLongClickable(false) on

Re: [android-developers] Re: gridview empty cell selection doesn't remove instantly after drag-n-drop from gridview

2012-05-07 Thread Jason Teagle
My problem just solved by doing this little modification: 1) Refreshing the adapter on drag and drop. 2) And then setting the adapter to my gridview. Good to know. Definitely a more 'correct' solution than most of the tricks I was suggesting (not least because yours worked!). -- You receive

[android-developers] how to disable options to select or cut or paste on text selection with android 4.0

2012-05-07 Thread Bunty syed
Hi All, In android 4.0 version, when u select & long press text(specially a link or edit text),it shows an ui with some options like cut(scissor image),select all,etc.. Is there any way to disable that or any callback method to intercept that ??? Thanks & Regards, Bunty Sayyad -- You rece

Re: [android-developers] Re: gridview empty cell selection doesn't remove instantly after drag-n-drop from gridview

2012-05-07 Thread Narendra Singh Rathore
Anyways, thanks a lot for giving your precious time and concern. With Regards, NSR... -- 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,

Re: [android-developers] Re: gridview empty cell selection doesn't remove instantly after drag-n-drop from gridview

2012-05-07 Thread Narendra Singh Rathore
OK, one more thing you could try, and then I'm out of ideas. > > When you remove the last item from the grid view, call setFocusable(false) > and setFocusableInTouchMode(false) on it *before* calling requestFocus() > elsewhere. That way, it should *never* be able to get the focus back. When > you

[android-developers] View Pager performance hit when inflating views

2012-05-07 Thread Varun Tewari
Guys, In my recent application, i had 80 items each one is a list view, in my View Pager. I observed a performance hit, if i create then *dynamically with Java code*v/s i *nflating view* from xml. I see a terrible lag in swiping left & right, when i use inflating view approach...That's because G

Re: [android-developers] Re: Different Font Size on a Button

2012-05-07 Thread Mark Murphy
On Sun, May 6, 2012 at 11:51 PM, x300 wrote: > If there is a collection of reference and comparisons on class/method > cost, (even a simple, but easy to use, list of execution cycles) or a > tool to let us compare them for different approaches for a task, it > would be a great help. Use Traceview

Re: [android-developers] Re: gridview empty cell selection doesn't remove instantly after drag-n-drop from gridview

2012-05-07 Thread Jason Teagle
Did you try changing the order of setSelection() and requestFocus()? Did you try calling draggableGrid.invalidate() after setSelection() and requestFocus()? Yes, I tried all of them, but nothing worked. OK, one more thing you could try, and then I'm out of ideas. When you remove the last it

[android-developers] Re: Different Font Size on a Button

2012-05-07 Thread x300
Thanks! I do believe this kind of curiosity, or inquisitive mind, is behind every breakthroughs. I might as well test if 1. or, 2.SizeSpan executes faster. Hope applying after applying brings the size back to default, otherwise it may face a problem when that part of the code gets initialized/re

Re: [android-developers] Re: gridview empty cell selection doesn't remove instantly after drag-n-drop from gridview

2012-05-07 Thread Narendra Singh Rathore
You only need to call those once, when you first create the gallery view - after that calling it again shouldn't have any effect. > > Ok, I agree. > > > Did you try changing the order of setSelection() and requestFocus()? > > Did you try calling draggableGrid.invalidate() after setSelection() a

Re: [android-developers] Re: gridview empty cell selection doesn't remove instantly after drag-n-drop from gridview

2012-05-07 Thread Jason Teagle
Make sure that you call setFocusable(true) and setFocusableInTouchMode(true) on the gallery view. This one helped me doing what I wanted, but only for the first time. After first dragging, its not working according to me. You only need to call those once, when you first create the gallery v

Re: [android-developers] Re: gridview empty cell selection doesn't remove instantly after drag-n-drop from gridview

2012-05-07 Thread Narendra Singh Rathore
3. Can the gallery actually *accept* the focus? If it can't, then trying to > give it the focus is probably failing and throwing the focus back where it > came from - onto the grid. Make sure that you call setFocusable(true) and > setFocusableInTouchMode(true) on the gallery view. > This one helpe

Re: [android-developers] Bluetooth chat application problem

2012-05-07 Thread Jason Teagle
I have installed "Bluetoothchat" Example on my phone. when i run "Connect Secure/Insecure" then it always show ... I have debugged application. i found the error is : javaIO exception Service Discovery failed See if this link helps: http://stackoverflow.com/questions/3397071/service-discovery

[android-developers] Bluetooth chat application problem

2012-05-07 Thread Bhavin
Dear sir i am using Samsung Galaxy y android 2.3.3 I have installed "Bluetoothchat" Example on my phone. when i run "Connect Secure/Insecure" then it always show unable to connect I have debugged application. i found the error is : javaIO exception Service Discovery failed Please help me to so

Re: [android-developers] AccountAuthenticatorActivity

2012-05-07 Thread Jason Teagle
try mContext = this; That would then be an activity context, not an application context. Although it might work for the case required (I doubt it - see below), there are reasons for using one over the other. http://android-developers.blogspot.co.uk/2009/01/avoiding-memory-leaks.html It als

Re: [android-developers] AccountAuthenticatorActivity

2012-05-07 Thread arunkumar ayyavoo
try mContext = this; On Mon, May 7, 2012 at 2:06 PM, Jason Teagle wrote: > wish that is any help with this scenario thx in advance >> > > Is this AccountAuthenticatorActivity-**extending class the main class / > activity of your application, or are you starting this activity yourself > from some

[android-developers] Re: All APK has cracked by apkcracks.net

2012-05-07 Thread al
It's not about software (it's about books), but I found this link interesting in this context too: http://radar.oreilly.com/2012/05/drm-free-day-forever.html Mike Hendrickson (vice president for content strategy at O'reilly) basically thinks it's a marketing expense and that the publishing indus

Re: [android-developers] Re: Different Font Size on a Button

2012-05-07 Thread Jason Teagle
i.e. using an html string like "199 km/h" seems to work, although you cannot specify the sizes exactly... Just a quick note, specifying big / small or similar is considered better than specific sizes in the world of accessibility since they refer to a size *relative* to the user's current def

Re: [android-developers] AccountAuthenticatorActivity

2012-05-07 Thread Jason Teagle
wish that is any help with this scenario thx in advance Is this AccountAuthenticatorActivity-extending class the main class / activity of your application, or are you starting this activity yourself from somewhere? The reason I ask is that starting a new project, making my main activity exten

[android-developers] Re: Different Font Size on a Button

2012-05-07 Thread al
Using spannables directly is certainly the better way to do it since the supported html tags apparently are not clearly specified as Mark already mentioned. However, out of curiosity, I looked at the source of Html.java. So, just for the sake of completeness: I found that apparently only suppo

[android-developers] jasper report in android... ?

2012-05-07 Thread mateen sysfore
is thr any one here knows wheather android supports all the dependencies required by jasper reports... ? i want to generate pdf report in some folder Regards, *sam* -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, s

Re: [android-developers] AccountAuthenticatorActivity

2012-05-07 Thread Live Happy
public static Context mContext; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_LEFT_ICON); setContentView(R.layout.main_adapter); getWindow().setFeatureDrawableResource(Window.FEATURE_LEFT_IC

Re: [android-developers] AccountAuthenticatorActivity

2012-05-07 Thread Jason Teagle
i have problem with application context when i call ContentResolver cr=mContext.getContentResolver(); its return nullpointerexception and is coz of the appContext how i can reslove that any help with that thx on advance Where is 'mContext' set? If you could show us the lines of code where it is

Re: [android-developers] Re: gridview empty cell selection doesn't remove instantly after drag-n-drop from gridview

2012-05-07 Thread Jason Teagle
sry for not being very clear, ps have a look at it. (Quick note: In every single case you call int xxx = mDraggableView.getDragItemId(); When dragging from the gallery, you call it 'fromPosition'; when dragging from the grid, you just call it 'position'. Since you *always* make this same cal

  1   2   >