[android-developers] Creating integer array of resource ids

2011-03-18 Thread droid-stricken
Hi All, I have some images in my res/drawable folder. Let's say img1.png, img2.png and img3.png I am currently creating an int array of these image IDs in Java like this - int[] imgIds = {R.drawable.img1, R.drawable.img2, R.drawable.img3}; Instead is it possible to create an int arr in one of

[android-developers] mediaplayer surface initialized to a frame

2011-03-21 Thread droid-stricken
Hi All, I am creating a surface holder for displaying my video and creating the mediaplayer instance as well. My question is - How to display the first frame on the surfaceView and then provide a button for the user to click that starts the actual playback of the video? Currently, my screen is

[android-developers] Re: mediaplayer surface initialized to a frame

2011-03-21 Thread droid-stricken
I think i have a solution for this. Using a background image for the surface view and removing the background before calling mediaplayerinstance.start() works for me. Thanks. On Mar 21, 1:09 pm, droid-stricken harik...@gmail.com wrote: Hi All, I am creating a surface holder for displaying my

[android-developers] SearchView as part of the AlertDialog

2011-05-07 Thread droid-stricken
Hi All, I am trying to place the search widget [SearchView basically] in the title part of an AlertDialog. Is that allowed i.e will it work? The idea is to have the user enter a search word and when he/she presses the Enter key on the keyboard, to use the search word entered to search through an

[android-developers] scrollView in AlertDialog body not scrolling…

2011-05-08 Thread droid-stricken
Hi All, I am trying to have a ScrollView in the message part of the AlertDialog. But, i am unable to get the desired result. Following is the relevant piece of code. If you find something incorrect in the way i am building the custom view, please let me know. TIA. protected Dialog

[android-developers] simultaneous download of files - best way to handle it

2011-05-13 Thread droid-stricken
Hi All, I am writing an application targeting API level 9 or higher. So, i have decided to go with DownloadManager Class that SDK offers. My question is 2 part - 1. When i am downloading a single file, how do i display the progress of the download. I see i can get COLUMN_TOTAL_SIZE_BYTES and

[android-developers] video playback on emulator target android 3.0 API 11

2011-03-28 Thread droid-stricken
Hi All, I would like to know if anyone was able to successfully play the video on the android emulator targetting 3.0 api 11. I am able to play it on the xoom device but the same apk and setup (video file located at the /mnt/sdcard/ location) does not work on the emulator. Was wondering if any

[android-developers] Video Playback within a service component...

2011-04-01 Thread droid-stricken
Hi All, My question has been asked once before - http://groups.google.com/group/android-developers/msg/03372af088048de6 I could not see any replies to that one or find other questions on the forum that were similar to this one. Do anyone have any idea how to handle or work-around the above

[android-developers] ListViews inside TableLayout...

2011-04-05 Thread droid-stricken
Hi All, I have a TableLayout with one TableRow. The first column/cell is a ListView. The second cell/column is a TableLayout again which consists of 2 ListViews. When i inflate the xml layout, everything looks fine and i have set of adapters for each of the 3 ListViews. I have added dummy

[android-developers] Purchasing a phone for development

2011-04-18 Thread droid-stricken
Hi All, I finally put together some change to be able to afford a device for purely development purpose. I would appreciate which phone/device you would recommend that gives the best bang for the buck and can be used for as long as possible without any issues for future firmware upgrades. Also,

[android-developers] Obtaining access to the surfaceView instance

