[android-developers] Re: Button placement problems

2010-12-01 Thread Serdel
Thanks for the response. Yeah the centered_vertical is not necessary. I put because I was wondering whether I can o a margin from the center of the screen. For the second question - yes I need the space. The B1 should be placed below the center of the screen, and B2 and B3 should be in the bottom

[android-developers] Placing DB to webserver or phone for LBS

2010-12-01 Thread Faheem Khatri
I am creating LBS (android application) as a FYP. Help me where i put the database of my application in a web server(using MYSQL) or in android (My application using SQL Lite). The Poi's are huge so what i think sqlite will take time to filter it. is it well to put the database into web server so

[android-developers] Re: How to capture unlock event in activity.

2010-12-01 Thread Sarwar Erfan
Hi, For this purpose, you need to override the onResume method. Unlock is irrelevant here. Review the Activity life cycle for better understanding what is going on: http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle Hope this helps. Regards Sarwar Erfan On Dec

[android-developers] Re: Placing DB to webserver or phone for LBS

2010-12-01 Thread Sarwar Erfan
Hi, Put it in webserver and make it accessible via some web service (as you have planned). Think of situations if in future you have to update the data (which is quite certain). In that case, you update in your server and the user gets updated information without updating their android

[android-developers] ListView elements not clickable in all area

2010-12-01 Thread pedr0
Hi at all, I am developing an application which make an intensive use of ListView with different type of rows, for do this I have extended the BaseAdapter class and override its methods, the layout of ListView is very simple: ?xml version=1.0 encoding=UTF-8? LinearLayout

[android-developers] Re: sectionindexer is not updated when adapter's data is changed

2010-12-01 Thread Mor G.
Hi, Look in the code of AlphabetIndexer which implements SectionIndexer as well. http://www.google.com/codesearch/p?hl=en#uX1GffpyOZk/core/java/android/widget/AlphabetIndexer.javaq=alphabetindexersa=Ncd=1ct=rc I think the function you're interested in is setCursor. Good luck. Mor.

[android-developers] Re: ListView elements not clickable in all area

2010-12-01 Thread Sarwar Erfan
Hi Pedro, Try android:descendantFocusability=blocksDescendants in the LinearLayout of the row xml. Info: http://developer.android.com/reference/android/view/ViewGroup.html#attr_android:descendantFocusability Regards Sarwar Erfan On Dec 1, 2:58 pm, pedr0 pulsarpie...@gmail.com wrote: Hi at

[android-developers] Re: Detect OSK shown / hidden events

2010-12-01 Thread Juhani
Hi Dianne, I have overridden the fullscreen mode by adding android:imeOptions=flagNoExtractUi to my EditText. What we're trying to do (or to be exact what our designers demand) is that when clicking an EditText in the UI we will zoom it in nicely and smoothly. We have the animation nailed down

[android-developers] Re: ListView elements not clickable in all area

2010-12-01 Thread Sarwar Erfan
Also, android:clickable=true for the row layout. You might also be interested to make the individual children or a row not clickable. Regards Sarwar Erfan On Dec 1, 3:12 pm, Sarwar Erfan erfanonl...@gmail.com wrote: Hi Pedro, Try android:descendantFocusability=blocksDescendants in the

[android-developers] Re: ListView elements not clickable in all area

2010-12-01 Thread pedr0
Each solution doesn't work... Is an absurd behavior I think, but if I set android:clickable=true for the row layout I cannot select any item (??!) On 1 Dic, 10:15, Sarwar Erfan erfanonl...@gmail.com wrote: Also, android:clickable=true for the row layout. You might also be interested to make

[android-developers] Re: LocationListener sometimes not receiving updates from network provider

