[android-developers] How to parse element value using attribute value.

2011-05-23 Thread HariRam
Hi guys, I am parsing xml using DOM. I want to parse the element which is having attribute value. is this possible in DOM..?? For exampletag1 att=recentValue of tag1/tag1 tag2value of Tag 2/tag2. i want to parse only element having attribute value. pls guide me. i am new to android. -- Thanks

[android-developers] Re: Comments/Ratings not showing up on Market

2011-05-23 Thread Zsolt Vasvari
You are right, of course. I guess we can forget about those comments if they haven't yet appeared. On May 23, 1:34 pm, Tom Gibara tomgib...@gmail.com wrote: Personally, it's exactly the sort of optimization I would anticipate in a server application that has been designed for scalability.

[android-developers] Re: How to parse element value using attribute value.

2011-05-23 Thread Zsolt Vasvari
Are you knew to XML and DOM aslo? Because this is not an Android question. DOM works on any platform the same way. On May 23, 2:01 pm, HariRam hariram1...@gmail.com wrote: Hi guys, I am parsing xml using DOM. I want to parse the element which is having attribute value. is this possible in

Re: [android-developers] Re: How to parse element value using attribute value.

2011-05-23 Thread HariRam
I dont know DOM and XML. i am parsing XML in my android application, since that i want to parse only element having attribute value. do you know how to parse element using Attribute..?? On Mon, May 23, 2011 at 11:54 AM, Zsolt Vasvari zvasv...@gmail.com wrote: Are you knew to XML and DOM aslo?

[android-developers] Force hdpi drawables on mdpi-xlarge devices

2011-05-23 Thread nadam
Samsung decided to make it's mdpi-device Galaxy Tab use hdpi drawables simply because it looks better. Motorola decided to stick to mdpi on the Xoom. This is probably the core of the issues people have with making their apps look good on tablets. I know there are ways to make it right which

[android-developers] AdSence Publisher ID and Android Developer Console

