[android-developers] Re: Exception Locking Canvas

2012-05-06 Thread Samuh
@Jason: thanks again for your inputs. No we are not passing any reference. This exception is seen as part of the ViewRoot.performTraversal() calls which is part of the standard code flow. Essentially, this happens whenever a new window is created for an activity and is to be registered with the

[android-developers] Re: Exception Locking Canvas

2012-05-06 Thread Samuh
@Jason: Thanks again for your inputs. If we keep the application up for long duration of time, this issue is seen more frequently. I meant - If we use the app for a longer duration of time without navigating out or switching to a different app we see Canvas Lock with Bad address. You

[android-developers] Re: Exception Locking Canvas

2012-05-06 Thread Samuh
@Jason: thanks for your inputs again! Any idea why does the request to acquire/allocate Graphic Buffer fail with Bad address? W/GraphicBufferMapper(2541): registerBuffer(0x3a2408) failed -14 (Bad address) W/Surface(2541): registerBuffer(...) failed -14 (Bad address) E/Surface(2541):

[android-developers] Exception Locking Canvas

2012-05-05 Thread Samuh
Activities in our application employ use of an OpenGL Surface that is drawn behind the main content of the activity. Every time, the activity is entered into a bitmap is captured and rendered on the GL surface and every time it is paused the bitmap is removed. It is observed that if we keep

[android-developers] Re: Exception Locking Canvas

2012-05-05 Thread Samuh
@Jason: thanks for the inputs. There are two reason for canvas lock; the other is failed to dequeue GL buffer. THe following is written to the logs when this happens: W/GraphicBufferMapper(2541): registerBuffer(0x3a2408) failed -14 (Bad address) W/Surface(2541): registerBuffer(...) failed -14

[android-developers] Custom Fonts

2011-06-01 Thread Samuh
We are using four different custom fonts across our app. These files are bundled in Assets and are opened in onCreate of every Activity. While studying the logs of our app we keep observing the following log from Skia decoder. 01-01 19:19:51.585: DEBUG/skia(1510): purging 197K from font cache

[android-developers] Hide Keyboard on a Password field

2011-05-17 Thread Samuh
While setting setInputType(InputType.TYPE_NULL); for the password field, the text we are inputting is visible and will not be masked by dots which is not desirable for password field. InputType.TYPE_NULL | TYPE_TEXT_VARIATION_PASSWORD will display the keyboard. If we try setting the content

[android-developers] Re: Hide Keyboard on a Password field

2011-05-17 Thread Samuh
If there is no virtual keyboard, how would users enter their password if their phone doesn't have an actual keyboard? Lets just assume, there are other methods available to do that. The only option left is disabling that from the Settings? -- You received this message because you are

[android-developers] Re: Hide Keyboard on a Password field

2011-05-17 Thread Samuh
Thanks for the suggestions. We want the user to enter the text, only that it would not be done using the Hard/Soft keyboard. Was of the opinion that setting the InputType to null and then using a TextWatcher/ customTransformationMethod to replace the character would help? -- You received this

[android-developers] Playing VIdeo in background and drawing Activities on top

2011-05-03 Thread Samuh
I have an application that has a transparent background in all of its Activities.There is a separate application(like Camera Preview) which displays the real time feed from Camera. Is it possible to somehow start my Application and display it atop Camera feed? Please note that I am not supposed

[android-developers] changing Font Size on Selection

2011-04-28 Thread Samuh
I am working on theming my application, and I would like to add effects to a listview item when it is selected. While I have successfully accomplished theming the text color, I would also like to make changes to the text size itself while pressed/selected. What are the alternatives to do this? Do

[android-developers] User Interface Design Question : Application UI as Overlays

2011-04-18 Thread Samuh
I am working on an Android application that needs to have a live visual feed playing in background. All the UI elements need be drawn atop this Surface. Though the UI is pretty basic it has several flows and we have divided each flows as Tasks and therefore the application has several activities.

[android-developers] Re: Source code for StackView(Honeycomb build) available yet?

2011-04-05 Thread Samuh
I tried locating source code for StackView and was not able to find it in the git repository. -- 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] Hosting and starting an executable from Android application