2010-12-01 Thread michael
Hi Geoff, Thanks for your valuable comments - I am relieved that it is not just me going crazy (: I will be logging WIFI status and asking my users to enable WIFI if they have problems. I will also log the phone model. Will let you know when I get some more data. Cheers, Michael. On Dec 1,

[android-developers] Re: ListView elements not clickable in all area

2010-12-01 Thread pedr0
I have partially solved the problem: simple change to fill_parent the listview android:layout_width paramter, but now I have all the item of the listView aligned in center position and not on the left.. On 1 Dic, 10:32, pedr0 pulsarpie...@gmail.com wrote: Each solution doesn't work... Is an

[android-developers] Re: how to review the app inside the app ; need not to go android market to rate app

2010-12-01 Thread Doug
On Nov 30, 8:33 pm, Shalini coolcool.shal...@gmail.com wrote: I have created an android app and i want to add review option inside the app. user need not to go to market ti rate the app. Can  anyone please tell me how to do that. I think the best you can hope for is to give a direct link to

[android-developers] Re: What's the best way to have your app 'sleep' for N milliseconds?

2010-12-01 Thread Doug
On Nov 30, 7:50 am, Emanuel Moecklin 1gravity...@gmail.com wrote: I would recommend using something like: This was actually unnecessarily complex. There's no need to post a whole new runnable to a handler that, in turn, sends a message to the same handler. You can just send the delayed message

Re: [android-developers] Re: ListView elements not clickable in all area

2010-12-01 Thread Kostya Vasilyev
Pedro, How do you register for click events in this list view? You shouldn't need to play any tricks with clickable, focusable, etc. Also, layout_height=fill_parent is a pretty weird setting for a list view item layout. For item alignment control, set layout_gravity=left on the child views.

[android-developers] Re: Android Grid problem

2010-12-01 Thread viktor
1) Parse XML with urls for your images; 2) Your implementation how you will be download images (caching on SD or 2 way caching, or direct uri for View) On 26 Лис, 06:38, chamith weerasinghe e05ch...@gmail.com wrote: hi all I'm very new to android. I need to get some Image urls from a xml file

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

2010-12-01 Thread HippoMan
Thank you. I have checked the items that I am displaying, and all of them contain tags like this: meta http-equiv=Content-Type content=text/html; charset=utf-8/ In every case, the charset is specified as utf-8 or UTF-8. Apparently, this is not sufficient to cause the text to be interpreted

[android-developers] how to zoom camera through code

2010-12-01 Thread Atik
Hello guys, i have created a camera app, but here i dont want to capture the image. just i want to put some zoom control similar like we have on google map inbuilt zoom controls or any else. but i need a funcationality that the after clicking on button the camera should zoom the image.. i have

[android-developers] Re: how to review the app inside the app ; need not to go android market to rate app