2011-05-23 Thread Andre
Hi, Sorry, I have to write here, because the technical support of Android Market and Google AdSence is completely irresponsive! I need help from Google employees engaged in supporting of Android Developer Console site. In order to monetize their apps, developers from some countries (including

Re: [android-developers] Re: choppy game

2011-05-23 Thread Miguel Morales
Hmm, I must be blind because I'm not seeing anything obviously wrong. I *think* your issue is with how you're scheduling your time. You may want to read the Timer docs: http://download.oracle.com/javase/1.5.0/docs/api/java/util/Timer.html#schedule%28java.util.TimerTask,%20java.util.Date%29

[android-developers] Invalid column contact_id

2011-05-23 Thread b_t
Hi, I try to pick a contact number by: Intent intent = new Intent(Intent.ACTION_PICK, Contacts.CONTENT_URI); intent.setType(ContactsContract.CommonDataKinds.Phone.CONTENT_TYPE); And I try to get a contact from the result by: Uri contactData =

Re: [android-developers] Re: How to parse element value using attribute value.

2011-05-23 Thread Miguel Morales
Why not just use the xml parser that comes with Android: http://developer.android.com/reference/javax/xml/parsers/package-summary.html On Sun, May 22, 2011 at 11:37 PM, HariRam hariram1...@gmail.com wrote: I dont know DOM and XML. i am parsing XML in my android application, since that i want

Re: [android-developers] Re: How to parse element value using attribute value.

2011-05-23 Thread HariRam
Hi Miguel Morales, You are right, we can parse xml using Android. i already did that. i have problem with parsing xml using attribute. can you pls read my question properly. -- Thanks and Regards Hariram -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Re: Filter specific data from cursor before ListView. How?

2011-05-23 Thread Kostya Vasilyev
Ah, SQL injection... 23.05.2011 4:54, Gabriel Simões пишет: Thanks once again Kostya, I came up with a cleaner solution that still has one thing left to work: Instead of using Media.Audio.Album I got to using only Media.Audio.Media. It works as expected but the lack of the _id column now is

[android-developers] Re: AdSence Publisher ID and Android Developer Console

2011-05-23 Thread Zsolt Vasvari
I need help from Google employees engaged in supporting of Android Developer Console site. LOL. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from

Re: [android-developers] Re: How to parse element value using attribute value.

2011-05-23 Thread Miguel Morales
Your question is written in broken English so it's difficult to understand it. For example, you didn't mention you had already parsed the regular XML. Then you said you didn't know XML. So, to make it easier for all of us, you may want to write your question in proper English and put some more

[android-developers] Re: Connecting to https server from java

2011-05-23 Thread Jens
It's also quite possible the certificate chain is a bit iffy. You can check this quite easily by surfing to the URL with the *built- in browser* in your Android phone. If the certificate works there but *not* in your app (i assume you are using the Apache HttpClient?) its most often your chain

Re: [android-developers] Re: How to parse element value using attribute value.

2011-05-23 Thread Miguel Morales
BTW, from 2 seconds of using google: http://www.androidpeople.com/android-xml-parsing-tutorial-using-saxparser On Mon, May 23, 2011 at 12:25 AM, Miguel Morales therevolti...@gmail.comwrote: Your question is written in broken English so it's difficult to understand it. For example, you didn't

[android-developers] Re: Invalid column contact_id

2011-05-23 Thread Zsolt Vasvari
Your query will return the entire contacts database since you don't have a WHERE clause and a key. On May 23, 3:03 pm, b_t bartata...@gmail.com wrote: Hi, I try to pick a contact number by:                 Intent intent = new Intent(Intent.ACTION_PICK, Contacts.CONTENT_URI);

[android-developers] Re: Invalid column contact_id

2011-05-23 Thread Zsolt Vasvari
I take that back. I actually don't know if that query will work or not. I always just use ContactsContract.Contacts.CONTENT_URI and give it a WHERE clause and a key and it works with the CONTACT_ID column. On May 23, 3:23 pm, Zsolt Vasvari zvasv...@gmail.com wrote: Your query will return the

[android-developers] Re: AdSence Publisher ID and Android Developer Console

2011-05-23 Thread Zsolt Vasvari
But seriously, welcome to the life of an Android Developer -- we deal with the steaming pile of crap that the Developer Console is on a daily basis. But I seriously feel your pain -- it is impossible to get in touch with a human being on your own terms. You are completely at their mercy and the

[android-developers] Re: OpenGL on Original Droid stutters

2011-05-23 Thread niko20
I found the problem. I have an OC droid and SetCPU was set to on demand. The app must have been on the edge of CPU use so SetCPU was speeding up/ slowing down the CPU randomly. If I set SetCPU to performance than the animation is 100% smooth. That's also probably why touching the screen and moving

[android-developers] Re: Giant Android Device seen at I/O

2011-05-23 Thread Doug
You know that it's real because it has the most awesome Android Market app showing up twice on the home screen. On May 19, 6:05 am, SteveKeinath skein...@gmail.com wrote: I was at Google I/O and used the giant Android devicehttp://goo.gl/photos/U5SiuUOHUR Is there any way to buy/get one of

Re: [android-developers] Re: Save to SD

2011-05-23 Thread Miguel Morales
Yep that's ridiculously slow. What are you writing to the file? Are you streaming it from the internet? Have you tried posting the code one stackoverflow? Have you tried mounting the sdcard on your computer and moving a file there to check what the time should be? Try using a

[android-developers] Re: InApp Billing same account multiple devices

2011-05-23 Thread keianhzo
Ok, thank you. I have replied in the issue 14 list with my problem details. On May 19, 12:14 pm, Kostya Vasilyev kmans...@gmail.com wrote: There is already an open issue for lost notifications: http://code.google.com/p/marketbilling/issues/detail?id=14 however, it does not specifically

[android-developers] How To change height of TabWidget At Runtime

2011-05-23 Thread Our-Android
Hi All, Can anybody help me in this Please. How To change height of TabWidget At Runtime -- 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

Re: [android-developers] Mac source control

2011-05-23 Thread Olivier Guilyardi
Hello Bob, My personal favorite is SVN. A few months ago I worked with a graphic designer. Amongst over things, he designed some bitmaps, xml drawables and animations. I asked him to commit his work to SVN whenever he was done with a task. For this purpose, he used an OSX SVN gui named Versions:

[android-developers] Re: InApp Billing same account multiple devices

2011-05-23 Thread Zsolt Vasvari
Something doesn't sound right about relying on notifications for anything. No way that notifications can be made reliable at least not in any guaranteed time where any time may be infinite. What happens if the user shuts off his internet right after purchasing, for example? On May 23, 4:17 

Re: [android-developers] Re: InApp Billing same account multiple devices

2011-05-23 Thread Kostya Vasilyev
23.05.2011 12:55, Zsolt Vasvari пишет: Something doesn't sound right about relying on notifications for anything. Billing notifications are repeated by the Market server until the application confirms it's received them. No way that notifications can be made reliable at least not in any

[android-developers] Re: Connecting to https server from java

2011-05-23 Thread dashman
thanks all. yes i think the problem is with the server certificate authentication. the app is connecting to my own server https://www.myserver.com/url.. looks like the easiest work-around is to skip the authentication. On May 22, 10:23 pm, DanH danhi...@ieee.org wrote: Assuming the server

Re: [android-developers] Purchases stuck again in Google Checkout

2011-05-23 Thread Nikolay Elenkov
On Mon, May 23, 2011 at 10:33 AM, Zsolt Vasvari zvasv...@gmail.com wrote: Seems to have started happening again.  3 of my purchases from yesterday are still not Completed and half of mine from today That means that Google is holding my money. Purchases have been clearing here, but there

[android-developers] Android testing with android library

2011-05-23 Thread Tancho
Hello, I seem to have a problem with defining a test for a service I am developing the Project where the service is located has a project dependency towards a Commons project which is an Android Library. the code is running fine when running as an android app however when running tests the tests

Re: [android-developers] Purchases stuck again in Google Checkout

2011-05-23 Thread Kostya Vasilyev
23.05.2011 13:35, Nikolay Elenkov пишет: some in-app billing notifications are getting lost You are welcome to post your observations here: http://code.google.com/p/marketbilling/issues/detail?id=14 -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you

[android-developers] Updating row dynamically in table layout

2011-05-23 Thread pramod.deore
Hi to all, I am deveolping one application in that I am getting continous data from server, now I want to show this data in table format. like NameempId MobNo Pramod 12312334 Tom 345 456465 Harry 345 546 I am able to show data like this. But the challange is if suppose

[android-developers] Re: icons: getting conflicting information

2011-05-23 Thread Spooky
On May 22, 11:57 pm, Zsolt Vasvari zvasv...@gmail.com wrote: First of all, I would think very seriously about not building a new app that supports 1.5 in the middle of 2011. HonestlyI'm not so sure that I'm going to now. I'd seen (and asked about this in the Android Forums/Lounge forum

[android-developers] Re: How To change height of TabWidget At Runtime

2011-05-23 Thread kaundinya
use setheight property for the tabwidget and assign the value On May 23, 1:21 pm, Our-Android sachin.worldnet.prog...@gmail.com wrote: Hi All, Can anybody help me in this Please. How To change height of TabWidget At Runtime -- You received this message because you are subscribed to

[android-developers] Re: Updating row dynamically in table layout

2011-05-23 Thread pramod.deore
I had written some code for this like: First I had created one TreeSet object as: TreeSet ts = new TreeSetString(); public void checkExist() { if (ts.add(tokens[5])) {

[android-developers] Get current phone number on multi sim devices

2011-05-23 Thread viktor
Do any work with multi sim devices where is need to get current calling number. in my case 1st sim number return always, if I get it with TelephonyManager.getLine1Number() . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] Re: Save to SD

2011-05-23 Thread Mark Murphy
Agree with all the above. Er, below. What Miguel said. :-) A lot of I/O problems stem from inefficient writing algorithms (e.g., byte-at-a-time). Another test you can try is using DDMS File Manager or adb push to write a file to the SD card. If that is similarly slow, then the problem may be

Re: [android-developers] Android testing with android library

2011-05-23 Thread Mark Murphy
What the docs suggest, and what I have had success with, is to have three total projects: -- The library project -- Some app based on the library project (e.g., demo/) -- The test project set to test the app, not the library (e.g., tests/) Obviously, you do not need to write test cases for the

Re: [android-developers] Get current phone number on multi sim devices

2011-05-23 Thread Mark Murphy
Android does not have native support for multiple SIMs. You will need to ask your device manufacturer if there is a way, for their particular device, to get other phone numbers. On Mon, May 23, 2011 at 6:38 AM, viktor victor.scherb...@gmail.com wrote: Do any work with multi sim devices where is

[android-developers] Re: Invalid column contact_id

2011-05-23 Thread b_t
It returns only one row for a selected phone number. The URI contains the condition after the lookup key. This URI is returned by the phone number selection activity. On May 23, 9:39 am, Zsolt Vasvari zvasv...@gmail.com wrote: I take that back.  I actually don't know if that query will work or

[android-developers] Re: Get current phone number on multi sim devices

2011-05-23 Thread viktor
It is not easy to ask about chinese devices especially manufacturer. ))) Thanks. On 23 Тра, 14:17, Mark Murphy mmur...@commonsware.com wrote: Android does not have native support for multiple SIMs. You will need to ask your device manufacturer if there is a way, for their particular device,