2011-04-27 Thread droid-stricken
Hi, I have an activity - public class mainActivity extends Activity { private SurfaceView sv; @Override public void onCreate(Bundle savedInstanceState) { sv = (SurfaceView) findViewById(R.id.video_surface); . } } I have a service - public class VideoService extends Service {

[android-developers] Re: Obtaining access to the surfaceView instance

2011-04-27 Thread droid-stricken
believe. Thanks. On Apr 27, 11:18 pm, Dianne Hackborn hack...@android.com wrote: You can't do this from a service.  A service is not associated with a UI. On Thu, Apr 28, 2011 at 12:15 AM, droid-stricken harik...@gmail.com wrote: Hi, I have an activity - public class mainActivity

[android-developers] inflate popup menu items programatically

2011-05-03 Thread droid-stricken
Hi, [I have posted the same query on StackOverflow forum as well. So, kindly excuse the re-posting here - was not sure if this was a beginner's level question or a beyond beginner's level] I have a button in my activity, pressing upon which, the following method gets called - private

[android-developers] ListView Item Focussable issue

2011-05-03 Thread droid-stricken
Hi, There seems to be a lot of questions on this very issue. I have gone thro' most of them and yet unable to find a workable solution :( I am unable to get the focus on any item of my list. My Activity DOES NOT extend ListActivity and i do not have any ListView with default ID -

[android-developers] Re: ListView Item Focussable issue

2011-05-04 Thread droid-stricken
, droid-stricken harik...@gmail.com wrote: Hi, There seems to be a lot of questions on this very issue. I have gone thro' most of them and yet unable to find a workable solution :( I am unable to get the focus on any item of my list. My Activity DOES NOT extend ListActivity and i do not have

[android-developers] An application that hosts a set of other applications

2011-10-13 Thread droid-stricken
Hi All, I have posted this question on StackOverFlow. So apologies for those that find this redundant - but i could not get any ideas (yet) from that forum. So, i repeat here: - I have half a dozen apps that i want to put on Google Market. One of them are ready and the other are in progress.

[android-developers] Re: An application that hosts a set of other applications

2011-10-13 Thread droid-stricken
of sections that could be purchased (or upgraded). Steven Studio LFPhttp://www.studio-lfp.com On Thursday, October 13, 2011 4:17:00 PM UTC-5, droid-stricken wrote: Hi All, I have posted this question on StackOverFlow. So apologies for those that find this redundant - but i could

[android-developers] Re: An application that hosts a set of other applications

2011-10-13 Thread droid-stricken
. Steven Studio LFPhttp://www.studio-lfp.com On Thursday, October 13, 2011 10:14:54 PM UTC-5, droid-stricken wrote: Thanks for all the inputs. I like the in-app purchase solution the best since that fits my needs the best. Any pointers on how to realize this solution is greatly

[android-developers] digital audio input to android phone or tablet

2012-04-05 Thread droid-stricken
Hi All, I was wondering if i could feed digital audio input or line input [either using HDMI or USB or any such interface] into any of the android devices currently out there [phones or tablets does not matter]. AFAIK, built-in microphone is the only means of getting audio [analog at that]

[android-developers] Re: digital audio input to android phone or tablet

2012-04-06 Thread droid-stricken
jack (most likely a resistor for attenuation and a capacitor to AC couple). This may however be mono, and might require optimization for device model to get best performance. On Thursday, April 5, 2012 8:35:35 PM UTC-4, droid-stricken wrote: Hi All, I was wondering if i could feed

[android-developers] Re: digital audio input to android phone or tablet

2012-04-06 Thread droid-stricken
Sorry. Just saw USB host mode is supported in Android 3.1 and higher. on the developers website. I would like to know the answer for my remaining part of the question. Thanks all. On Friday, 6 April 2012 16:17:49 UTC-5, droid-stricken wrote: Unfortunately, it's a real time app i.e the feed

[android-developers] ChartDroid 3rd party library for dynamic graphing

2011-11-22 Thread droid-stricken
Hi, I had posted the same question on StackOverflow y'day and it does not seem to have strung a chord with users there. So, i am hoping someone in this group might have some insights to share - My question: Have anyone of you used chartDroid for displaying dynamic graphs esp. bargraphs? The

[android-developers] Loading HTML file from assets folder - path has white spaces in it

2011-06-26 Thread droid-stricken
Hi All, I am doing the following, but seems not to be working - mWebView = (WebView) findViewById(R.id.webView1); mWebView.loadUrl(file:///android_asset/Help File/helpfile.html); I tried the following - -- 1. mWebView.loadUrl(file:///android_asset/Help%20File/ helpfile.html); // replaced

[android-developers] Re: Loading HTML file from assets folder - path has white spaces in it

2011-06-26 Thread droid-stricken
26, 2011 at 1:25 PM, Zsolt Vasvari zvasv...@gmail.com wrote: IIRC, this is a know bug.  Please search onhttp://b.android.com On Jun 26, 3:46 pm, droid-stricken harik...@gmail.com wrote: Hi All, I am doing the following, but seems not to be working - mWebView = (WebView) findViewById

[android-developers] Re: Loading HTML file from assets folder - path has white spaces in it

2011-06-26 Thread droid-stricken
Will i have the same issue if i use raw folder instead of assets? Thanks. On Jun 26, 3:42 am, droid-stricken harik...@gmail.com wrote: Vasvari is right. This is a known bug: Issue 17327: I tried the same code on a android phone running 2.3.4 (and using api level 10) and i could not see any

[android-developers] Download to internal memory

2011-06-27 Thread droid-stricken
Hi All, I am using downloadmanager.request enqueue setDestinationUri to download files. Is it possible to download the files to the internal memory location of the device where it can be persistent? I am using Android 3.1 Xoom device and it does not really have a functional SD card on it though

[android-developers] Play a media file in the assets or res/raw folder in another app

2012-02-03 Thread droid-stricken
Hi All, I had posted this question yesterday on the stackoverflow. But no one seems to know the answer or have the time to make to share their thoughts. http://stackoverflow.com/q/9124314/693959 Is it possible to play a media file in the application's assets or res/ raw folder in another app

[android-developers] Licensing issue on Multiple-apk feature.

2012-02-08 Thread droid-stricken
Hi, I have two APKs for an application. One targeted to the phone devices and the other specifically developed for the tablet. I have implemented the standard ServeManaged Licensing policy on both versions. I have followed the rules for multiple apks as mentioned in the developer's documentation

[android-developers] Re: Licensing issue on Multiple-apk feature.

2012-02-09 Thread droid-stricken
: This is interesting. We are also going along the same route and knowing this would help. Dont know if inapp biling suffers frim the same. What is the response code that comes back on checkaccess ? On Feb 8, 11:55 pm, droid-stricken harik...@gmail.com wrote: Hi, I have two APKs