2010-12-01 Thread Yahel
Uri uri = Uri.parse(market://search?q=pname:your.package.name); Intent intent = new Intent(Intent.ACTION_VIEW, uri); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); If you go this way, don't forget to check there is a market intent available. I had a lot of FC's due to

[android-developers] Re: ListView elements not clickable in all area

2010-12-01 Thread pedr0
Thanks a lot guys, I solved, I have to change my rows layout using an RelativeLayout instead an LinearLayout! Kostya, I changed the ListView layout_width setting, not height, why is weird? On 1 Dic, 11:04, Kostya Vasilyev kmans...@gmail.com wrote: Pedro, How do you register for click events

[android-developers] Re: How to user my layout

2010-12-01 Thread pedr0
Dear Raju, What are you talking about it's very weird, an activity use a layout loaded with setContentView(), this XML file will be use to find the tag with findViewbyId(). If you don't want some attributes, simply don't declare it's inside the XML file, if you need to set some attributes at

[android-developers] Contact API problem with save datas

2010-12-01 Thread jef
Hello I'm facing a basic problem but i didn't find any tutorial in order to help me... I'm writing an application with sort of backup contact options. I want that my applications works for android phones since 1.5 to 2.2 So i write a two implementation of ContactApi, one for 1.5, 1.6 and an

[android-developers] Re: Very simple query INTENT

2010-12-01 Thread pedr0
1. Yes. 2. http://groups.google.com/group/android-beginners/browse_thread/thread/f11b306208970031 On 1 Dic, 07:18, Abhishek Talwar r.o.b.i.n.abhis...@gmail.com wrote: Hi guys I have two queries which should be really simple for you to handle :- 1. All the applications are stored in

[android-developers] Re: APK file package name

2010-12-01 Thread Bob Kerns
Ah, you beat me to the answer, excellent. But when checking my answer, I realized that there's no way that I can see to extract the original XML. 'xmltree' is a pain to decode, though I'm sure it's of great help to that one guy who maintains the XML encoding/decoding code! It would be easy to

[android-developers] Launcher icon gets scaled on X10 Mini

2010-12-01 Thread Olivier Guilyardi
Hi, I just got a Xperia X10 Mini running Android 1.6, and the launcher icon of my app is awfully scaled. I'm providing an ldpi icon, which strictly respects the icon guidelines, and after testing I can confirm that this ldpi icon is used in the launcher. But this 36x ldpi icon appears to be

[android-developers]

2010-12-01 Thread vineeshkc
hi, if u want develop any android application pls contact me kcvine...@gmail.com -- 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

[android-developers] Re: Button placement problems

2010-12-01 Thread kernelpanic
if you are using a relative layout with b2 b3 achored to the bottom left/right respectively - can you then declare b1 after these in the XML and align it above b2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

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

2010-12-01 Thread cool.manish
Hi All, I am creating a tab application with two tabs. In my TabActivity, I have a button if user clicks on it, i will fetch some data from the net and want to transfer it to the child activity of the tabs. Please help me in doing it. -- You received this message because you are subscribed to

Re: [android-developers] Re: ListView elements not clickable in all area

2010-12-01 Thread Kostya Vasilyev
01.12.2010 15:57, pedr0 пишет: Thanks a lot guys, I solved, I have to change my rows layout using an RelativeLayout instead an LinearLayout! Cool! Kostya, I changed the ListView layout_width setting, not height, why is weird? Your original message had height=fill_parent for the list item

[android-developers] Re: Help needed for Context object: GPS implementation

2010-12-01 Thread cool.manish
My query is as it that at the time of starting GPS listener, I am sending context from one activity. Now If I have moved to some other activity then will I be able to use same GPS Listener which had been started from previous activity. if context object has relation with application and not with

Re: [android-developers] Re: Button placement problems

2010-12-01 Thread Kostya Vasilyev
01.12.2010 16:29, kernelpanic пишет: if you are using a relative layout with b2 b3 achored to the bottom left/right respectively - can you then declare b1 after these in the XML and align it above b2 You can declare b1 after b2/3 and set layout_above=@id/b2 or b3.

[android-developers] Porting Andoid Apps

2010-12-01 Thread Ouael Mouelhi
Hi everybody, I am developing a game and I tested it in my HTC HERO. Everything works fine ! I thought that it will be OK for all android phones because I carried about screen's density and size. When I launched my game on a Nexus One, I had a memory leak issue. This was normal because I use

Re: [android-developers] Re: Help needed for Context object: GPS implementation

2010-12-01 Thread TreKing
On Wed, Dec 1, 2010 at 8:28 AM, cool.manish mannishga...@gmail.com wrote: Now If I have moved to some other activity then will I be able to use same GPS Listener which had been started from previous activity. Just re-set your listeners in each activity as needed. if context object has

Re: [android-developers] Re: setOnTouchListener

2010-12-01 Thread TreKing
On Wed, Dec 1, 2010 at 12:21 AM, dmodroid dmodr...@gmail.com wrote: So from my map activity, I want to say myOverlay.addEventListener(onTouch, myCallback). Then define your own callback class, add a function to your custom overlay addTouchListener(MyCallBack myCallback) where you set the

[android-developers] lower EditText isn't panned to when opening the Virtual Keyboard

2010-12-01 Thread poohtbear
Hi. I've made a tester to reproduce the issue: this is my layout: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical

[android-developers] Re: how to review the app inside the app ; need not to go android market to rate app

2010-12-01 Thread Chris Stratton
This shouldn't be possible, as it would let apps submit fake positive reviews of themselves. On Nov 30, 11:33 pm, Shalini coolcool.shal...@gmail.com wrote: Hi I have created an android app and i want to add review option inside the app. user need not to go to market ti rate the app. Can  

[android-developers] In Android 2.2.1 startSearch() seem to behave differently...

2010-12-01 Thread Satya Komatineni
The documentation of startSearch indicates that the globalSearch indicator of false will invoke the glbal search if there is not local search defined. if this indicator is true it will always invoke global search irrespective of local search. I am noticing that on a simple activity in an

[android-developers] Receiving ACTION_MEDIA_* broadcast events

2010-12-01 Thread Prakash Iyer
Hello, Wrote a simple activity that uses registerReceiver to register an internal subclass of BroadcastReceiver with an IntentFilter than has ACTION_MEDIA_EJECT as it's action. I have not set any thing else (data/category) or requested permissions in my manifest. I used the APIDemos from the

[android-developers] Re: Porting Andoid Apps

2010-12-01 Thread Yahel
Someone already had an issue when porting applications from a device to another one ? Every single one of us doing more than just displaying images of cats that purs when you click on it :D Multitouch, opengl support, intent availability, hardware support, the list of compatibility issues goes

[android-developers] Re: Market expanding to technically non-compliant devices?

2010-12-01 Thread dario
'Standalone' apps don't have to go away. OHA should commit to openness to make sure we don't have to fragment our apps. For example, using a front facing camera shouldn't require separate apks (even Qik had to do this). Fortunately thanks to a tip from Diane, we can now use the undocumented

[android-developers] Re: Receiving ACTION_MEDIA_* broadcast events

2010-12-01 Thread PI
Ok, just should've searched a little more before giving up! There is a thread from a year+ back on this that for some reason didn't show up in my earlier searches - I may have been too focussed on Droid at that time thinking this is a platform issue (my bad). In case it helps any one else, this

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

2010-12-01 Thread Frank Weiss
It would help if you were more specific about the problem. 1) What Unicode character code are you setting in the TextView that displays as garbage? 2) What exactly does garbage mean, rectangles, or unexpected characters like upside down question marks, etc? 3) Please post the code you are using