Re: [android-developers] Purchases stuck again in Google Checkout

2011-05-23 Thread Nikolay Elenkov
On Mon, May 23, 2011 at 6:46 PM, Kostya Vasilyev kmans...@gmail.com wrote: 23.05.2011 13:35, Nikolay Elenkov пишет: some in-app billing notifications are getting lost You are welcome to post your observations here: http://code.google.com/p/marketbilling/issues/detail?id=14 I thought

[android-developers] Re: icons: getting conflicting information

2011-05-23 Thread MarcoAndroid
Here's the most recent official platform versions distribution: http://developer.android.com/resources/dashboard/platform-versions.html 1.5 + 1.6 = 5.3% so not that much anymore these days. If your app is quite basic (not using any fancy 1.6+ SDK functionality), you might as well still support 1.5

Re: [android-developers] Re: icons: getting conflicting information

2011-05-23 Thread Marcin Orlowski
On 23 May 2011 12:33, Spooky spooky1...@gmail.com wrote: On May 22, 11:57 pm, Zsolt Vasvari zvasv...@gmail.com wrote: First of all, I would think very seriously about not building a new app that supports 1.5 in the middle of 2011. HonestlyI'm not so sure that I'm going to now. I'd

[android-developers] Re: Filter specific data from cursor before ListView. How?