2011-04-04 Thread Samuh
Hi: I am working on an Android application that depends on an ELF binary: our Java code interacts with this binary to get things done. This runtime needs to be started and terminated on Application startup and application exit / on demand. Questions: 1. I am assuming that we will be able to

[android-developers] Source code for StackView(Honeycomb build) available yet?

2011-04-04 Thread Samuh
Has the source code for Honeycomb been made available for general public yet? I was looking for StackView.java in android.git.kernel.org but was not able to find it. Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Hosting an executable inside Android application

2011-04-04 Thread Samuh
I am working on an Android application that depends on a binary executable(ELF binary for ARM-linux architecture) for its business. There are java classes that interact with this binary. Since the application requires this binary to be running, I was thinking of packaging the binary inside the

[android-developers] How to implement a vertical Gallery with fixed focus?

2011-03-28 Thread Samuh
I am working on an Android application where the requirement is to have a vertical list of items that would scroll up and down on key presses. The focus(item selected) should remain fixed at the center of the screen. AFAIK, Gallery widget does not support vertical mode and we probably have to

[android-developers] Animated Application icons

2011-03-22 Thread Samuh
Is it possible to animate application icons? 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] Is it possible to limit/prevent screen projection in Android?

2011-03-03 Thread Samuh
Hi: We are attempting to play certain live content on Android clients that are protected using some DRM scheme. Not sure how foolproof DRM is or will be; is it possible to restrict projection of display by blocking USB or HDMI ports if available on device? Is this even allowed? Are there any

[android-developers] Re: Honeycomb Preview SDK: HTTP Live Streaming support validation

2011-02-23 Thread Samuh
When I try playing open streams(not encrypted), using the MediaPlayer_Demo in the API demos package, I get the following messages written to the logs: INFO/avc_utils(238): found AVC codec config (320 x 180, Main-profile level 2.1) INFO/ESQueue(238): found AAC codec config (48000 Hz, 1 channels)

[android-developers] Re: Honeycomb Preview SDK: HTTP Live Streaming support validation

2011-02-22 Thread Samuh
Many thanks for your help and the bug notifications...I was wondering from where you got the httplive info !! How could we guess ??? Some guy helped me with this info(see bug link). The documentation should be updated to reflect that. Are the encrypted streams you are testing public ? If so can

[android-developers] Implementing a grid with horizontal, vertical and diagonal scroll

2011-02-18 Thread Samuh
I am working on an application which is to display Time Table of some sort to the user. The list should be scrollable horizontally, vertically and diagonally. Sort of like panning in MapViews. The left pane/rows will account for a fixed number of unique items. The columns will define a time slot.

[android-developers] Avoiding getIdentifier calls.

2011-02-16 Thread Samuh
We have about 300 drawables/icons in our application and each drawable/ icon is associated with an Id meaningful within the functional context of our app. These icons are to be displayed in a Gallery and when the user makes a selection, the relevant Id for the selected icon needs to be passed to

[android-developers] Re: Honeycomb Preview SDK: HTTP Live Streaming support validation

2011-02-16 Thread Samuh
@Fox Mulder: I have filed a bug: http://code.google.com/p/android/issues/detail?id=14646q=stars%3D2colspec=ID%20Type%20Status%20Owner%20Summary%20Stars hopefully, someone at google will find some time out to comment. -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: HTTP Live Streaming

2011-02-16 Thread Samuh
AFAIK, MMS is not supported on Android. -- 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] Re: Honeycomb Preview SDK: HTTP Live Streaming support validation

2011-02-10 Thread Samuh
You should be ashamed. It's not supported on earlier devices and there is no indication that it will be supported by 3.0. @Aleksandr: Thanks for your reply I know that it was not supported earlier but a lot changed with regards to MediaPlayer framework and there was some confusion as regards

[android-developers] Re: Honeycomb Preview SDK: HTTP Live Streaming support validation

2011-02-10 Thread Samuh
I know that Honeycomb Preview SDK is not the finished product but did anyone try playing m3u8 playlist on it? Is this even worth trying of should I wait for final version of 3.0 SDK to be released. -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Honeycomb Preview SDK: HTTP Live Streaming support validation

2011-01-30 Thread Samuh
:shameless bump: -- 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