Re: [android-developers] What is the Android Sequence of Startup

2010-12-01 Thread Frank Weiss
There are a number of scenarios. The basic one is from the home page, but an app can also run when the device boots, wakes up, an alarm fires, or when another application sends an intent. The crux is the manifest which tells the Android OS what interactions the app is expecting and able to respond

Re: [android-developers] Re: Button placement problems

2010-12-01 Thread Daniel Drozdzewski
2010/12/1 Serdel adam.lichwierow...@gmail.com: Thanks for the response. Yeah the centered_vertical is not necessary. I put because I was wondering whether I can o a margin from the center of the screen. For the second question - yes I need the space. The B1 should be placed below the center of

Re: [android-developers] convert JPEG sketch of my apartment to google map

2010-12-01 Thread Frank Weiss
What would an image of your apartment look like and what specific locations do you want to mark? -- 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] get result when Settings.ACTION_SECURITY_SETTINGS closes, in app widget

2010-12-01 Thread Mariux
Hi, is there a way it can be triggered when Settings.ACTION_SECURITY_SETTINGS closes? I am working on a widget that opens ACTION_SECURITY_SETTINGS activity, should wait for it to close, then execute some code. Actually it starts the activity and execute codes while the activity is still opened,

Re: [android-developers] Re: Placing DB to webserver or phone for LBS