2011-05-23 Thread Gabriel Simões
Zsolt, While album_id is unique, in mediastore.audio.media it's not a primary key and repeats in each song's entry. This is why distinct is important and necessary here. About album_key, I think it's unique but I need to confirm.. the key things here is that a column named _id is necessary for

[android-developers] Handling webview event using JavaScript.

2011-05-23 Thread jagtap.jj
Hi All, I need guide, I am developing application using Android WebView, But I want the click and touch event of WebView should be handled using JavaScript. How to achieve this. Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Re: How to read SIM elementary file from android

2011-05-23 Thread Anees
Hi all, Any experts from android framework, please help. BR, Anees On May 19, 12:02 am, Anees aneesahame...@gmail.com wrote: Hello experts, I need to read the string inside SIM EF (Elementary File) SUME (Set up Menu Entity) Address 6F54 from Android . Can anyone kindly provide some methods

[android-developers] Re: How to get the user's nickname not username

2011-05-23 Thread ArcDroid
Is there anyway to get the phones nickname (used in the google marketplace)? Thanks http://www.arcdroid.com On Mar 24, 6:44 am, ArcDroid jacobrjohn...@gmail.com wrote: Is it possible to use the AccountManager? On Mar 22, 8:48 pm, ArcDroid jacobrjohn...@gmail.com wrote: I see lots of

[android-developers] Re: Android testing with android library

2011-05-23 Thread Tancho
well, the problem here is that we have a commons, which is an android library used across multiple projects, which are common classes, resources etc which most of them cannot be tested independently,and from what I can see it generally means that the projects cannot be tested at all if they use an

[android-developers] GLSurfaceView multi touch