[android-developers] Re: Confusion over MediaPlayer Framework on GingerBread and Apple's HTTP Live Streaming Support

2011-01-28 Thread Samuh
I tried same code on 3.0 Preview SDK and was unable to play Apple's Test Stream.('http://devimages.apple.com/iphone/samples/bipbop/gear1/ prog_index.m3u8). Following debug stmts were written to a trace file, however : http://pastebin.com/kNXWYYhf can please someone explain what went wrong there?

[android-developers] Honeycomb Preview SDK: HTTP Live Streaming support validation

2011-01-28 Thread Samuh
I have tried playing via MediaPlayer Apple's test stream: http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8 The emulator displayed just a black screen. A trace was written to the logs which can also be found here: http://pastebin.com/kNXWYYhf Questions: 1. Can someone please

[android-developers] Re: Confusion over MediaPlayer Framework on GingerBread and Apple's HTTP Live Streaming Support

2011-01-24 Thread Samuh
I see that the relevant section of the Wikipedia page was altered by the author it now reads: RTP/RTSP streaming (3GPP PSS, ISMA), HTML progressive download (HTML5 video tag). Adobe Flash Streaming (RTMP) is supported through Adobe Flash Player plugin. Apple HTTP Live Streaming is planned to be

[android-developers] Confusion over MediaPlayer Framework on GingerBread and Apple's HTTP Live Streaming Support

2011-01-19 Thread Samuh
According to the release notes, StageFright replaces the OpenCore framework in the GingerBread release. It seems that there have been numerous discussion that says: Apple's HTTP Live streaming is supported by default since Android 2.3. Even the Wikipedia page:

[android-developers] Protecting Android apk to prevent decompilation, network sniffing etc.

2010-12-31 Thread Samuh
Is there a way to protect Android apk file so that the source code cannot be regenerated? Also, there are a number of network sniffers that allow HTTP monitoring, is there a way to bypass these such that the incoming/outgoing network traffic could not be monitored? I have read that code

[android-developers] Re: app security