2010-12-01 Thread Faheem Khatri
Totally agree with you, Thanks Regards - Faheem Khatri On Wed, Dec 1, 2010 at 1:57 PM, Sarwar Erfan erfanonl...@gmail.com wrote: Hi, Put it in webserver and make it accessible via some web service (as you have planned). Think of situations if in future you have to update the data (which is

Re: [android-developers] Display images at bottom

2010-12-01 Thread TreKing
On Fri, Nov 26, 2010 at 2:17 PM, Daniel dhw4...@gmail.com wrote: I tried the following and it did work - I had a vertical linear layout object, added a TextView to it, and then added my other linear layout object with the images. In my LL object with images, I set the gravity to BOTTOM like

[android-developers] Save ID name in list view

2010-12-01 Thread Faheem Khatri
I want to save ID name in list view, like in c# while binding combo box i use to set two property combox.VALUEMEMBER combobox.DISPLAYMEMBER. value member saves the ID (for coding purpose) and display member saves the name (for front end) is there any property where i can set ListView value

[android-developers] Unable to create Database for content providers

2010-12-01 Thread Achie
My application has a database that has to be exposed to global search. I have the sqlite database in my res/raw dir. I am trying to copy the database file to the databases directory in my project but it throws a FileNotFoundException. I am guessing that this is a permissions issue. My application

[android-developers] Re: Array Adapter

2010-12-01 Thread kiros88
So basically on the function getView. I had a question im not sure about whats the argument View convertView for the middle? is taht suppose to be a default view or iono? On Nov 30, 9:01 pm, TreKing treking...@gmail.com wrote: On Mon, Nov 29, 2010 at 12:48 PM, kiros88 ghui...@gmail.com wrote:

[android-developers] getView what the arguments means?

2010-12-01 Thread kiros88
so basically im trying to figure out what View convertView means exactly. On the definition it says The old view to reuse, if possible. Note: You should check that this view is non-null and of an appropriate type before using. If it is not possible to convert this view to display the correct

Re: [android-developers] getView what the arguments means?

2010-12-01 Thread Kumar Bibek
Look at some examples and videos from Romain. http://www.youtube.com/watch?v=wDBM6wVEO70 Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Wed, Dec 1, 2010 at 11:52 PM, kiros88 ghui...@gmail.com wrote: so basically im trying to figure out what View convertView means

Re: [android-developers] getView what the arguments means?

2010-12-01 Thread Prakash Iyer
Isn't getView called from the system and you override it to give back a view typically to display a list item? You say that you are calling getView - any specific reason? On Wed, Dec 1, 2010 at 1:22 PM, kiros88 ghui...@gmail.com wrote: so basically im trying to figure out what View convertView

Re: [android-developers] Re: Array Adapter

2010-12-01 Thread Kostya Vasilyev
This has to do with list item view recycling. http://android-er.blogspot.com/2010/06/using-convertview-in-getview-to-make.html -- Kostya 01.12.2010 21:19, kiros88 пишет: So basically on the function getView. I had a question im not sure about whats the argument View convertView for the

Re: [android-developers] Re: Array Adapter

2010-12-01 Thread Prakash Iyer
what do you mean by default view? that method is supposed to return a View which is used to render the list item. the default implementation, whose source i recommend you read, returns back a TextView the id (you can pass a more complex view which has a TextView element etc. all of which is

[android-developers] SMS PDU Behaviour

2010-12-01 Thread Tez
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, Earlence -- You received this message because you are

[android-developers] Re: Geocoder throwing exception

2010-12-01 Thread ip332
Server is always running at Google.com Your phone needs a connection to this server in order to draw the map or to geocode a string. Without such connection you may see some pieces of map because of GoogleMaps caching but geocode interface requires direct channel to the server. On Nov 30, 6:46 

[android-developers] Re: [android-porting] how to set the SeekBar more narrow?

2010-12-01 Thread Deva R
seekbar of froyo video player?? GUI and video control of video players lies in packages/apps/Gallery3D/src/com/cooliris/media seek bar and update happens at http://git.omapzoom.org/?p=platform/packages/apps/Gallery3D.git;a=blob;f=src/com/cooliris/media/TimeBar.java#l347

[android-developers] Re: getView what the arguments means?

2010-12-01 Thread kiros88
Well okay so my main purpose to asking was in my app i wanted the user to be able to select the textview from the listview and once the user touches it the text changes colors. but i want also that if the user touches a new text the original one he touch goes back to the original color while the

[android-developers] Dumping the results of DefaultHttpClient.execute()

2010-12-01 Thread Bret Foreman
I want to dump the results of DefaultHttpClient.execute() into the log (just for debugging, not for all time). This methods returns an object of class HttpResponse. This response is going into an XML pull parser which is misbehaving so I'd like to see the raw XML. What method can I call to get at

[android-developers] Re: Market expanding to technically non-compliant devices?

2010-12-01 Thread Bret Foreman
I can certainly imagine apps that have voice-only navigation as Android moves into the automotive, gaming, and sports markets. Imagine a pair of Android-powered, voice-controlled augmented reality goggles. -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Dumping the results of DefaultHttpClient.execute()

2010-12-01 Thread Kostya Vasilyev
Bret, Kinds of depends on how you connect the http client and the parser. If you're using getEntity().getContent() to get the stream, I'd think you could write a tee input stream (just like the unix tee command). This stream class would read from the entity's stream, and return the data

Re: [android-developers] Re: Array Adapter

2010-12-01 Thread TreKing
On Wed, Dec 1, 2010 at 12:19 PM, kiros88 ghui...@gmail.com wrote: I had a question im not sure about whats the argument View convertView for the middle? is taht suppose to be a default view or iono? To add to what Prakash has said: this is a pre-existing view from your list that is no longer

Re: [android-developers] Re: Geocoder throwing exception

2010-12-01 Thread TreKing
On Wed, Dec 1, 2010 at 12:50 PM, ip332 iprile...@gmail.com wrote: Your phone needs a connection to this server in order to draw the map or to geocode a string. While geocoding and maps are related, they're not the same thing and I highly doubt they're backed by the same server. It's entirely

[android-developers] Re: Localization: no compression... huge APK...

2010-12-01 Thread Pent
Well, I managed to drop 30% off the size of my APK by munging most of the strings over from res/ to assets/ during the build. Thought I was home dry, but then switching to French noticed that the special characters (acute etc) were coming out as the odd '?' symbol. I would say the encoding is

[android-developers] Re: Localization: no compression... huge APK...

2010-12-01 Thread Pent
Course, as soon as I post I solve it :-) The perl script to do all the munging wasn't outputting utf-8. Pent -- 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

Re: [android-developers] Dumping the results of DefaultHttpClient.execute()

2010-12-01 Thread Frank Weiss
Seriously, can't you just dump the server's response with curl or wget on your desktop or else use the debugger to see how the parser is misbehaving? -- 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] Re: Dumping the results of DefaultHttpClient.execute()

