Re: [android-developers]StringIndexOutOfBoundsException when calling ava.net.URL.openStream

2011-04-04 Thread Martin Obreshkov
No destination is dynamically returned by other request to the server. Basically i am a server which returns a list of urls which i am processing in a for loop using this code. The server is querying a search engine and returns urls which content mach the desired search. On Mon, Apr 4, 2011 at

Re: [android-developers] Re: widget on lockscreen

2011-04-04 Thread Martin Obreshkov
Hmm i noticed that MixZing is also having a lock screen widget. If this is only possible for HTC sense how they do it. On Wed, Jun 30, 2010 at 11:51 AM, Martin Obreshkov manig...@gmail.comwrote: Thanks On Wed, Jun 30, 2010 at 11:35 AM, Al Sutton a...@funkyandroid.com wrote: It's a firmware

[android-developers] providing custom layout for context menu

2011-02-24 Thread Martin Obreshkov
Hi all I am using context menu which is inflated from xml. Something pretty close to this http://developer.android.com/guide/topics/ui/menus.html. The question is how can i set layout parameters to the xml like background color, item selection in the xml. Thanks in advance. -- When I raise my

Re: [android-developers]sharing with facebook is not working

2010-09-08 Thread Martin Obreshkov
Sorry for the spam i found what is the problem in this thread http://groups.google.com/group/android-developers/browse_thread/thread/731d7891c116a5d5/1a65697822513218?lnk=gstq=ACTION_SEND+facebook#1a65697822513218 On Wed, Sep 8, 2010 at 2:29 PM, manigault manig...@gmail.com wrote: Hi all, I am

Re: [android-developers] Application Update

2010-09-08 Thread Martin Obreshkov
Maybe the best approach will be your server to tell you when an update is available. Every time you start the application you can query your server to tell you the latest version is there is newer version than the current one you can redirect the user to your site to download and update it. On

Re: [android-developers] Converting binary JPEG data to Bitmap

2010-09-08 Thread Martin Obreshkov
http://developer.android.com/reference/android/graphics/BitmapFactory.html#decodeByteArray(byte[], int, int) On Wed, Sep 8, 2010 at 5:03 PM, Doug Gordon gordo...@gmail.com wrote: My app will have an SQLite database with some embedded JPEG images -- basically the binary contents of a JPEG file

Re: [android-developers] What is Context and what is its use?

2010-09-01 Thread Martin Obreshkov
http://developer.android.com/reference/android/content/Context.html gives you what you need On Tue, Aug 31, 2010 at 7:07 PM, cool.manish mannishga...@gmail.com wrote: What is context. We always pass an argument context in the intent or manageQuery etc. What is it and what is the use of it?

Re: [android-developers] How can i set background image for an ImageView dynamically???

2010-08-25 Thread Martin Obreshkov
Make your country some king of pair country,flag and when you select country just set country.getflag() as background. On Wed, Aug 25, 2010 at 12:01 PM, Lidy lidyp...@yahoo.com wrote: Hello guys, I have the following question. I need to use R.drawable.id's dinamicaly, depending on the

Re: [android-developers] Comparing results of query from 2 different databases

2010-08-25 Thread Martin Obreshkov
Get the two cursors(sorted by something) and then get the difference in n*logn time. On Wed, Aug 25, 2010 at 8:10 AM, Vibhor Mahajan mahajan.vib...@gmail.comwrote: Hello All, My application maintains its own contact database(localcontacts.db). This database is subset of Android phone

Re: [android-developers] Re: dithering gradient on different devices

2010-07-26 Thread Martin Obreshkov
I also try to setDither(true) from java on G1 and the background was not dithered i could only get dithering by setting getWindow().addFlags(WindowManager.LayoutParams.FLAG_DITHER); On Fri, Jul 23, 2010 at 4:02 PM, Martin Obreshkov manig...@gmail.comwrote: Thanks for the reply :). But when i

Re: [android-developers] Re: dithering gradient on different devices

2010-07-23 Thread Martin Obreshkov
Thanks for the reply :). But when i create grad_proxy.xml like this and use it as android:background nothing is shown android can't load grad_proxy and shows default background. On Fri, Jul 23, 2010 at 3:33 PM, Joseph Earl joseph.w.e...@gmail.comwrote: I generally use a 'proxy' XML drawable to