2011-05-23 Thread Vinicius Carvalho
Hi there! I have a GLSurfaceView, and I'm trying to listen to multi touch events. Basically I want to use x/y move to rotate the model (just like the touchrotate example) but also the pinch gesture to zoom in/out. The problem is that it seems that the view is not sending all the fingers pressed

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

2011-05-23 Thread biokys
Hi guys, nobody knows? -- 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

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

2011-05-23 Thread Kostya Vasilyev
23.05.2011 16:58, biokys пишет: Hi guys, nobody knows? -- As far as I can tell from your previous post, you've got two cooks in one kitchen. UpdateService.onStart calls AppWidgetManager to update the widgets And presumably, so does this: new UpdateWidgetTask(context).execute(); --

Re: [android-developers] Re: InApp Billing same account multiple devices

2011-05-23 Thread TreKing
On Mon, May 23, 2011 at 4:15 AM, Kostya Vasilyev kmans...@gmail.com wrote: What happens if the user throws his phone out the window right after purchasing? That is the only way I shop. - TreKing

[android-developers] Re: icons: getting conflicting information

2011-05-23 Thread Spooky
On May 23, 6:30 am, MarcoAndroid marco...@gmail.com wrote: Here's the most recent official platform versions distribution: http://developer.android.com/resources/dashboard/platform-versions.html That's the newer one that I referred to (at least, I think I did). I printed it out last week,

Re: [android-developers] Handling webview event using JavaScript.

2011-05-23 Thread TreKing
On Mon, May 23, 2011 at 6:57 AM, jagtap.jj jagtap...@gmail.com wrote: I need guide, I am developing application using Android WebView http://developer.android.com/guide/webapps/index.html -

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

2011-05-23 Thread biokys
Thanks for your help. Now it looks like it is working. -- 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] ebook android

2011-05-23 Thread Diego Barbosa
Hi Guys, I'm having an idea to develop a digital book analyzing each possibilities saw the html5 as an option, but will I get to use the accelerometer to him? and also, I wonder how I can make the effect of folding a page in html5 would be possible? and the resources of the android, which I use to

[android-developers] extra data for search suggestions content provider

2011-05-23 Thread Ralph Bergmann
Hi, when I overwrite public boolean onSearchRequested() I can send some extra data to the search activity. [1] But how can I access this data in my suggestions content provider? Ralph [1] ... http://developer.android.com/guide/topics/search/search-dialog.html#SearchContextData -- You

[android-developers] Re: iterating through listview child views and getting tag throws class cast exception

2011-05-23 Thread Wall-E
No I'm not whacking the child views lol. I'm actually using the remove(Object o) method to remove a row. I am however using View.GONE to hide a child view but that I know is not really deleting the view. Anyway, I achieved what I was after by going at it using a different method. I still don't

[android-developers] Re: Appwidget set background and set background transparency/alpha

2011-05-23 Thread Jake Colman
S == String sterling.ud...@googlemail.com writes: S On Wednesday, May 18, 2011 2:34:59 PM UTC+1, Nikolay Elenkov wrote: S Doesn't RemoveViews.setImageViewBitmap() work? S Yes, it does. And on Froyo and above you can also do this: S RemoteViews.setInt(id,

[android-developers] Re: GLSurfaceView multi touch