2010-12-01 Thread Bret Foreman
My XML source is beta software on a server. I want something the server-side software engineers can see easily in a logcat - I'll dump the data to the log only when the XML parsing fails, of course, not all the time. On Dec 1, 1:12 pm, Frank Weiss fewe...@gmail.com wrote: Seriously, can't you

[android-developers] Re: Dumping the results of DefaultHttpClient.execute()

2010-12-01 Thread Bret Foreman
I'm going to try the mark() and reset() methods on the Entity's InputStream. With luck, I'll be able the read() the bytes into an array and reset the stream back to the beginning. On Dec 1, 1:17 pm, Bret Foreman bret.fore...@gmail.com wrote: My XML source is beta software on a server. I want

[android-developers] Re: Dumping the results of DefaultHttpClient.execute()

2010-12-01 Thread Bret Foreman
It turns out that markSupported() returns false so I'll have to override the class and implement mark/reset. -- 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

Re: [android-developers] Re: Localization: no compression... huge APK...

2010-12-01 Thread Dianne Hackborn
Fwiw, there is nothing that intrinsically requires the resource table to not be compressed. This is done because it allows it to be mmapped instead of loaded into RAM, which can be a lot more efficient at run time. If you want to, you can massage the .apk with a zip tool so that resources.arsc

Re: [android-developers] Re: Localization: no compression... huge APK...

2010-12-01 Thread Dianne Hackborn
On Sun, Nov 28, 2010 at 8:22 AM, DanH danhi...@ieee.org wrote: Yeah, the stuff in values is precompiled into an internal XML representation and isn't compressed. XML files that aren't precompiled should compress quite efficiently. That's not true, the stuff in values is parsed by aapt into

[android-developers] Restlet api

2010-12-01 Thread biokys
Hi, I am little bit confused about using of restlet framework. Can someone explain me, if restlet api works similarly as a classic web services (JAX-WS)? I cant figure out, how to transfer to server my custom data type and in the same call to return any value or another custom data type like long

[android-developers] Re: Market expanding to technically non-compliant devices?