Re: [android-developers] change image onConfigurationChanged

2010-07-13 Thread Martin Obreshkov
If i use setContentView in onConfigurationChanged it works but i have to get all views from layout again. Any other ideas ? On Mon, Jul 12, 2010 at 4:46 PM, Martin Obreshkov manig...@gmail.comwrote: Nothing happens still the image from portrait view is shown On Mon, Jul 12, 2010 at 4:41 PM

Re: [android-developers] change image onConfigurationChanged

2010-07-12 Thread Martin Obreshkov
@Override public void onConfigurationChanged(Configuration conf) { super.onConfigurationChanged(conf); mImageView.setImageDrawable(getResources().getDrawable(mBackgroundDrawableId)); } where mImageView is my ImageView and mBackgroundDrawableId is the id of the current ImageView drawable ( cause

Re: [android-developers] change image onConfigurationChanged

2010-07-12 Thread Martin Obreshkov
Nothing happens still the image from portrait view is shown On Mon, Jul 12, 2010 at 4:41 PM, Mark Murphy mmur...@commonsware.comwrote: On Mon, Jul 12, 2010 at 9:31 AM, Martin Obreshkov manig...@gmail.com wrote: @Override public void onConfigurationChanged(Configuration conf

Re: [android-developers] widget on lockscreen

2010-06-30 Thread Martin Obreshkov
Thanks for the reply but what about htc sense it has some controls over lockscreen. Is this implemented by htc sense only http://phandroid.com/wp-content/uploads/2009/06/rosie-lock-screen.jpg On Tue, Jun 29, 2010 at 8:12 PM, Dianne Hackborn hack...@android.comwrote: Sorry this is not currently

Re: [android-developers] Re: widget on lockscreen

2010-06-30 Thread Martin Obreshkov
the device out in order to re-start/re-position playback. Al. On Jun 30, 9:24 am, Martin Obreshkov manig...@gmail.com wrote: Thanks for the reply but what about htc sense it has some controls over lockscreen. Is this implemented by htc sense onlyhttp:// phandroid.com/wp-content/uploads/2009/06

[android-developers] Re: broken pipe over ssl

2010-05-13 Thread Martin Obreshkov
:) i forgot to put the link http://stackoverflow.com/questions/2820284/ssl-on-android-strange-issue On Thu, May 13, 2010 at 6:48 PM, manigault manig...@gmail.com wrote: hi i've posted the question on stack overflow but no answer - any ideas ? -- When I raise my flashing sword, and my hand

Re: [android-developers] Re: broken pipe over ssl

2010-05-13 Thread Martin Obreshkov
nail down the error. On Thu, May 13, 2010 at 10:49 AM, Martin Obreshkov manig...@gmail.comwrote: :) i forgot to put the link http://stackoverflow.com/questions/2820284/ssl-on-android-strange-issue On Thu, May 13, 2010 at 6:48 PM, manigault manig...@gmail.com wrote: hi i've posted

Re: [android-developers] Using same sqlite database from multiple Activities and Services

2010-04-27 Thread Martin Obreshkov
I my app i there is service which is working in background and it's holding the instance of sql connection. When no activities are using the service it's destroyed and the connection is closed. On Tue, Apr 27, 2010 at 2:48 PM, goosedroid alexrhel...@gmail.com wrote: I have been trying to find a

Re: [android-developers] How to set Connection mode?

2010-04-27 Thread Martin Obreshkov
Take a look at http://developer.android.com/reference/android/net/ConnectivityManager.html . On Tue, Apr 27, 2010 at 9:38 AM, vikky vikash19852...@gmail.com wrote: Hi all, I want to provide option to users...for Connection mode with web server for services(XML).. How can i set the

Re: [android-developers] Re: How to know a view size before it's rendered

2010-04-11 Thread Martin Obreshkov
http://developer.android.com/reference/android/view/View.html#onMeasure(int, int) On Sun, Apr 11, 2010 at 7:56 AM, Kumar Bibek coomar@gmail.com wrote: I don't think you can get those before they are rendered. The final bounds will be decided only after the view is rendered, which might be