2011-05-23 Thread Vinicius Carvalho
Hi, I fixed this by combining the GestureListener and getPointerCount(): public boolean onTouchEvent(MotionEvent e) { if(e.getPointerCount()1){ mode = ZOOM; } detector.onTouchEvent(e); float x = e.getX();

[android-developers] Re: Appwidget set background and set background transparency/alpha

2011-05-23 Thread String
AFAIK, it works the same as the android:background attribute in XML; you can set the background as either a color or a drawable, but not both. http://developer.android.com/reference/android/view/View.html#attr_android:background

[android-developers] Re: icons: getting conflicting information

2011-05-23 Thread String
On Monday, May 23, 2011 2:30:11 PM UTC+1, Spooky wrote: And yes it is still recommended practice to get a copy of them into your app, in case they might get removed in some new Android version. Just my opinion here, obviously, but shouldn't the SDK sample code be using icons from

[android-developers] Re: Save to SD

2011-05-23 Thread kypriakos
Well I am not doing anything fancy - I am using the following code segment to write the image to the card - are you doing something similar? String path = Environment.getExternalStorageDirectory().toString() + /p2pSOA; OutputStream outS = null;

Re: [android-developers] Re: Save to SD

2011-05-23 Thread Kostya Vasilyev
You are writing one byte at a time. outS.write(data[i]); This is going to be incredibly slow Try this: outS.write(data, 0, data.length) or just this: outS.write(data); -- Kostya 23.05.2011 20:01, kypriakos пишет: Log.i(p2pSOA,write start at +sTime);

[android-developers] Re: iterating through listview child views and getting tag throws class cast exception

2011-05-23 Thread Streets Of Boston
What type of list-adapter are you using? Some predefined types of adapters (like the CursorAdapter and maybe the ArrayAdapter as well), already use the 'tag' attribute of each list-item view (i.e. the view that the getView method returns). If you're using the 'tag' attribute as well for your

[android-developers] Re: How to capture system warnings in application ?

2011-05-23 Thread chcat
Thank you so much for this insight. I don't think this SDK has any future in the first place. In any case I would not want to work with it in the future. On May 21, 1:36 pm, Dianne Hackborn hack...@android.com wrote: Also don't count on being able to do that in the future.  Note that even

[android-developers] Re: unable to run the renderscript samples.

2011-05-23 Thread billconan
can somebody give us an answer?? On May 18, 7:31 am, Scythe scythe...@gmail.com wrote: I'm having the same issue here. I've tried many of the sample RS apps, along with the Carousel example mentioned on IO, each crashed with this message. Tried with a Galaxy Tab 10.1v, but I've heard that

[android-developers] Re: Get current phone number on multi sim devices

2011-05-23 Thread Chris Stratton
On Monday, May 23, 2011 7:29:30 AM UTC-4, viktor wrote: It is not easy to ask about chinese devices especially manufacturer. ))) Maybe you should just ask the user, via a preferences screen, what they want their phone number to be. Optionally you could pre-fill it with the line 1

[android-developers] Re: Save to SD