2010-12-01 Thread Chris Stratton
On Nov 30, 9:12 pm, gjs garyjamessi...@gmail.com wrote: I am hoping to avoid the potential user confusion situation for an integrated (tv and phone) app of having to release two separate versions You can probably make a single apk that can do either the phone or tv half of the job. But why

[android-developers] Re: Geocoder throwing exception

2010-12-01 Thread ip332
Most likely the servers for maps and geocoding are different, however the common thing is that both services require connection. They both use the same network (cellular or WiFi) so if the network is down none of them will work (except cached map data). Geocode may fail if you submit wrong

[android-developers] Re: Dumping the results of DefaultHttpClient.execute()

2010-12-01 Thread Bob Kerns
How about instead, logging the exact request that failed? Then, your server engineers can add it to their test suites, and you can use curl or wget to get the response, and add that response to your test suite. What this lacks in tight coupling it more than makes up for by being a test that gets

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

2010-12-01 Thread HippoMan
Thank you very much. 1) I am not explicitly setting any unicode character code in the TextView. I display data that exists within e-books that are stored in epub format. I do not alter this data at all. I display it as is. Most of this displays OK, but quotes look like the following garbage ...

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

2010-12-01 Thread HippoMan
PS: I forgot to add that after I build this map, I just do the following to display the text within my TextView: // this.section is a String which holds the name of the // ebook section that I want to view. It must be a key // to the above-mentioned LinkedHashMap containing the //

[android-developers] Gallery doesn't both click and drag

2010-12-01 Thread jotobjects
I have a Gallery widget where I want each item to be clickable AND I want to be able to swipe the gallery to move it (of course). Once I set the OnClickListener on the items in the Gallery I can click them but no longer can move the gallery right and left. Do I have to play with onTouch down and

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

2010-12-01 Thread Hendrik Greving
Still having this problem :/ Anyone? - Original Message - From: Hendrik Greving To: Android Developers Sent: Tuesday, November 30, 2010 11:13 PM Subject: starting local service class not found I have package com.myapps.myapp; public class MyWidgetProvider extends

RE: [android-developers] Re: Geocoder throwing exception

2010-12-01 Thread XiaoXiong Weng
I recall there was an openmap where you could just download the area you need and store it to SD card and then view it from there, this can be beneficial to user who does not have internet. I'm trying to develop this software but I need a lot more time. Progress can be found at

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