Re: [android-developers] ListView Example

2010-04-09 Thread Martin Obreshkov
I think ArrayAdapter is the think you're looking for. For more info http://developer.android.com/reference/android/widget/ArrayAdapter.html it supports add/delete methods which automatically update listview. On Fri, Apr 9, 2010 at 10:38 PM, dillipk codersnet2...@gmail.com wrote: Hi, I am

Re: [android-developers] Re: recording volume indicator

2010-03-19 Thread Martin Obreshkov
Thanks it worked fine On Thu, Mar 18, 2010 at 10:13 PM, BobG bobgard...@aol.com wrote: I humbly suggest an 8 segment tower... assuming 8 bit audio, calc the avg level of 'a bunch' of samples (a frames worth? 30ms at 8 samps per ms is 240 samps for example), Set a bar in the level indicator

Re: [android-developers] recording volume indicator

2010-03-18 Thread Martin Obreshkov
Thanks for the answer. I am using AudioRecord. On Thu, Mar 18, 2010 at 4:47 PM, kyle smith ksmithanimat...@gmail.comwrote: what are you using for the recording functions? On Thu, Mar 18, 2010 at 9:54 AM, manigault manig...@gmail.com wrote: Hi i have an application that records audio and i

Re: [android-developers] Re: sqlite multithreading

2010-01-28 Thread Martin Obreshkov
:) i don't want to close the connection because i need a connection for each thread that operates with the db e.g if i have 5 threads i will need 5 open connections. But after all it seems that android is synchronizing the connection using global locks so i can use one connection in all threads -

Re: [android-developers] How to select an item in a listview by code

2010-01-26 Thread Martin Obreshkov
ListView.setSelected(int position) On Tue, Jan 26, 2010 at 3:12 PM, MMC2 m...@mmc2.com.au wrote: How do you select an item in a listview by code -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Dynamically grow listview

2009-11-04 Thread Martin Obreshkov
. Any idea how this functionality is implemented in the native android Music Player. On Mon, Nov 2, 2009 at 8:15 PM, Martin Obreshkov manig...@gmail.com wrote: Thanks, this is just what i was looking for On Mon, Nov 2, 2009 at 8:07 PM, Carmen Delessio carmendeles...@gmail.comwrote

Re: [android-developers] Dynamically grow listview

2009-11-02 Thread Martin Obreshkov
Thanks, this is just what i was looking for On Mon, Nov 2, 2009 at 8:07 PM, Carmen Delessio carmendeles...@gmail.comwrote: AndroidGuys has an article for that: http://www.androidguys.com/2009/10/21/tutorial-autogrowing-listview/ -- Carmen http://www.twitter.com/CarmenDelessio

[android-developers] Re: MeidaPlayer IlleglStateException thrown

2009-09-14 Thread Martin Obreshkov
() anywhere in your code? On Sun, Sep 13, 2009 at 5:38 AM, Martin Obreshkov manig...@gmail.com wrote: I have a simple file that wrap the android media player and when i want to play file call the reset method to reset the player something like this . private final MediaPlayer mPlayer

[android-developers] Re: MeidaPlayer IlleglStateException thrown

2009-09-13 Thread Martin Obreshkov
I have a simple file that wrap the android media player and when i want to play file call the reset method to reset the player something like this . private final MediaPlayer mPlayer; . mPlayer = new MediaPlayer(); somewhere in constructor . public void play(String songUri) {

[android-developers] Re: How i get the Selected item from the list Adapter.

2009-08-28 Thread Martin Obreshkov
You can register public abstract void onItemSelected (AdapterView? parent, View view, int position, long id) and to retrieve the selected value from ArrayAdapter.getItem(int position) using the selected position as parameter. On Fri, Aug 28, 2009 at 3:35 PM, ragavendran ssraghav.ra...@gmail.com

[android-developers] Re: How i get the Selected item from the list Adapter.

2009-08-28 Thread Martin Obreshkov
Thanks a lot it's really very simple and clear using ContextMenu On Fri, Aug 28, 2009 at 3:45 PM, Sasi Kumarsasikumar.it1...@gmail.com wrote: join the below group to discuss more http://groups.google.com/group/mobile-application-developers use like this