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 wrote: > Thanks > > > On Wed, Jun 30, 2010 at 11:35 AM, Al Sutton wrote: > >> It's a firmware thi

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 5:0

[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 fla

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 wrote: > My app will have an SQLite database with some embedded JPEG images -- > basically the binary contents of a JPEG file stored as a Blob

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 Wed

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=gst&q=ACTION_SEND+facebook#1a65697822513218 On Wed, Sep 8, 2010 at 2:29 PM, manigault wrote: > Hi all, I am using the followi

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 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? > does it have the infor

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 wrote: > Hello All, > > My application maintains its own contact database(localcontacts.db). > This database is subset of Android phone contacts database (People o

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 and when you select country just set country.getflag() as background. On Wed, Aug 25, 2010 at 12:01 PM, Lidy wrote: > Hello guys, > > I have the following question. > I need to use R.drawable.id's dinamicaly, depending on the country > choosen, more precisely

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 wrote: > Thanks for the reply :). But when i cre

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 wrote: > I generally use a 'proxy' XML drawable to add dithering. > Suppos

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 wrote: > 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
Nothing happens still the image from portrait view is shown On Mon, Jul 12, 2010 at 4:41 PM, Mark Murphy wrote: > On Mon, Jul 12, 2010 at 9:31 AM, Martin Obreshkov > wrote: > > @Override > > public void onConfigurationChanged(Configuration conf) { > > super.onC

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 th

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

2010-06-30 Thread Martin Obreshkov
hen having to dig the device > out in order to re-start/re-position playback. > > Al. > > On Jun 30, 9:24 am, Martin Obreshkov wrote: > > Thanks for the reply but what about htc sense it has some controls over > > lockscreen. Is this implemented by htc sense onlyhttp://

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 wrote: > Sorry this is not currently supported. That co

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

2010-05-13 Thread Martin Obreshkov
he above u can nail > down the error. > > > > On Thu, May 13, 2010 at 10:49 AM, Martin Obreshkov wrote: > >> :) 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,

[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 wrote: > hi i've posted the question on stack overflow but no answer - any > ideas ? -- When I raise my flashing sword, and my hand takes hold on ju

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 wrote: > Hi all, > > I want to provide option to users...for Connection mode with web > server for services(XML).. > How can i set the connection to use > Wi-Fi o

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 wrote: > I have been trying to find a discussion on the be

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

2010-04-10 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 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 > different on diff

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 wrote: > Hi, > I am looking for a ListView exa

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 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 for > each bit tha

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 wrote: > what are you using for the recording functions? > > On Thu, Mar 18, 2010 at 9:54 AM, manigault wrote: > >> Hi i have an application that records audio and i want to add an >> indicator which shows

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 - I

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 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 android-develo

Re: [android-developers] Dynamically grow listview

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

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 wrote: > AndroidGuys has an article for that: > http://www.androidguys.com/2009/10/21/tutorial-autogrowing-listview/ > -- > Carmen > http://www.twitter.com/CarmenDelessio > http://www.talkingandroid.com >

[android-developers] Re: MeidaPlayer IlleglStateException thrown

2009-09-14 Thread Martin Obreshkov
ere in your code? > > > On Sun, Sep 13, 2009 at 5:38 AM, Martin Obreshkov 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 >> . >> priv

[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
Thanks a lot it's really very simple and clear using ContextMenu On Fri, Aug 28, 2009 at 3:45 PM, Sasi Kumar wrote: > > join the below group to discuss more > > http://groups.google.com/group/mobile-application-developers > > use like this > >                lv=(ListView)findViewById(R.id.ListVie

[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 s wrote: > i m a beginner f