2010-12-01 Thread HippoMan
OK. I figured it out after thinking more about what you said in your item 3. I need to convert the bytes that come out of the zip file into correct unicode. I changed the method as follows, and now it renders the characters properly: private boolean readEpubFile() { FileInputStream f

[android-developers] Re: Settings.Secure.ANDROID_ID not unique on DROID2?

2010-12-01 Thread Seni Sangrujee
I just saw a report about this unique ID issue affecting Galaxy Tabs too. Does anyone have one to verify? Issue 10639:ANDROID_ID not random if ro.serialno isn't set http://code.google.com/p/android/issues/detail?id=10639 Comment 2 by ddlatham, Today (16 minutes ago)

Re: [android-developers] Re: Market expanding to technically non-compliant devices?

2010-12-01 Thread Dianne Hackborn
Um. People. Google TV does not have Market on it. This didn't happen by accident. The platform isn't yet ready to give apps and their users a good experience on such devices. You know, a deliberate decision to not cause unreasonable pain for developers. As has been the case at pretty much

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

2010-12-01 Thread Mark Murphy
On Wed, Dec 1, 2010 at 7:09 PM, Hendrik Greving fourhend...@gmail.com wrote: Still having this problem :/ Anyone? Perhaps you do not have the service listed in the AndroidManifest.xml file. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy

Re: [android-developers] Re: Market expanding to technically non-compliant devices?

2010-12-01 Thread Dianne Hackborn
On Wed, Dec 1, 2010 at 8:42 AM, dario dario.nycj...@gmail.com wrote: 'Standalone' apps don't have to go away. OHA should commit to openness to make sure we don't have to fragment our apps. For example, using a front facing camera shouldn't require separate apks (even Qik had to do this).

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

2010-12-01 Thread HippoMan
... but I should actually use a ByteArrayOutputStream to avoid breaking up unicode characters that might span the 65536-byte boundary of my input buffer: private boolean readEpubFile() { FileInputStream f= null; ZipInputStream z= null; byte

[android-developers] Re: Dumping the results of DefaultHttpClient.execute()

2010-12-01 Thread Bret Foreman
Bob, The server side is enterprise stuff - code that has been around for at least a decade. I have no idea how the server-side engineers are generating their XML, nor do I want to know. But what I've observed is that the XML tree in the data I receive sometimes does not match the documentation.

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

2010-12-01 Thread HippoMan
I should clarify that I now don't need to do this: String content = new String(bytes, UTF-8); This is because java's default is unicode. I get the same result with or without the second argument to the String constructor. I now see that my original error resulted because I was converting to

Re: [android-developers] Re: Market expanding to technically non-compliant devices?

2010-12-01 Thread Mark Murphy
On Wed, Dec 1, 2010 at 7:40 PM, Dianne Hackborn hack...@android.com wrote: There are very few things forcing people to use separate .apks.  Yes, prior to 2.0, if an API was being made available as a shared library, you couldn't use android:required=false to allow your app to still be installed

Re: [android-developers] Re: Geocoder throwing exception

2010-12-01 Thread TreKing
On Wed, Dec 1, 2010 at 5:07 PM, ip332 iprile...@gmail.com wrote: however the common thing is that both services require connection. They both use the same network (cellular or WiFi) so if the network is down none of them will work (except cached map data). Well ... yeah ...

[android-developers] Re: Geocoder throwing exception

2010-12-01 Thread ip332
Off-topic, but 2 important cents: Do you really need to develop it by yourself when several more or less completed projects are available on the Android market already ? For example: http://www.mapdroyd.com/ or http://www.andnav.org/ The second one is (or going to be) an open source project. On

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

2010-12-01 Thread kiros88
Okay i dont want to get to many ppl confused so im going to try to ask this very simply. When android goes to this function when a user clicks on a item on your listview. basically u get a parent who im assuming is the array of textview that was set up during the setAdapter phase and view which

[android-developers] Re: getView what the arguments means?

2010-12-01 Thread hoyski
ArrayAdapter is a bridge between all of the items that can potentially be displayed (the items in your array) and those currently on the screen. Only the ones on the screen need to have View objects. getView() is an optimization method that allows you to reuse previously constructed Views as items

[android-developers] Re: Gallery doesn't both click and drag

2010-12-01 Thread jotobjects
Oops - I was using setOnCLickListener() [wrong thing to do] on the item instead of setOnItemClickListener() on the Gallery [right thing to do]. On Dec 1, 3:54 pm, jotobjects jotobje...@gmail.com wrote: I have a Gallery widget where I want each item to be clickable AND I want to be able to swipe

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

2010-12-01 Thread jotobjects
Its probably a bad idea to play with any View managed by the Adapter other than the one that is passed to onItemClick() or to getView(). So the idea that you find view + 1 is not going to work. There is lots of tricky View pool activity behind the scenes so you can't make any assumptions about

Re: [android-developers] Re: Market expanding to technically non-compliant devices?

2010-12-01 Thread Dianne Hackborn
I am sorry it is undocumented. But it is there, and you can use it starting with 2.0 and later. On Wed, Dec 1, 2010 at 4:51 PM, Mark Murphy mmur...@commonsware.com wrote: On Wed, Dec 1, 2010 at 7:40 PM, Dianne Hackborn hack...@android.com wrote: There are very few things forcing people to

[android-developers] Re: What's the best way to have your app 'sleep' for N milliseconds?

2010-12-01 Thread Emanuel Moecklin
You are right: private static final int WAKE_UP_DELAY = 5000; private static final int WAKE_UP_CALL = 0; private Handler handler; handler = new Handler(new Handler.Callback() { @Override public boolean handleMessage(Message msg) {

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

2010-12-01 Thread Prakash Iyer
My 2c - you are over-complicating this.The getView is ONLY to give back the view for the item that is requested. If you want this item to be colored X then do it here. If you want another item to be colored Y then do it when getView is called for that item. The state maintenance, i.e. what is X or

  1   2   >