2011-05-23 Thread kypriakos
Thanks Kostya, Miquel and Mark, yes I agree, inefficient I/O algorithms would kills ya particularly on constrained devices. I posted the one byte at at time segment but I did try buffering data before writing it and using what Kostya pointed out below (outS.write(data, 0, data.length). I am also

[android-developers] Re: How to capture system warnings in application ?

2011-05-23 Thread Chris
On May 23, 12:44 pm, chcat vlyamt...@gmail.com wrote: Thank you so much for this insight. I don't think this SDK has any future in the first place. In any case I would not want to work with it in the future. And developers who would rather not scrub potentially identifiable data from a private

[android-developers] Re: Save to SD

2011-05-23 Thread kypriakos
I think since both methods of either buffering in memory and then writing all bytes at once OR writing a byte at a time are both slow it makes me believe is the hardware. I tried the tests that you guys suggested and the pushing files to it is slow as hell. I am assuming that means the good ol'

[android-developers] Re: Debugging Killed Activity

2011-05-23 Thread Kacee
You said your debugger detaches as soon as your activity gets killed. Check if activity for camera and activity for your usual app runs in separate process. You can check that in DDMS view in eclipse. If thats the case, then you would need to do Debug Configurations - New remote Application - Set

[android-developers] Re: Android testing with android library

2011-05-23 Thread A. Elk
The Android test case classes provide a way to *unit-test* a method or methods that have to run in the Android environment. Since they do unit tests, you should be able to test your library code within a larger .apk test harness. One way to do this would be to build a purpose-coded test

[android-developers] View.GONE but still accepts UI events

2011-05-23 Thread Anm
This is something that I've run into a couple of times, and I'm just curious about the thought process behind such design, if intentional: When a view has visibility GONE, it is still allowed to accept UI events. This is especially strange in positional UI events like touch, where any

[android-developers] App Widget (Home Screen Widgets) size in Honeycomb

2011-05-23 Thread Tomáš Hubálek
Hello, I followed widget definition guidelines described at http://developer.android.com/guide/topics/appwidgets/index.html#MetaData and I suspect that formula for calculation of widget size ((number of cells * 74) - 2) is wrong for Honeycomb. If wanted to create widget of size 6x4, so I added

Re: [android-developers] View.GONE but still accepts UI events

2011-05-23 Thread Justin Anderson
I have never run into this... What situations have you come across where this happens? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, May 23, 2011 at 1:13 PM, Anm andrew.n.marsh...@gmail.com wrote: This is something that I've run into a couple

Re: [android-developers] Re: How to get the user's nickname not username

2011-05-23 Thread Justin Anderson
I'm not even really sure I know what you are asking for and what is meant by a phone's nickname... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, May 23, 2011 at 6:43 AM, ArcDroid jacobrjohn...@gmail.com wrote: marketplace -- You received this

Re: [android-developers] Re: How to get the user's nickname not username

2011-05-23 Thread Kristopher Micinski
The nickname in goole marketplace? No, this is not possible. (At least, there is no intent or contentprovider tag for it.) Ask the user for it perhaps? On May 23, 2011 3:41 PM, Justin Anderson magouyaw...@gmail.com wrote: I'm not even really sure I know what you are asking for and what is

Re: [android-developers] Re: ListView, onFling(horizontal), gesture issues

2011-05-23 Thread Justin Anderson
If it is the problem that Doug mentioned, then one thing I did in a similar situation is to set the following attributes to false on the checkbox: - focusable - focusableInTouchMode - clickable Then I let the listview itself handle all the events. If you get a single click, pogrammatically

[android-developers] how to read all sms,calendar events,emails?

2011-05-23 Thread Hitendrasinh Gohil
hi, How can i read all the messages from sim as well as phone. I have tried the below code but not success yet. public static void getAllSMS(Context context) { try { Uri allMessage = Uri.parse(content://sms/); ContentResolver cr =

[android-developers] Re: View.GONE but still accepts UI events

2011-05-23 Thread Anm
This morning, I'm trying to animate the various state of a simple game. I have a transparent cover ViewGroup with a start and other buttons. When the user hits start, the entire cover animates away. At the end of the animation, I set the cover View to GONE which looks correct, but the start

Re: [android-developers] how to read all sms,calendar events,emails?

2011-05-23 Thread Gergely Juhász
First: these (sms, calendar, email) are not supported by the public API. What is you problem exactly? (for instance: you got an exeption with some error msg) Did you set the read sms permission? Another tip: you can dump your cursor with the DatabaseUtils dump functions very easily. For example

[android-developers] how to work with lucene and assets

2011-05-23 Thread Pepo Viola
Hi all, I ported an application that uses lucene to android, I copied the index files to a directory on assets, I know how you can get the path to that directory for use in the search index. Is there any way to get a reference to a directory on assets to use the File class (java.io)? thank you

[android-developers] Re: Reference an integer resource for Android manifest versionCode

2011-05-23 Thread andrew
Conclusion, in case of use for others: I have my own ant build file that calculates and sets the version.code property used by the standard Android build, from SVN Info of the working-version/revision/tag. (for anyone interested in this, let me know). I invoke this ant target from the -pre-build

Re: [android-developers] Re: Invalid column contact_id

2011-05-23 Thread Gergely Juhász
Use the PhoneLookup table for this. http://developer.android.com/reference/android/provider/ContactsContract.PhoneLookup.html String phoneNumber = // the given number 1. Make the URI to the contact: Uri uri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, Uri.encode(phoneNumber)); 2. Get

Re: [android-developers] how to read all sms,calendar events,emails?

2011-05-23 Thread Hitendrasinh Gohil
hi, i have achieved reading sms by following function though it is not recommend by google.*But how can i read calendar events?* *public* *static* *void* getAllSMS(Context context) { *try* { Uri SMSURI = Uri.*parse*(content://sms/); String[] projection = *new* String[] { _id, address, body,

[android-developers] Market not charging...

2011-05-23 Thread Simon Platten
This has happen twice now and I've no idea whyon two occasions a sale has shown in My Sales with both Charge and Post showing as grey for over 24 hours, normally after 24 hours the sale is either cancelled or has been confirmed and shows green. Whats happening? Thank you, Simon -- You

[android-developers] Re: Input method randomly disabled?

2011-05-23 Thread Drew
After further debugging, it appears this problem is indeed an Android bug, and is only present if the app in question is moved to the SD card. I've reproduced with every app containing an input method that lets you move to SD so far. I guess I'll report it through more conventional channels.

Re: [android-developers] Market not charging...

2011-05-23 Thread TreKing
http://groups.google.com/group/android-developers/browse_thread/thread/fef863567d3f32dc - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered

Re: [android-developers] Re: Input method randomly disabled?

2011-05-23 Thread Kostya Vasilyev
Have you seen this? http://developer.android.com/guide/appendix/install-location.html#ShouldNot Applications That Should NOT Install on External Storage Input Method Engines Your IME will be replaced by the default IME. When external storage is remounted, the user can open system

[android-developers] Re: Purchases stuck again in Google Checkout

2011-05-23 Thread Sy
I have had two recent sales that have failed to charge after a 24 hour period...what is going on? On May 23, 12:30 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Mon, May 23, 2011 at 6:46 PM, Kostya Vasilyev kmans...@gmail.com wrote: 23.05.2011 13:35, Nikolay Elenkov пишет: some

[android-developers] Text scaling properly on two different mdpi devices (Evo, and Galaxy Tab 10.1)

2011-05-23 Thread Mike
I've started work to get my games to scale nicely for the higher-res displays like the Xoom and Galaxy Tab devices. I've made use of the ldpi/mdpi/hdpi/xhdpi folder naming convention for my resources which works nicely for layouts and graphics, but not so much for text size scaling. The problem

[android-developers] Localized XML Layouts

2011-05-23 Thread Pragati Ogal Rai
Hi, We support our app in multiple countries and in multiple languages. Some of the layouts work very well in English but do not look good when translated in other languages; for example, text spills over to multiple lines or colums for more verbose languages like German. Are there any

[android-developers] Re: Purchases stuck again in Google Checkout

2011-05-23 Thread Streets Of Boston
I've had this happening to my sales for a long time now. There are only a few of those, though, not even 1%. -- 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

[android-developers] Re: iterating through listview child views and getting tag throws class cast exception

2011-05-23 Thread Wall-E
SOB, that would make sense but no I am using the set and get Tag methods on a child of the ListView. It is set on an ImageView to be more exact and it is set inside of the getView method but I use the getTag outside of getView so I don't know if that changes anything, I wouldn't think it would.

Re: [android-developers] Text scaling properly on two different mdpi devices (Evo, and Galaxy Tab 10.1)

2011-05-23 Thread Dianne Hackborn
Evo and Galaxy Tab are both hdpi (though the Tab technically should probably be mdpi... hdpi is okay though, it is just a design decision for the device to make the overall UI larger). Also density != higher res. It is REALLY REALLY important to understand this. The Xoom is mdpi but much

[android-developers] Re: Purchases stuck again in Google Checkout

2011-05-23 Thread Zsolt Vasvari
Well, you guys are locking. 6 of my orders, about 15%, haven't charged in the last 48 hours. On May 24, 5:45 am, Streets Of Boston flyingdutc...@gmail.com wrote: I've had this happening to my sales for a long time now. There are only a few of those, though, not even 1%. -- You received this

[android-developers] Re: Purchases stuck again in Google Checkout

2011-05-23 Thread Zsolt Vasvari
Locking - Lucky On May 24, 6:19 am, Zsolt Vasvari zvasv...@gmail.com wrote: Well, you guys are locking.  6 of my orders, about 15%, haven't charged in the last 48 hours. On May 24, 5:45 am, Streets Of Boston flyingdutc...@gmail.com wrote: I've had this happening to my sales for a long

Re: [android-developers] Re: View.GONE but still accepts UI events

2011-05-23 Thread Dianne Hackborn
If you are receiving down events, then the view is almost certainly not set to GONE or it is still animating. The code for this part of dispatching in ViewGroup is pretty simply, and just immediately skips any non-visible views: for (int i = childrenCount - 1; i = 0; i--)

[android-developers] book

2011-05-23 Thread ARUMUGAM S
i will come tomorrow -- 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

  1   2   3   >