2010-12-31 Thread Samuh
This post [http://digital-identity.dk/2010/12/protecting-ip-in-android- applications/] suggests that apart from obfuscation, we can try implementing a portion of (sensitive) code natively. And then to ensure that the native code is used/called by our application only, we can match the digital keys

[android-developers] HTTP Live Streaming

2010-12-30 Thread Samuh
We have a back end infrastructure set up to enable us do streaming over HTTP of live video content on iPhone and iPad(the Apple HTTP Live Streaming Standard). The stream audio is encoded using AAC format and video in H.264 bundled together in an MPEG 2 stream which is cut into segments (.ts)

[android-developers] Re: HTTP Live Streaming

2010-12-30 Thread Samuh
I can't say anything about which (if any) Android video players support RTSP, including authorization, so do your own research. This guy here[http://justdevelopment.blogspot.com/2009/10/video- streaming-with-android-phone.html] says streaming video over RTSP is possible using the MediaPlayer

[android-developers] Dynamically setting empty views

2010-12-07 Thread Samuh
We have four ListViews in a FrameLayout in one of our activities. We also have a common WebView in this Framelayout set as EmptyView for each of these lists. The content of this TextView is supposed to change at runtime depending on different contexts. As a result, we call: 1.

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

2010-12-05 Thread Samuh
I will say this again: please use real MIME types. Done! Thanks for your time and suggestions, 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

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

2010-12-03 Thread Samuh
@Mark: thanks for your reply and greetings of the holiday season! The reason I used these MIME types was that I was just wanted a general classification of the files based on their extension, into these four categories. And deemed them appropriate/enough. A quick search shows that a mapping file

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

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

[android-developers] Re: Questions about ThreadSafeHttpClient connection

2010-11-29 Thread Samuh
No. Threads call a certain getResponse() function which does a httpclient.execute() call. We do a response.getEntity().getContent() and pass the InputStream to the caller. So, you see, the HttpEntity is not handed over to anyone as is. From the Http Components documentation, I gathered that even

[android-developers] Re: Questions about ThreadSafeHttpClient connection

2010-11-29 Thread Samuh
I should take the time out to go through the code. I read somewhere that if the stream is at least read in full, the connection is returned back to the pool. I tried making almost concurrent requests from different threads and it seems that there is only a certain thread that is blocked waiting

[android-developers] Questions about ThreadSafeHttpClient connection

2010-11-27 Thread Samuh
We are creating a ThreadSafeClient for doing the network IO in our application using the following code: DefaultHttpClient sClient; final int MAX_TOTAL_CONNECTIONS = 50; HttpParams sDefaultHttpParams = new BasicHttpParams(); ConnManagerParams.setMaxTotalConnections(sDefaultHttpParams,

[android-developers] WebView focus and clickable links

2010-11-26 Thread Samuh
We have a ListView and a WebView in a FrameLayout. The WebView is set as empty view for the ListView. The WebView contains some HTML text with hyperlinks. The problem is when the List is empty and the webView is displayed, we cannot click the links in the WebView using the touch interface.

[android-developers] Questions reg. handling WiFi disconnects when device sleeps

2010-11-22 Thread Samuh
I am connecting to a remote server in my Android application. I have noticed that when the device goes to sleep/standby WiFi is disconnected and that when the device wakes up, it gets reconnected. A check-Network-Connectivity code has been put before httpClient.execute(..) call. An assumption is

[android-developers] Is it possible to format individual row items of a list on Selection?

2010-09-25 Thread Samuh
If a data row of my list contains a TextView and a Button, is it possible to format those components individually when the List row is selected? Like change drawable of a Button, font color of the TextView apart from the usual highlighting the background of the List row? How can this be achieved?

[android-developers] Re: Is it worth writing a ContentProvider and using CursorAdapter for this case?

2010-09-21 Thread Samuh
:shameless bump: -- 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

[android-developers] Application crashes on device boot.

2010-09-20 Thread Samuh
I have registered a Receiver component for ON_BOOT_COMPLETED broadcast, in my application. The receiver does just prints a line in its onReceive() callback. However, when I boot the emulator(by executing Run as-Android application command from Eclipse) and unlock the screen on start up, I get an

[android-developers] Re: Application crashes on device boot.

2010-09-20 Thread Samuh
That is exactly what I thought when I saw ANR, but I am just setting an Alarm in it. No network calls. -- 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

[android-developers] Re: IntentService: Sending Message to a handler on dead thread

2010-09-19 Thread Samuh
Mark: Thanks you very much for answering my questions. IntentService already uses a background thread for onHandleIntent(). Hence, do not use AsyncTask -- just execute your code in onHandleIntent(). 2. How can such exceptions be avoided? Do not use AsyncTask -- just execute your code in

[android-developers] Re: IntentService: Sending Message to a handler on dead thread

2010-09-18 Thread Samuh
:bump: Please help. -- 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

[android-developers] IntentService: Sending Message to a handler on dead thread

2010-09-16 Thread Samuh
We are starting an IntentService periodically using AlarmManager service. The IntentService class fires a few AsyncTask from its onHandleIntent() callback. The setup works well for some time. But when the device is put to sleep or if the application is exited and resumed after some time, whenever

[android-developers] Is it worth writing a ContentProvider and using CursorAdapter for this case?

2010-09-14 Thread Samuh
We are connecting to a number of WebServices and fetching a lot of structured data(XML). We are parsing this data and storing them into SQLite tables. This part of the application runs periodically in the back ground. On the foreground, the data fetched is displayed in ListViews. We have used

[android-developers] SQLite: IN comparison support

2010-09-14 Thread Samuh
I wish to execute the following query on my application's SQliteDatabase. String sql = Select col_1,row_id from Table1 where row_id IN(Select row_id from Table2 where key = 'key') I am using the rawQuery function of the SQLiteDataBase class for the same. The problem is when the inner query

[android-developers] Query contacts based on unformatted Phone numbers

2010-09-13 Thread Samuh
We are getting a set of telephone numbers(pure numbers with no formatting) from a remote web service. We need to display them in a list. But before that we have to query the contacts database and show display name of the contact instead of the phone number if there is a match. Question : 1. When

[android-developers] Strange Exceptions when deleting and reading contacts

2010-09-08 Thread Samuh
I am getting following exceptions when I try to read/delete contacts from my application using Contacts Content Provider. What does the following mean? ERROR/IMemory(1349): binder=0x490f38 transaction failed fd=-2147483647, size=0, err=-2147483646 (Unknown error: 2147483646) ERROR/IMemory(1349):

[android-developers] UI Monkey questions

2010-08-27 Thread Samuh
Is it possible to subject only a few activities of an application to events generated by UI Monkey tool? Thanks in advance! -- 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] Ways to notify activities of download completion.

2010-08-12 Thread Samuh
My application has an IntentService which runs periodically to download data from a remote server. The download task is run inside an AsyncTask which has reference to Application context only. The data downloaded is for entire application and is displayed across four different activities. When

[android-developers] Re: Ways to notify activities of download completion.

2010-08-12 Thread Samuh
Used an Broadcast Listener as an Anonymous Inner class of the Activity, registered/unregistered it via Java code and let the service Broadcast appropriate Intent. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Run AsyncTask from a non-ui Thread

2010-08-09 Thread Samuh
I have a helper class that contains definition of an AsyncTask(inner class). Other classes instantiate this class and call one of its method which in turn instantiates, the AsyncTask and starts execution. class TaskManager{ private class SomeTask extends AsyncTask{} public void performTask(){

[android-developers] Problem uninstalling an Application package from Android device

2010-07-26 Thread Samuh
We have an application which on start up pulls up a Terms and Conditions screen. When the user declines these terms we have to ask the user if he wishes to delete the package. So, from within the application we launch the following intent: Uri uninstallUri = Uri.parse(package:some.package.name);

[android-developers] Approach to cache large amount of Textual and audio data in Android application

2010-07-13 Thread Samuh
Hi: We are supposed to cache textual and audio data in our application until device is booted or maximum of two days, whichever happens earlier. To get a perspective on data to be cached, note that we are to store about 200 text headers containing around 10 fields, each of length 30 bytes and

[android-developers] Re: Approach to cache large amount of Textual and audio data in Android application

2010-07-13 Thread Samuh
:bump: -- 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,

[android-developers] Best Approach to implementing Polling in Android

2010-07-12 Thread Samuh
Hi All: I am required to work on an application which is be deployed on devices running Android 1.5. The application is supposed to maintain a connection with a server and regularly poll it for new data. The server will notify the client of new data following which the client will connect to the

[android-developers] Re: Best Approach to implementing Polling in Android

2010-07-12 Thread Samuh
A BIG thank you, Mark and Kostya for your answers and time! A few things... MarkDo not not to poll frequently. I am supposed to poll the server to update the client of the changes in (almost/near) real time. The interval suggested was five minutes. Is this too frequent? MarkNo, you have to

[android-developers] Making Video files Android ready for playback over HTTP

2010-07-09 Thread Samuh
I am working on an Android application which is supposed to play videos over HTTP on Android devices. Before we setup a server to host the video files just wanted a few things clarified: As per the developer documentation, Android supports .mp4 and .3gp container formats for video. The

[android-developers] Re: Making Video files Android ready for playback over HTTP

2010-07-09 Thread Samuh
Mark: Thank you! -- 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

[android-developers] Playing multiple audio files (mp3, 3gp) files concurrently

2010-06-23 Thread Samuh
What is the best way to play multiple audio files in mp3/3gp format concurrently? These files can contain about 3-4 minutes of audio. 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] Re: How to emulate onLowMemory?

2010-06-14 Thread Samuh
:bump: -- 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,

[android-developers] How to emulate onLowMemory?

2010-06-11 Thread Samuh
I have put some instructions in onLowMemory() callback and want to test the same. Is there a direct way to test onLowMemory function of the application subclass? Or will I have to just overload the phone by starting many apps and doing memory intensive tasks? Thanks. -- You received this

[android-developers] Fetch meta-data from in ID3 tags

2010-06-11 Thread Samuh
I have a .mp3 track that contains song meta-data (title,lyrics,etc.) in ID3 tags. Does Android have any support for reading this? What would be the best way to read the tagged information? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Fetch meta-data from in ID3 tags

2010-06-11 Thread Samuh
Got it. ID3v1 is easy. Use RandomAccessFile and then seekTo (File.length - 128) bytes. Rest of the bytes is what I need. -- 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

[android-developers] Does MediaPlayer support MP3+G or .kar file formats?

2010-06-11 Thread Samuh
There are a number of Karaoke application in Android market. I was wondering how these could have been written? Does Android MediaPlayer support MP3+G or .kar file formats? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Is it possible to link to iTunes Store from Android application?

2010-06-10 Thread Samuh
Is it possible to link to iTunes store from within an Android application? The user should be able to download a song and save it to his/her SDcard, play the file etc.? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Is it possible to link to iTunes Store from Android application?

2010-06-10 Thread Samuh
Thank you Mark and Sean. -- 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

[android-developers] Re: Is it possible to link to iTunes Store from Android application?

2010-06-10 Thread Samuh
I don't have an iTunes account to actually try this(hope this is not illegal). What will happen if I browse to iTunes Store from a browser on my phone and buy a song? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Ordered List

2010-05-25 Thread Samuh
I have to display an ordered list of items (expected level of nesting = 2) in a TextView. What is the best way to do this? I have tried creating a string resource such as: string name=html_listolliitem 1\n/liliitem 2\n/li/ol/ string and then setting this text in TextView. This just displayed

[android-developers] Re: Ordered List

2010-05-25 Thread Samuh
Can you provide a better explanation of what you're trying to do? sorry for being a little vague there; I am working on a FAQ page which is to display QA using an ExpandableListView. Some of the answers have bullet points (ordered lists). I want a way to generate these lists. In HTML, we have

[android-developers] Do I need to buy Google Maps license?

2010-05-20 Thread Samuh
I am embedding a MapView in my application which is used as a canvas to pin point a location. My question is do I need to buy a license if I publish my application as paid app in market? What is my app is free? Thanks. -- You received this message because you are subscribed to the Google

[android-developers] Executing a JavaScript from Android application

2010-05-19 Thread Samuh
I have an Android application that needs to incorporate some JavaScript code that tracks user events inside my application and submits feedback to an Analytics engine/service. This code needs to run on first visit of each Activity. Almost none of these Activities have WebViews. What would be

[android-developers] Re: Executing a JavaScript from Android application

2010-05-19 Thread Samuh
Should I include an invisible WebView in every page and somehow make it execute the JavaScript in onCreate()? That will slow down the start of your app and will consume a lot of memory. I doubt your users will appreciate this. I was not comfortable with this from the start. Not sure of

[android-developers] How to handle accents in XML encoded as utf-8??

2010-05-18 Thread Samuh
I am parsing a RSS2.0 feed on Android using XML Pull Parser. The encoding for the XML is set as UTF-8. The parser fails giving invalid token exception. When I save the received XML feed file and open it in the browser(FireFox), the browser cannot render the XML and spits out an Invalid

[android-developers] Re: How to handle accents in XML encoded as utf-8??

2010-05-18 Thread Samuh
Thanks for your reply Frank. 1) The encoding given in the HTTP response The charset of the response is UTF-8 2) The encoding given in the XML prologue XML prolog says UTF-8 3) The encoding setting of the Reader underlying the XPP. When doing a setInput on the parser I said:

[android-developers] Installing Eclipse Galileo (cocoa x86_64) and setting up Android ADT on OS X v10.6 Snow Leopard

2010-03-21 Thread Samuh
Hi, I am trying to install Eclipse Galileo on my MacBook running OS X v10.6 (Snow Leopard) and set it up with ADT plugin. I manually downloaded 64-bit cocoa version of Eclipse Galileo for JEE developers and ADT v0.9.6 from the respective offical sites. I unzipped/untarred Eclipse on my mac at:

[android-developers] Writing Twitter Client using OAuth: Callback fails

2010-02-15 Thread Samuh
I am working on an Android application which is to serve as a simple Twitter client. I am using OAuth for authorization and have registered my application with Twitter as new OAuth client. Now when the user authorizes the application, I expect to be taken to the Callback URL(which is pointing to

[android-developers] Re: Writing Twitter Client using OAuth: Callback fails

2010-02-15 Thread Samuh
I made a mistake above. The following intent is launched for authorization: Intent { act=android.intent.action.VIEW dat=http://twitter.com/oauth/ authorize? oauth_token=XXACTUAL_TOKEN_HEREXX8oauth_callback=myapp:///tweet cmp=com.android.browser/.BrowserActivity } -- You received this message

[android-developers] Handling large Bitmaps

2010-02-08 Thread Samuh
I have a bunch of image URLs. I have to download these images and display them in my application one-by-one. I am saving the images in a Collection using SoftReferences and also on Sdcard to avoid refetches and improve user experience. The problem is I dont know anything about the size of the

[android-developers] Re: Handling large Bitmaps

2010-02-08 Thread Samuh
Sorry to state the obvious, but since you downloaded the file why don't you downsample only picture that are either : - Larger than 1024x768 in size - Bigger than 500 KB or a smart mix of the two ? I guess because I was creating a Bitmap from the stream before I was writing it to the SD

[android-developers] Re: Handling large Bitmaps

2010-02-08 Thread Samuh
I could try and commit the stream to the file system first and then decode the file to create a Bitmap. That way, I can keep a check on the size of the File assuming that File.length would yield relevant results. I guess it would be better to display the Bitmap a little late than throw unexpected

[android-developers] Re: Handling large Bitmaps

2010-02-08 Thread Samuh
Sounds perfect! 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...@googlegroups.com

[android-developers] Using the BufferedInput and Output Stream classes with Bitmaps

2010-01-04 Thread Samuh
Does passing BufferedInputStream/BufferedOutputStream classes to the Bitmap functions like compress and decodeStream make these functions run any faster? Or does the underlying code for these function take care of wrapping a buffer around? Which one is better or faster of the belowmentioned or

[android-developers] Which approach is better?

2009-12-23 Thread Samuh
In my application I have three buttons that are to be part of each and every activity. These button are independent of each other and on click do mutually exclusive things(say launch different activity). So, in my layout XML for every screen I have a LinearLayoutButton/ Button/Button//LinearLayout

[android-developers] Re: Custom control or make the views(buttons) inline?

2009-12-22 Thread Samuh
As I have said, I have a requirement to create(or rather emulate) iPhone TabBar. I am not sure if the look of TabWidget can be customized forasmuch as to make it look like iPhone's TabBar. -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] About my posts and membership

2009-12-22 Thread Samuh
Two of my posts here on this forum got somehow copied to World_wide_with_god_ministry forum. I don't know anything about this group; never joined them, never visited their page.Now, I have them listed under My Groups drop down. I can't find a way to unsubscribe to this group. Did any one else

[android-developers] Re: Emulating TreeViews using Expandable ListViews

2009-12-21 Thread Samuh
:bump: -- 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,

[android-developers] Custom control or make the views(buttons) inline?

2009-12-21 Thread Samuh
I have a requirement to create a control similar to UITabBar in iPhone, which is to be present on every activity of my application. UITabBar essentially is a battery of buttons exhibiting a TAB like behavior: every button maps to an activity. I have two solutions for this: 1. In the layout XML for

[android-developers] Application Initialization: Best or Better Practice

2009-12-18 Thread Samuh
I have an application that is driven by a configuration XML: various app properties are loaded at the app start-time by parsing the XML and initializing static variables of some class. The data read from this XML drives different Activities of the application. Presently, I have called the parsing

[android-developers] Re: Can i initiate threads in BroadcastReceiver's onReceive method?

2009-12-18 Thread Samuh
I just skimmed through your post; my 2 cents: - you have not verified the Intent Action in onReceieve call - Generally, onReceive() should return immediately so you should use threads and/or background service, if possible. -- You received this message because you are subscribed to the Google

[android-developers] Emulating TreeViews using Expandable ListViews

2009-12-17 Thread Samuh
I am trying to create a treeview using expandable list view. I am able to achieve most of the functionality; the main problem is that while expanding and collapsing the list I want to dynamically resize the childview(at the moment I am specifying fixed value for height of the view). I want a

[android-developers] Questions: Bitmap

2009-12-15 Thread Samuh
I was reading something and came across a few statements that I failed to understand fully: Q1. Bitmap memory is different than heap memory.What could this possible mean? Q2. What is a native Bitmap? Q3. Decoding a 64x64 .png resource will give a 64x64, 32-bit in-memory bitmap.What is a in-memory

  1   2   >