[android-developers] Re: Loader Manager behaviour problem

2012-03-25 Thread Sudeep Sharma
Sorryit was my mistakethe uri i was registring was not
correct.loader and loader manager works perfectly.

On 3/22/12, Sudeep Sharma sudeep.andr...@gmail.com wrote:
 Hi,
Please help me on this.

 I have my own class similar to CursorLoader which extends AsyncTaskLoader.

 I need to do multiple queries to network so I am using LoaderManager
 callbacks. I do not use ForceLoadContentObserver in my implementation,
 instead i use normal ContentObserver.

 1. I do a initLoader with say id loader id 1., initially i get a
 cursor with empty count in onLoadFinished() but since i also register
 on content observer,  onLoadFinished()  gets hit again with some data
 and its displayed on UI.

 2. Now when i need to refresh my data on listview through some button,
 i destroy my loader with id 1 and create a new loader with id 2 (new
 instance of my customized Cursor loader class gets created) and
 control hits again on onLoadFinished()  with some data. Now in mean
 while my content observer also gets hit as fresh data is fetched from
 network but when i check isStarted() function of Loader to decide
 whether to call forceLoad or not, it returns false, also i printed
 isReset() function as false,  which means that Loader is reset by the
 time Content observer got hit.

 Why is it so? How it is diffrent from the first case when i started
 loader with id 1.

 In second case i just destroyed the loader with id1 and did initloader
 with id 2.

 Also i tried in  second case that if i did a restart on loader id 1
 instead of destroying, then also when my content observer gets hit i
 see isStarted() as false.

 Due to this I am not able to pass the new/refreshed data to my app.

 Please can anybody help me in understanding this or is this a LoaderManager
 bug.

 Thanks  Regards,
 Sudeep.


-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Developing from android device

2012-03-25 Thread Andrew Demidenko
hi guys.
is there any way to develop (compile and then run) android applications 
from android device.
for example, i haven't got laptop or any other mobility pc and i want to 
implement some feature for my application while busyness trip. Can i do it 
from my android device?

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Streaming buffering problem for high bitrate video (10Mbps)

2012-03-25 Thread Eric Wong (hdmp4.com)
Hi,
We are developing applications that allows one to stream video from
any LAN device (e.g. computer, Android phone/tablet, etc) to an
Android device.

Recently, we encountered a very strange problem on buffering and we
believe the issue is possibly related to Android's platform/framework,
i.e. lower level stuff.

This video shows the problem we are experiencing
http://hdmp4.com/TCC9302_STB_buffering_problem.3gp

I have tested the same operation on 7 Samsung Galaxy Tab (Android
2.2), Nexus S (Android 2.3) and an Android setop box the one shown in
the video).

The issues is that when the STREAMING video exceeds a certain bitrate,
the video either stops after 5-10 seconds, and then dies (or may
continue playing for a few more seconds before dying) or it simply do
not play at all.

However, if I use an application that decodes the video by software
decoding instead of hardware decoding. The video was able to play from
start to the end without any problems. (due to slow CPU, arm11,
800mhz, video playback by software decoding as shown in the video link
above actually lags but it does play fine.)

I run the test streaming the video from a computer connected to the
LAN via 100Mbps ethernet.
All the test device are connected to the LAN via a b/g WIFI router.
I can confirm that there is absolutely no problem with my network
bandwidth and I can copy files from/to the computer to/from the
Android device using ftp (using File Expert Application) at
16-24Mbps.
(I get the live transfer bandwidth by looking at the software running
at my computer which is monitoring my computer's network traffic.)

I used the same mp4 test video encoded at different bitrate.
The resolution of the streaming video does not matter because I can
reproduce this using a 720x480 video as well.
All the Android devices I have tested suffer the same problem.
The Android STB suffers from this problem when video bitrate exceeds
about 10Mbps.
7 Samsung Galaxy Tab suffers from this problem when video bitrate is
at or exceeds 6Mbps.
Nexus S suffers from this problem when video bitrate is at or exceeds
3Mbps.
From these results, it is obvious that this is related to the Android
OS or the chip used.

If the same video is being played locally from the device's SDcard,
there is no such buffering problem, even at several times the bitrate
compared to when it is streamed.
We have no idea what is going on here and are seeking solutions.

I can perform more tests and report here if you can tell me what/how
to do the test as a non-programmer (I can't code).
However, from our test (or apparent in the video), it seems to me that
Android OS is dumping the buffer and then refilling it for no obvious
reason.

This only occurs when hardware decoding was used. Software decoding
does not have any buffering problems.
This means the problem is definitely not related to bandwidth and most
likely related to hardware decoding buffering.
For lower bitrate video, we do not see this problem at all.
We are also interested to hire developers who can fix this problem for
us, preferably at the application but fixing this at the OS level is
also fine..

Please e-mail me directly if you are capable of fixing this problem
and available for hire.
Otherwise, please provide your opinion on this issue.
(I have searched online but did not see anyone encountering this
problem. Maybe because no one have tried streaming such high bitrate
video yet..)

Thanks
Eric

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Listview of programmatically created Drawables

2012-03-25 Thread Kostya Vasilyev
Set them as background objects for some views that appear in your item
layouts.

Or use image views and set them as 'src' images (this way you'll have
better control over scaling and clipping).
 25.03.2012 5:29 пользователь Gene gene.ress...@gmail.com написал:

 How can you get programmed stroked Drawables (not bitmaps) to appear
 in the lines of a ListView?

 On Mar 23, 1:36 am, TreKing treking...@gmail.com wrote:
  On Thu, Mar 22, 2012 at 9:42 PM, Gene gene.ress...@gmail.com wrote:
   ListView seems to be the way to go, but I can't grok how to make
   other-than-bitmaps appear in ListView items.  No Canvas is in sight.
 
  You might want to elaborate and clarify - I, for one, have no clue what
  you're getting at.
 
 
 --
  TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
  transit tracking app for Android-powered devices

 --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How to read Peoples address in android 4.0 platform

2012-03-25 Thread Doug
It is not hard to search for.

http://developer.android.com/resources/articles/contacts.html

Doug

On Thursday, March 22, 2012 2:29:33 AM UTC-7, Sandeep Nemuri wrote:

 i am not able to find any code for reading peoples address from address 
 book in android 4.0 platform . can any 1 help me ?? 

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Recently released: SocialNav

2012-03-25 Thread Narendra Singh Rathore
On Sun, Mar 25, 2012 at 3:12 AM, Ali Chousein ali.chous...@gmail.comwrote:

 An individually developed Android application, where social networking
 and mobile navigation meet.

 Thats great Ali,
Congratulations and keep it up.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Developing from android device

2012-03-25 Thread sunit nair
Hey Buddy,

   You should try this app for android devices. its an IDE

https://play.google.com/store/apps/details?id=com.aide.ui


Cheers,
Sunit



On Sun, Mar 25, 2012 at 4:08 PM, Andrew Demidenko demon2...@gmail.comwrote:

 hi guys.
 is there any way to develop (compile and then run) android applications
 from android device.
 for example, i haven't got laptop or any other mobility pc and i want to
 implement some feature for my application while busyness trip. Can i do it
 from my android device?

 --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Merchant Account no longer available

2012-03-25 Thread Terry
When I try to View Merchant Account from Developer Console, I get an
error message saying that there is a Data connectivity problem - The
page contains too many server redirects, and the following display:

Web page not available

The Web page at https://accounts.google.com/ServiceLogin?
service=sierrapassive=1200continue=https://checkout.google.com/sell/
orders?pli%3D1followup=https://checkout.google.com/sell/orders?pli
%3D1ltmpl=sellerscc=1 miwght be temporarily down or it may have
moved permanently to a new web address.Here are some suggestions:Check
to make sure that your device has a signal and data connectionReload
this web page later.View a cached copy of the web page from Google

It has been like this for a few days. I hope that Google will fix it
soon.

Terry

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: [Android - developers] Exponential Smoothing on Latitude and Langitude

2012-03-25 Thread agung wiguna johan
Hi jinja, thanks for the help
I already tried with the fixed point but it still get me the wrong value
Are there something filtering that we can use to filter latitude and
longitude ? (except kalman filter)
Sory for my bad english

On Fri, Mar 16, 2012 at 12:17 AM, Jinja neiljmar...@gmail.com wrote:

 Hi Concave,

 Okay, I see that you need to keep the values as x1E6 now. However, you are
 still multiplying by 1E6 twice, you only need to do it once. Remove the
 *1E6 from the following lines, so..

 smoothLat = (int) (smoothingCoor [0] * 1E6);
 smoothLongi = (int) (smoothingCoor [1] * 1E6);

 becomes...

 smoothLat = (int) (smoothingCoor [0]);
 smoothLongi = (int) (smoothingCoor [1]);

 Try stepping through your code in the debugger to reveal if your values
 now remain in the correct order of magnitude. Until you've fixed the bug in
 your filtering code I recommend you lock the GPS to a known value e.g.
 insert this at the top of your function...

 newLocation.setLatitude( 49.28214015975995 );
 newLocation.setLongitude( -123.12438011169434 );

 That's Vancouver, use some location you will recognize as correct. Once
 your filter works then you can remove the fixed location and start using
 the GPS values again.




 On Thursday, March 15, 2012 6:58:04 AM UTC-7, concave wrote:

 Hi, thanks for all the input
 Right now i still don't have any solution for get the best latitude and
 longitude
 I want to use kalman filter at the first, but after read some paper and
 articles kalman filter is need the value from accelorometer
 Unfortunately my requirement for this application is doesn't use any
 sensor except the gps

 @jinja : Hi thanks for the input, but i think it's the right way to get
 the gps value.
  Because i need the int type value to put it on GeoPoint methode and get
 the GeoPoint to animateTo ().


 On Tue, Mar 13, 2012 at 1:47 PM, Yaron Reinharts 
 yaron.reinha...@gmail.com wrote:

  Hi,

 There is a section with the title Maintaining a current best estimate
 in the following link, it contains an implementation of a method called 
 isBetterLocation.
 http://developer.android.com/**guide/topics/location/**
 obtaining-user-location.htmlhttp://developer.android.com/guide/topics/location/obtaining-user-location.html

 Hope this helps
 /Yaron

 --
 Yaron Reinharts
 Smart Drive Applicationshttp://www.poncho.co.il/**gateaway.php 
 http://www.poncho.co.il/gateaway.phphttps://market.android.com/**details?id=com.poncho.gsm.**gate.activities
  https://market.android.com/details?id=com.poncho.gsm.gate.activities



 On 03/13/2012 05:32 AM, Jinja wrote:

 Hello, I've never dealt with GPS data before, but having a quick look at
 your code it looks like you have a mismatch in converting your data to and
 from integers and doubles.

 I notice you multiply by 1E6 when extracting the lat/long, presumably
 this is to maintain some accuracy during the double to int conversion...

  int lat = (int) (currentPosition.getLatitude()*1E6);

  So one fix is to use all doubles and remove all of your *1E6. The
 other fix is to use /1E6 instead of *1E6 when converting back to doubles...

  currentPosition.**setLatitude(**smoothingCoor [0] / 1E6);

  instead of...

  smoothLat = (int) (smoothingCoor [0] * 1E6);
 currentPosition.**setLatitude(**smoothLat);

  I hope that fixes your issue.



 On Sunday, March 11, 2012 12:46:24 AM UTC-8, concave wrote:

 Hi guys, i've a little problem here.
 I'm working with gps data, getting values every second and displaying
 current position on a map.
 The problem is that sometimes (specially when im using the app on
 indoor and not make a move) the values vary a lot, making the current
 position to change.
 I was wondering about some easy enough method to avoid this.
  As a first idea, I thought about discarding values with accuracy
 beyond certain threshold, and use Exponential filtering as i use on my
 Bearing. But i get up on Antartica. Here's the code that i used to get
 the location and filtering it with exponential :

 public void onLocationChanged(Location newLocation) {
// Get previous Location, needed to get
 the Bearing Value
     if(currentPosition != null)
     {
     prevLocation =
 currentPosition;
     pLat = (int)
 (prevLocation.getLatitude() *1E6);
     pLongi = (int)
 (prevLocation.getLongitude()***1**E6);

     }
     currentPosition = new Location
 (newLocation);
     int lat = (int)
 (currentPosition.getLatitude()*1E6);
     int longi = (int)
 (currentPosition.getLongitude()*1E6);

     //Smoothing Latitude,Longitude
     

[android-developers] Launching default messaging app for mms

2012-03-25 Thread Farhan Tariq
Hi all,
I am working on an application that allows user to create mms messages
according to a template, for android 2.2. I am done with most of the work,
but I am stuck with one thing. I want to be able to launch the android's
default messaging application to send the mms. I tried to set package of
the intent as com.android.mms and it seems to work fine on my phone, as
well as emulator, but it is showing a chooser for the mms intent to my
friend. I am not creating a chooser anywhere, still. Can anyone help me get
through this. A little guidance is I think all I need. Thank you

Regards

Farhan

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Licensing problem

2012-03-25 Thread Giuseppe
Starting yesterday my licensing development response is 291.
I don't know what happened, the server response to me no license instrad in 
my profile I have RETURN LICENSED.


-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Launching default messaging app for mms

2012-03-25 Thread Daniel Hoeggi
try this

Intent it = new Intent(Intent.ACTION_VIEW);
it.setType(vnd.android-dir/mms-sms);

On Sun, Mar 25, 2012 at 11:27 AM, Farhan Tariq farhan@gmail.com wrote:

 Hi all,
 I am working on an application that allows user to create mms messages
 according to a template, for android 2.2. I am done with most of the work,
 but I am stuck with one thing. I want to be able to launch the android's
 default messaging application to send the mms. I tried to set package of
 the intent as com.android.mms and it seems to work fine on my phone, as
 well as emulator, but it is showing a chooser for the mms intent to my
 friend. I am not creating a chooser anywhere, still. Can anyone help me get
 through this. A little guidance is I think all I need. Thank you

 Regards

 Farhan
 --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] DexClassLoader

2012-03-25 Thread Marcin Orlowski
On 25 March 2012 07:12, moutaz al-azab azabk...@gmail.com wrote:


 I am trying to play with DexClassLoader
 http://developer.android.com/reference/dalvik/system/DexClassLoader.htmland
 http://www.java2s.com/Open-Source/Android/android-core/platform-libcore/dalvik/system/DexClassLoader.java.htmI
  am wondering how can I use DexClassLoader.I am not expert in Android and
 I dont know how to use it, does anyone has an idea?


You do not know how to use so i wonder if you know why you think you want
to use it? Do you really got any need for that? I doubt slightly...

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] DexClassLoader

2012-03-25 Thread Marcin Orlowski
And do not do crossposts in future!

Regards,
Marcin Orlowski

*Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy...
*Date In Tray* http://bit.ly/dateintraypro - current date at glance...
WebnetMobile on *Facebook http://webnetmobile.com/fb/*,
*Google+*http://bit.ly/webnetmobile-gpand
*Twitter http://webnetmobile.com/twitter/*

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Developing from android device

2012-03-25 Thread Andrew Demidenko
thanks!

On Sunday, March 25, 2012 1:08:52 PM UTC+6, Andrew Demidenko wrote:

 hi guys.
 is there any way to develop (compile and then run) android applications 
 from android device.
 for example, i haven't got laptop or any other mobility pc and i want to 
 implement some feature for my application while busyness trip. Can i do it 
 from my android device?


-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] which framework is best for to develop cross platform mobile applications?

2012-03-25 Thread vamsi Vamsi
I recommended phonegap , because I had used it for an app in the past, and
porting it to Iphone was easy like 123.

On Thu, Mar 22, 2012 at 5:29 PM, Anirudh Loya loya.anir...@gmail.comwrote:

 What made you say PhoneGap is good? Tell its merits?


 On Wed, Mar 21, 2012 at 4:05 PM, vamsi Vamsi va...@partialbits.in wrote:


 Hi Lakshmi, I have tried PhoneGap , and its pretty good
 http://phonegap.com/



 On Wed, Mar 21, 2012 at 12:34 PM, Anirudh Loya loya.anir...@gmail.comwrote:


 Check previous mails. Already lots of discussion happened on this topic .


 On Wed, Mar 21, 2012 at 1:59 AM, nvlakshmi vakiti 
 lakshmi.vad...@gmail.com wrote:

 Hi,

 Which framework is best one  to develop cross platform mobile
 applications?

  Thanks in advance.

 lakshmi

  --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --

 Thank you

 Anirudh Loya | Android Developer**

 Desk: +9140-30681824 | Mobile: +91*9246561265*

 *Love your Job but don't Love your company, Because you may not know
 when your company stops loving you.--  Voice Of Love*

  --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --

 Thank you

 Anirudh Loya | Android Developer**

 Desk: +9140-30681824 | Mobile: +91*9246561265*

 *Love your Job but don't Love your company, Because you may not know when
 your company stops loving you.--  Voice Of Love*

  --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Launching default messaging app for mms

2012-03-25 Thread Justin Anderson

 I tried to set package of the intent as com.android.mms and it seems to
 work fine on my phone, as well as emulator

You don't want to do this... Not all phones will have the stock android app
with that package name.  Many manufacturers replace stock android apps with
their own for things like the camera, sms, etc...

Also, there are a lot of 3rd party apps out there that handle sms/mms... If
a user has installed a 3rd party app then they probably don't want to be
tied down to the one that came on the device.

but it is showing a chooser for the mms intent to my friend. I am not
 creating a chooser anywhere

If that is the case then what is most likely happening is that your friend
has more than one sms/mms app on the device.  You probably also will notice
that the chooser has a checkbox that, if checked, will make their selection
the default from then on.  If they check that box and choose which app they
want to use to send the sms/mms message then the next time you run your app
you will not get a chooser.

This is how standard Android works.  Please don't force people out of the
standard.

Intent it = new Intent(Intent.ACTION_VIEW);
 it.setType(vnd.android-dir/mms-sms);

I have never created an app dealing with sms/mms messages before, but I
don't think this is the way to go...  ACTION_VIEW generally means that you
are wanting to display something, not create and/or edit something.  Unless
I am misunderstanding what you are trying to accomplish, you should
probably use ACTION_SEND.  What does your intent actually look like?




Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Sun, Mar 25, 2012 at 5:02 AM, Daniel Hoeggi hoeggerl.dan...@gmail.comwrote:

 try this

 Intent it = new Intent(Intent.ACTION_VIEW);
 it.setType(vnd.android-dir/mms-sms);

 On Sun, Mar 25, 2012 at 11:27 AM, Farhan Tariq farhan@gmail.comwrote:

 Hi all,
 I am working on an application that allows user to create mms messages
 according to a template, for android 2.2. I am done with most of the work,
 but I am stuck with one thing. I want to be able to launch the android's
 default messaging application to send the mms. I tried to set package of
 the intent as com.android.mms and it seems to work fine on my phone, as
 well as emulator, but it is showing a chooser for the mms intent to my
 friend. I am not creating a chooser anywhere, still. Can anyone help me get
 through this. A little guidance is I think all I need. Thank you

 Regards

 Farhan
 --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Merchant Account no longer available

2012-03-25 Thread Justin Anderson
Hmmm, I haven't had that problem and I check the merchant account daily.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Sun, Mar 25, 2012 at 3:14 AM, Terry terb...@gmail.com wrote:

 When I try to View Merchant Account from Developer Console, I get an
 error message saying that there is a Data connectivity problem - The
 page contains too many server redirects, and the following display:

 Web page not available

 The Web page at https://accounts.google.com/ServiceLogin?
 service=sierrapassive=1200continue=https://checkout.google.com/sell/
 orders?pli%3D1followup=https://checkout.google.com/sell/orders?pli
 %3D1ltmpl=sellerscc=1https://checkout.google.com/sell/%0Aorders?pli%3D1followup=https://checkout.google.com/sell/orders?pli%0A%3D1ltmpl=sellerscc=1
  miwght
 be temporarily down or it may have
 moved permanently to a new web address.Here are some suggestions:Check
 to make sure that your device has a signal and data connectionReload
 this web page later.View a cached copy of the web page from Google

 It has been like this for a few days. I hope that Google will fix it
 soon.

 Terry

 --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Notification area remains open on ICS

2012-03-25 Thread bt
Nothing happens if I set AUTO_CANCEL.

Sorry for the very late answer.

On febr. 29, 20:04, TreKing treking...@gmail.com wrote:
 On Wed, Feb 29, 2012 at 7:52 AM, bt barta...@gmail.com wrote:
  Is there any solution to close it automatically after click?

 You have this flag 
 set?http://developer.android.com/reference/android/app/Notification.html#...

 --- 
 --
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: send twitter status with geolcation using api

2012-03-25 Thread Ali Chousein
Try asking Twitter API related questions here: 
https://dev.twitter.com/discussions
 I guess you'll have better chance then someone will answer your
question.

-
Ali Chousein
http://socialnav.blogspot.com | http://twitter.com/socialnav1
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
http://www.codeproject.com/KB/android/PayGol-Android.aspx
http://geo-filtered-assistant.blogspot.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 group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] which framework is best for to develop cross platform mobile applications?

2012-03-25 Thread Anirudh Loya
Why did he like it ? That was my question ?

Y r u getting so hyper?

On Sun, Mar 25, 2012 at 7:17 AM, Justin Anderson magouyaw...@gmail.comwrote:

 No one is asking about My brain !! Loll !!

 You're right... No one is.  Neither am I.  I was saying that you were
 given a recommendation by someone to look into PhoneGap, so go look into it
 and decide if it will be a good fit for you.  No one else knows what skills
 you have and what strengths/weaknesses/experience you have when it comes to
 programming so you will have to be the one to make the decision.

 So, follow the link that you were given for PhoneGap and go read up on it
 and use your brain to determine if it works for you.  Those of us on this
 list can't make that decision for you.


 Wht made hi feel say PhoneGap was my question ? Read it coolly Boss!!

 He told you already... He used it and liked it.  That is why he
 recommended it.


 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Thu, Mar 22, 2012 at 10:44 PM, Anirudh Loya loya.anir...@gmail.comwrote:

 No one is asking about My brain !! Loll !!

 Wht made hi feel say PhoneGap was my question ? Read it coolly Boss!!


 On Thu, Mar 22, 2012 at 10:35 PM, Justin Anderson 
 magouyaw...@gmail.comwrote:

 What made you say PhoneGap is good? Tell its merits?

 How about you actually do the research yourself and decide if it is a
 good fit for you?  The people on this forum are not a substitute for your
 brain...

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Thu, Mar 22, 2012 at 5:59 AM, Anirudh Loya loya.anir...@gmail.comwrote:

 What made you say PhoneGap is good? Tell its merits?


 On Wed, Mar 21, 2012 at 4:05 PM, vamsi Vamsi va...@partialbits.inwrote:


 Hi Lakshmi, I have tried PhoneGap , and its pretty good
 http://phonegap.com/



 On Wed, Mar 21, 2012 at 12:34 PM, Anirudh Loya loya.anir...@gmail.com
  wrote:


 Check previous mails. Already lots of discussion happened on this
 topic .


 On Wed, Mar 21, 2012 at 1:59 AM, nvlakshmi vakiti 
 lakshmi.vad...@gmail.com wrote:

 Hi,

 Which framework is best one  to develop cross platform mobile
 applications?

  Thanks in advance.

 lakshmi

  --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --

 Thank you

 Anirudh Loya | Android Developer**

 Desk: +9140-30681824 | Mobile: +91*9246561265*

 *Love your Job but don't Love your company, Because you may not know
 when your company stops loving you.--  Voice Of Love*

  --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --

 Thank you

 Anirudh Loya | Android Developer**

 Desk: +9140-30681824 | Mobile: +91*9246561265*

 *Love your Job but don't Love your company, Because you may not know
 when your company stops loving you.--  Voice Of Love*

  --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --

 Thank you

 Anirudh Loya | Android Developer**

 Desk: +9140-30681824 | Mobile: +91*9246561265*

 *Love your Job but don't Love your company, Because you may not know
 when your company stops loving you.--  Voice Of Love*

  --
 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] which framework is best for to develop cross platform mobile applications?

2012-03-25 Thread Anirudh Loya
Great ! you didn't had any compatibility issues with Android ?

On Sun, Mar 25, 2012 at 5:58 PM, vamsi Vamsi va...@partialbits.in wrote:

 I recommended phonegap , because I had used it for an app in the past, and
 porting it to Iphone was easy like 123.


 On Thu, Mar 22, 2012 at 5:29 PM, Anirudh Loya loya.anir...@gmail.comwrote:

 What made you say PhoneGap is good? Tell its merits?


 On Wed, Mar 21, 2012 at 4:05 PM, vamsi Vamsi va...@partialbits.inwrote:


 Hi Lakshmi, I have tried PhoneGap , and its pretty good
 http://phonegap.com/



 On Wed, Mar 21, 2012 at 12:34 PM, Anirudh Loya 
 loya.anir...@gmail.comwrote:


 Check previous mails. Already lots of discussion happened on this topic
 .


 On Wed, Mar 21, 2012 at 1:59 AM, nvlakshmi vakiti 
 lakshmi.vad...@gmail.com wrote:

 Hi,

 Which framework is best one  to develop cross platform mobile
 applications?

  Thanks in advance.

 lakshmi

  --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --

 Thank you

 Anirudh Loya | Android Developer**

 Desk: +9140-30681824 | Mobile: +91*9246561265*

 *Love your Job but don't Love your company, Because you may not know
 when your company stops loving you.--  Voice Of Love*

  --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --

 Thank you

 Anirudh Loya | Android Developer**

 Desk: +9140-30681824 | Mobile: +91*9246561265*

 *Love your Job but don't Love your company, Because you may not know
 when your company stops loving you.--  Voice Of Love*

  --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 

Thank you

Anirudh Loya | Android Developer**

Desk: +9140-30681824 | Mobile: +91*9246561265*

*Love your Job but don't Love your company, Because you may not know when
your company stops loving you.--  Voice Of Love*

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Blocking/changing original Android OS is legal?

2012-03-25 Thread Giuseppe
We must open this discussion here, the only place where we can get the 
position of all Android developers in the world.
We developed 12 month ago a Call Recorder app, we sell it on the market and 
earn good money, also we invest 85% of our time to improve everyday they 
code.

Till today we about 32.400 customers with Samsung Galaxy S2 Europe, but we 
understood that Samsung change something in the .so libs with the new ICS 
update, then now block Audio source 2, 3 and 4 during calls.

Question is... is more illegal to record your own calls or change the 
base code of Android OS where people expect code working based on Android 
source but not working at all as Samsung change it?

Our 32.400 Samsung customers will not be able to use anymore our app to 
record their calls, what do you think?

*Obviously no body here is  discouraged from it*, as we will find the 
solution and will continue to go on with our app.

Please comments are welcome !!!

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] which framework is best for to develop cross platform mobile applications?

2012-03-25 Thread Kristopher Micinski
Phonegap is a framework that is written to be compatible across
multiple devices.  As does Rhodes, etc..

The good thing about these frameworks is that they are written to have
a style that works across many devices and maintains essentially the
same functionality.

The bad thing about these frameworks is that because of their
flexibility -- and the necessary differences between platforms -- they
often tend to a worst of all worlds, best of none situation.  Each
environment has subtle differences that dictate changes in the design
of the UI / feel / resources of the app. While many of these
frameworks really are *good*, unfortunately, none of them really gives
an extremely natural experience for each individual device.  If you
disagree -- and can point out the framework -- I'd be glad to hear it!
 But unfortunately so far the options I've seen have boxed you into a
limited subset of functionality that makes inconsistent assumptions
with respect to the specific platforms.

And while this is related to Android development, it's not related to
the SDK -- which is the focus of this group.

kris

On Sun, Mar 25, 2012 at 12:38 PM, Anirudh Loya loya.anir...@gmail.com wrote:
 Great ! you didn't had any compatibility issues with Android ?


 On Sun, Mar 25, 2012 at 5:58 PM, vamsi Vamsi va...@partialbits.in wrote:

 I recommended phonegap , because I had used it for an app in the past, and
 porting it to Iphone was easy like 123.


 On Thu, Mar 22, 2012 at 5:29 PM, Anirudh Loya loya.anir...@gmail.com
 wrote:

 What made you say PhoneGap is good? Tell its merits?


 On Wed, Mar 21, 2012 at 4:05 PM, vamsi Vamsi va...@partialbits.in
 wrote:


 Hi Lakshmi, I have tried PhoneGap , and its pretty good
 http://phonegap.com/



 On Wed, Mar 21, 2012 at 12:34 PM, Anirudh Loya loya.anir...@gmail.com
 wrote:


 Check previous mails. Already lots of discussion happened on this topic
 .


 On Wed, Mar 21, 2012 at 1:59 AM, nvlakshmi vakiti
 lakshmi.vad...@gmail.com wrote:

 Hi,

 Which framework is best one  to develop cross platform mobile
 applications?

 Thanks in advance.

 lakshmi

 --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --

 Thank you

 Anirudh Loya | Android Developer

 Desk: +9140-30681824 | Mobile: +919246561265

 Love your Job but don't Love your company, Because you may not know
 when your company stops loving you.--  Voice Of Love


 --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en


 --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --

 Thank you

 Anirudh Loya | Android Developer

 Desk: +9140-30681824 | Mobile: +919246561265

 Love your Job but don't Love your company, Because you may not know when
 your company stops loving you.--  Voice Of Love


 --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en


 --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --

 Thank you

 Anirudh Loya | Android Developer

 Desk: +9140-30681824 | Mobile: +919246561265

 Love your Job but don't Love your company, Because you may not know when
 your company stops loving you.--  Voice Of Love


 --
 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, visit this group at
 

[android-developers] Blocking/changing original Android OS is legal?

2012-03-25 Thread Chris
You might want to use some of your war chest to consult a lawyer, as I am not 
one.  However, I do know that the law in the US varies state-to-state... Some 
state laws require only one party's consent to record a call, some require 
both.  What you're doing might well be illegal.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Blocking/changing original Android OS is legal?

2012-03-25 Thread Kristopher Micinski
This is something that requires legal consultation, so few people will
be willing to help you, as their advice is pretty much meaningless in
this situation..

Along with that, this doesn't belong on android-developers, probably
android-platform, from a technical standpoint.  However, as there
isn't really a technical question here, you're probably not likely to
get a lot of insight on that list either..

kris

On Sun, Mar 25, 2012 at 12:39 PM, Giuseppe porcelli.giuse...@gmail.com wrote:
 We must open this discussion here, the only place where we can get the
 position of all Android developers in the world.
 We developed 12 month ago a Call Recorder app, we sell it on the market and
 earn good money, also we invest 85% of our time to improve everyday they
 code.

 Till today we about 32.400 customers with Samsung Galaxy S2 Europe, but we
 understood that Samsung change something in the .so libs with the new ICS
 update, then now block Audio source 2, 3 and 4 during calls.

 Question is... is more illegal to record your own calls or change the
 base code of Android OS where people expect code working based on Android
 source but not working at all as Samsung change it?

 Our 32.400 Samsung customers will not be able to use anymore our app to
 record their calls, what do you think?

 Obviously no body here is  discouraged from it, as we will find the solution
 and will continue to go on with our app.

 Please comments are welcome !!!

 --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Merchant Account no longer available

2012-03-25 Thread Terry

If you use a PC, it still seems ok. But doing it from an Android
device, it doesn't work. Regardles of what browser you use.

Terry


On Mar 25, 2:32 pm, Justin Anderson magouyaw...@gmail.com wrote:
 Hmmm, I haven't had that problem and I check the merchant account daily.

 Thanks,
 Justin Anderson
 MagouyaWare Developerhttp://sites.google.com/site/magouyaware







 On Sun, Mar 25, 2012 at 3:14 AM, Terry terb...@gmail.com wrote:
  When I try to View Merchant Account from Developer Console, I get an
  error message saying that there is a Data connectivity problem - The
  page contains too many server redirects, and the following display:

  Web page not available

  The Web page athttps://accounts.google.com/ServiceLogin?
  service=sierrapassive=1200continue=https://checkout.google.com/sell/
  orders?pli%3D1followup=https://checkout.google.com/sell/orders?pli
  %3D1ltmpl=sellerscc=1https://checkout.google.com/sell/%0Aorders?pli%3D1followup=https://c...
   miwght
  be temporarily down or it may have
  moved permanently to a new web address.Here are some suggestions:Check
  to make sure that your device has a signal and data connectionReload
  this web page later.View a cached copy of the web page from Google

  It has been like this for a few days. I hope that Google will fix it
  soon.

  Terry

  --
  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, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Change Shape backgroundcolor programmatically

2012-03-25 Thread BearTi
Hi,

I´ve an LinearLayout with a TextView und the TextView gets as
Background a Shape.

So, how can I programmatically change the shapes Backgroundcolor?
I don´t get it!

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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] XML Layout SERIOUSLY misbehaving

2012-03-25 Thread Jim Graham
I'm trying to build the layout for my camera app.  The camera preview
goes on the left, and is set to the largest supported size that fits
within 65% of the display width and 100% of the display height.

The remaining 35% of the width is for two things:  first, a TableLayout
(set inside of a ScrollView) with textviews and spinners (side by side)
for spinner labels and the spinners themselves.  Below that is a
LinearLayout (horizontal) for a TextView and the shutter release image.

The left side works fine.  No problem.  The right side works fine on my
tablet, but not on my phone (Motorold Bravo MB520).  What inevitably
happens with the layout on my phone is the textviews/spinners taking
the full screen, and the shutter release button is nowhere to be seen.

I've played around with the weights, and nothing seems to change the
end result.

I've tried setting the width and height of the image from Java...nothing.

I've tried resizing the image and changing its density...no change.

I've tried setting the width and height of the two layouts on the left
(when both were LinearLayouts ... before the TableLayout), and every
time I've tried to do this, I get a force close with the logcat data
shown below, saying that android.widget.LinearLayout$LayoutParams cannot
be cast to android.widget.FrameLayout$LayoutParams.  Just one
problem:  NOWHERE in any my project will you find the word Frame
(ignoring case for the fgrep).

Logcat output (relevant to the force close):

---  CUT HERE  ---

2012-03-25 14:43:42.320 E 24222/AndroidRuntime: FATAL EXCEPTION: main
java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams cannot 
be cast to android.widget.FrameLayout$LayoutParams
at android.widget.FrameLayout.onMeasure(FrameLayout.java:268)
at android.widget.ScrollView.onMeasure(ScrollView.java:308)
at android.view.View.measure(View.java:10828)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4351)
at 
android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1284)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:613)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:519)
at android.view.View.measure(View.java:10828)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4351)
at 
android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1284)
at android.widget.LinearLayout.measureHorizontal(LinearLayout.java:956)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:521)
at android.view.View.measure(View.java:10828)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4351)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:267)
at android.view.View.measure(View.java:10828)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:764)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:519)
at android.view.View.measure(View.java:10828)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4351)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:267)
at 
com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:1912)
at android.view.View.measure(View.java:10828)
at android.view.ViewRoot.performTraversals(ViewRoot.java:938)
at android.view.ViewRoot.handleMessage(ViewRoot.java:2040)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:132)
at android.app.ActivityThread.main(ActivityThread.java:4123)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:491)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
at dalvik.system.NativeStart.main(Native Method)

---  CUT HERE  ---

I should point out that I have imported android.widget.LinearLayout and
android.widget.LinearLayout.LayoutParams, and the variables for the layouts
are defined, e.g.,

   LinearLayout msettingsLayout;

and set by reference to their resource ID, e.g.,

   msettingsLayout = (LinearLayout) findViewById(R.id.settingsLayout);

Changes to the width and height are set:

   msettingsLayout.setLayoutParams(new LinearLayout.LayoutParams(settingsw, 
settingsh));

And this is where the force close happens; comment out this line (and the
other one that differs only in variable/layout names), no force close.


I've double-checked my use of the above in the Dev Guide, and in several
Android programming books that I have (print versions and eBook
versions, as well as online tutorials and old apps of mine), and unless
I've just missed something (like a typo, etc.), it 

Re: [android-developers] XML Layout SERIOUSLY misbehaving

2012-03-25 Thread YuviDroid
By reading this:  android.widget.LinearLayout$LayoutParams cannot be cast
to android.widget.FrameLayout$LayoutParams

I'd say you need to change this:
 msettingsLayout.setLayoutParams(new LinearLayout.LayoutParams(settingsw,
settingsh));
into:
 msettingsLayout.setLayoutParams(new *FrameLayout*.LayoutParams(settingsw,
settingsh));

This is most probably because your LinearLayout  msettingsLayout  is inside
a FrameLayout, and so its layout params must be of its parent class.


Cheers,
Yuvi

DroidAhead
http://www.droidahead.com

On Sun, Mar 25, 2012 at 10:09 PM, Jim Graham spooky1...@gmail.com wrote:

 I'm trying to build the layout for my camera app.  The camera preview
 goes on the left, and is set to the largest supported size that fits
 within 65% of the display width and 100% of the display height.

 The remaining 35% of the width is for two things:  first, a TableLayout
 (set inside of a ScrollView) with textviews and spinners (side by side)
 for spinner labels and the spinners themselves.  Below that is a
 LinearLayout (horizontal) for a TextView and the shutter release image.

 The left side works fine.  No problem.  The right side works fine on my
 tablet, but not on my phone (Motorold Bravo MB520).  What inevitably
 happens with the layout on my phone is the textviews/spinners taking
 the full screen, and the shutter release button is nowhere to be seen.

 I've played around with the weights, and nothing seems to change the
 end result.

 I've tried setting the width and height of the image from Java...nothing.

 I've tried resizing the image and changing its density...no change.

 I've tried setting the width and height of the two layouts on the left
 (when both were LinearLayouts ... before the TableLayout), and every
 time I've tried to do this, I get a force close with the logcat data
 shown below, saying that android.widget.LinearLayout$LayoutParams cannot
 be cast to android.widget.FrameLayout$LayoutParams.  Just one
 problem:  NOWHERE in any my project will you find the word Frame
 (ignoring case for the fgrep).

 Logcat output (relevant to the force close):

 ---  CUT HERE  ---

 2012-03-25 14:43:42.320 E 24222/AndroidRuntime: FATAL EXCEPTION: main
 java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams
 cannot be cast to android.widget.FrameLayout$LayoutParams
at android.widget.FrameLayout.onMeasure(FrameLayout.java:268)
at android.widget.ScrollView.onMeasure(ScrollView.java:308)
at android.view.View.measure(View.java:10828)
at
 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4351)
at
 android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1284)
at
 android.widget.LinearLayout.measureVertical(LinearLayout.java:613)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:519)
at android.view.View.measure(View.java:10828)
at
 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4351)
at
 android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1284)
at
 android.widget.LinearLayout.measureHorizontal(LinearLayout.java:956)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:521)
at android.view.View.measure(View.java:10828)
at
 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4351)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:267)
at android.view.View.measure(View.java:10828)
at
 android.widget.LinearLayout.measureVertical(LinearLayout.java:764)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:519)
at android.view.View.measure(View.java:10828)
at
 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4351)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:267)
at
 com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:1912)
at android.view.View.measure(View.java:10828)
at android.view.ViewRoot.performTraversals(ViewRoot.java:938)
at android.view.ViewRoot.handleMessage(ViewRoot.java:2040)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:132)
at android.app.ActivityThread.main(ActivityThread.java:4123)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:491)
at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
at dalvik.system.NativeStart.main(Native Method)

 ---  CUT HERE  ---

 I should point out that I have imported android.widget.LinearLayout and
 android.widget.LinearLayout.LayoutParams, and the variables for the layouts
 are defined, e.g.,

   LinearLayout msettingsLayout;

 and set by reference 

[android-developers] Faster Image Processing on Android

2012-03-25 Thread Christopher Wade
Hi guys, my first post here so I hope this post is in the right place.

I am currently writing an app that reads handwriting from a
photograph, but I am having an issue doing the image processing.

When you take a photograph it passed the bitmap to a new class and
runs some edge detection etc on it. However, this is incredibly slow.
I am using getPixel and setPixel on the bitmap to do this. This is
unfortunately incredibly slow.

I was just wondering, is there a faster way to process the image than
this, and without using OpenGL? I am not adverse to using OpenGL but
it will add a lot of time to development.

Thanks guys.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Memory leak using Pattern.matcher

2012-03-25 Thread David Griffiths
My app constantly runs out of memory and crashes when I am running unit 
tests (derived from AndroidTestCase). I seem to have isolated the problem; 
the following piece of code shows this in action:

final Pattern pattern = 
Pattern.compile(^\\s*[[a-z][A-Z][0-9]]+\\s*\\();
   final String line = new String(Pack my box with five dozen liquor 
jugs.);

   for (int i = 0; i  10; i++) {
   pattern.matcher(line);
   }

Each time round the for loop leaks about 60 bytes of memory. This is a 
genuine leak in the sense that increasing the loop counter eventually makes 
the app crash with an 'out of memory' exception.

I am build with API 7 (Android 2.1) and running on an emulator with API 10 
(Android 2.3.3). The crash occurs while I am testing the app using Android 
InstrumentationTestRunner.

Am I mad ? Am I doing something wrong ?

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Random() gives same result

2012-03-25 Thread David Griffiths
The line t = r.nextInt(i)  should be t = r.nextInt(i+1)


On Friday, 23 March 2012 14:48:09 UTC, Kristoffer wrote:

 Hello. 

 Iam having a problem with the Random() 

 everything gets random except for cards[0][0] that always ends up with 
 = 5 

 here is the code that i use, anyone have a solution? 
 in the code ROW_COUNT = 3 and COL_COUNT = 4 

 private void loadCards(){ 
 try{ 
 int size = ROW_COUNT*COL_COUNT; 

 ArrayListInteger list = new ArrayListInteger(); 

 for(int i=0;isize;i++){ 
 list.add(new Integer(i)); 
 } 

 Random r = new Random(); 

 for(int i=size-1;i=0;i--){ 
 int t=0; 

 if(i0){ 
 t = r.nextInt(i); 
 } 

 t=list.​remove(t).intValue(); 
 cards[i%COL_​COUNT][i/COL_COUNT]=t%(size/2)​; 
 } 
 } 
 catch (Exception e) { 
 Log.e(​loadCards(), e+); 
 } 

 } 





-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to reference custom xml attributes in a testing xml resource?

2012-03-25 Thread James Su
Hi all,
  I'm developing an android application which has a custom view with some 
custom xml attributes. The attributes are defined in res/values/attrs.xml, 
like:

resources
  declare-styleable name=CustomView
attr name=custom_attr /
  /declare-styleable
resources

And in CustomView.java, the attributes are loaded with TypedArray, like:

public class CustomView extends View {

public CustomView(Context context, AttributeSet attrs) {
TypedArray a = context.obtainStyledAttributes(attrs, 
R.styleable.CustomView);
...;
a.recycle();
}

This CustomView works correctly in the main apk.

Then I want to write an instrumentation test to test this CustomView, so I 
write a test layout file, which looks like:

tests/res/layout/test-layout.xml:

LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;

xmlns:myapp=http://schemas.android.com/apk/res/com.http://schemas.android.com/apk/res/com.google.android.apps.myappmycompany.myapp
 


com.google.android.apps.myapp.CustomView
  android:layout_width=wrap_content
  android:layout_height=wrap_content
  myapp:custom_attr= /

/LinearLayout

But Eclipse always complains: No resource identifier found for attribute 
'custom_attr' in package 'com.mycompany.myapp'.

Anybody know how to fix this problem?

Best Regards
James Su

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Wifi remote file access for smartphone/PDA

2012-03-25 Thread Rob Janicki
It's been done before. You can access files on a computer using a smartphone 
through an in-house app I helped develop written based on Java ME.

Sent from my iPhone

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: How-to use a shared library in native-activity

2012-03-25 Thread Sandeep Choudhary
Hi,

First of all the NDK is not providing support to load multiple shared
library at run-time!

The only way is load the depended so library manually in memory and then
call or do the required things as you want.  for example you want to call a
method of shared library called main with the method defined as  int
main(int argc, char** argv)

Currently this only the best way to solve the loading of multiple shared
library problem in Android.

example

void *lib_handle;
int (*fnmain)(int, char **);
char *error;

lib_handle = dlopen(/data/data/com.mycompany.myproject/lib/libmain.so,
RTLD_LAZY);
if (!lib_handle)
{
fprintf(stderr, %s\n, dlerror());
exit(1);
}

fnmain = dlsym(lib_handle, main);
if ((error = dlerror()) != NULL)
{
fprintf(stderr, %s\n, error);
exit(1);
}

ret = (*fnmain)(argc, argv);

dlclose(lib_handle);


Ping me back if you have any trouble in that!

Sandeep Choudhary http://mobi-solutions.blogspot.com/
http://www.linkedin.com/in/sandeepchoudhary


On Thu, Mar 15, 2012 at 3:43 PM, Gaëtan de Villèle gdevill...@gmail.comwrote:

 Hi Alex,

 Unfortunately no...
 I haven't completely watched the android office hours ... but I haven't
 find my question in it.

 For the (game) project I'm working on, I've set all compilation static :(
 I don't know who to ask for dynamic libs loading ... :(
 (it's pretty hard to ask to an android guy, they are very busy)

 There is a Dynamic Loader API in android native API I think ... (check the
 NDK documentation.html file)
 http://en.wikipedia.org/wiki/Dynamic_loading
 (#include dlfcn.h)
 Maybe it's the solution ... but, to use the dynamic loader from scratch
 isn't cool at all !! ...
 (a lot of complicated code to get functions pointers etc)

 See you later
 Gaëtan

 PS : if you want to chat, my skype pseudo : *gaetan117*


 Le 15 mars 2012 à 10:57, alex a écrit :

 Hey Gaetan,

 any progress on this from your side?

 Thanks,
 Alex


 On Feb 13, 9:46 pm, Gaetan gdevill...@gmail.com wrote:

 Ah ! I'm not alone with this problem ^_^


 Yes, this is very strange ...

 To solve your problem with STL, you can link to STLPORT_STATIC in you

 Application.mk file, like this :


 copy here--


 APP_STL := stlport_static


 copy here--


 For the moment, I have solved my problem by compiling all other libs with

 STATIC linking.

 (entry lib is still shared, and others are static)


 For shared libraries, I haven't found. I have asked the question here :
 http://goo.gl/mod/DdlG(you can vote ;) )

 for the next Android Developers hangout in google+ (
 https://plus.google.com/108967384991768947849/posts)

 (next wednesday)


 best regards !! =)


 --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Calendar edit event force close error....

2012-03-25 Thread Jast Vacaty
Hi,

I am trying to add calendar events by use my application. Event gets saved 
successfully. However when I try to edit event that saved successfully. I 
get the Force Close error.

*Cursor userCursor 
=getContentResolver().query(Uri.parse(calanderURL),null, null, null, null);
if(userCursor.getCount()  0){
userCursor.moveToFirst();
calId = 
userCursor.getString(userCursor.getColumnIndex(_id));
}
ContentValues event = new ContentValues();
event.put(title, title);
event.put(description, description);
event.put(eventLocation, Event Location); 
event.put(allDay, 0);
event.put(hasAlarm,0);
event.put(calendar_id,calId);
Calendar mCalendar = Calendar.getInstance();
mCalendar.set(2012, 2, 27,7,00,00);
long start = mCalendar.getTimeInMillis();
mCalendar.set(2012, 2, 27,8,00,00);
long end = mCalendar.getTimeInMillis();
event.put(dtstart,  start);
event.put(dtend, end);


* * Uri newEvent = Uri.parse(calanderEventURL);
getContentResolver().insert(newEvent, event);
userCursor.close();
* 
But when I chang the event.put(allDay, 0); to event.put(allDay,1).

Event gets edited successfully .

How do i fix it?

I am asking for any help.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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Developing from android device

2012-03-25 Thread James Su
You may try this app:
https://play.google.com/store/apps/details?id=com.aide.ui

2012/3/25 Andrew Demidenko demon2...@gmail.com

 hi guys.
 is there any way to develop (compile and then run) android applications
 from android device.
 for example, i haven't got laptop or any other mobility pc and i want to
 implement some feature for my application while busyness trip. Can i do it
 from my android device?

 --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to reference custom xml attributes in a testing xml resource?

2012-03-25 Thread James Su
Hi all,
  I'm developing an android application which has a custom view with some
custom xml attributes. The attributes are defined in res/values/attrs.xml,
like:

resources
  declare-styleable name=CustomView
attr name=custom_attr /
  /declare-styleable
resources

And in CustomView.java, the attributes are loaded with TypedArray, like:

public class CustomView extends View {

public CustomView(Context context, AttributeSet attrs) {
TypedArray a = context.obtainStyledAttributes(attrs,
R.styleable.CustomView);
...;
a.recycle();
}

This CustomView works correctly in the main apk.

Then I want to write an instrumentation test to test this CustomView, so I
write a test layout file, which looks like:

tests/res/layout/test-layout.xml:

LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;

xmlns:myapp=http://schemas.android.com/apk/res/com.mycompany.myapphttp://schemas.android.com/apk/res/com.google.android.apps.myapp


com.google.android.apps.myapp.CustomView
  android:layout_width=wrap_content
  android:layout_height=wrap_content
  myapp:custom_attr= /

/LinearLayout

But Eclipse always complains: No resource identifier found for attribute
'custom_attr' in package '...'.

I know that in the recent Android SDK r17, a new special xmlns 
http://schemas.android.com/apk/res-auto; is introduced to solve this issue
for library projects, but unfortunately, it doesn't work for my case.  Anybody
know how to fix this problem?

Best Regards
James Su

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] ShareActionProvider and MenuItem

2012-03-25 Thread Alessandro Torrisi
Hello to everybody, I'm new to the group and of course I need your help :-)

I'm developing an application for ICS levelApi 15. I have a single Activity
and some Fragment.
The problem is about the Menu attached to the ListView item and in
particular to the Share action.

This is my code:

public void onCreateContextMenu(ContextMenu menu, View v,
ContextMenu.ContextMenuInfo menuInfo) {
super.onCreateContextMenu(menu, v, menuInfo);

MenuInflater mInflater = new
MenuInflater(getActivity().getApplicationContext());
mInflater.inflate(R.menu.tweet_item_menu, menu);

final AdapterView.AdapterContextMenuInfo adapterMenuInfo =
(AdapterView.AdapterContextMenuInfo) menuInfo;
final Status status = (Status)
getListView().getAdapter().getItem(adapterMenuInfo.position);

...

ShareActionProvider shareActionProvider = (ShareActionProvider)
menu.findItem(R.id.ic_action_item_share).getActionProvider();

shareActionProvider.setShareHistoryFileName(tweet_item_share_history.xml);
shareActionProvider.setShareIntent(createShareIntent(status));

...
}

private Intent createShareIntent(Status status) {
Intent sharingIntent = new Intent(Intent.ACTION_SEND);
sharingIntent.setType(text/html);
sharingIntent.putExtra(Intent.EXTRA_SUBJECT, Sharing via
TwinyWorld);
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT,
status.getText());
return sharingIntent;
}

Executing the app I see that after clicking on the item, the menu appears
and the code above is executed with no exception, but suddenly after
clicking on the service I want to share with (for example Gmail) the app is
terminated but I can't see any error on Android LogCat.
After I attached the sources to the android-4.0.3.jar I started to debug
the app and in I put a breakpoint on the onMenuItemClick method: after I
stop there I see that the code is executed until the line
mContext.startActivity(launchIntent) and after this the app crashes.
Evaluating all the expressions in this snippet I can't find anything
strange.
The menuItem is correct, the launchIntent is the GmailComposer (or
something like this) but something goes bad... with no apparent error.
At this point I'm stuck !

private class ShareMenuItemOnMenuItemClickListener implements
OnMenuItemClickListener {
@Override
public boolean onMenuItemClick(MenuItem item) {
ActivityChooserModel dataModel =
ActivityChooserModel.get(mContext,
mShareHistoryFileName);
final int itemId = item.getItemId();
Intent launchIntent = dataModel.chooseActivity(itemId);
if (launchIntent != null) {
mContext.startActivity(launchIntent);
}
return true;
}
}

Even if I want to use this way, I tried also another one: for example if I
set a listener to the item and start the share intent through
Intent.createChooser everything goes fine, the chooser is shown and the
intent is launched. For this example I used:

startActivity(Intent.createChooser(Intent.ACTION_SEND, Share))

But both the solutions do not show me social apps that I have installed
on the phone, only Gmail, Email and some other app is shown.
What can I do for this ?

Thanks in advance,
Alex.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Notifications when App in background!

2012-03-25 Thread PinkFluffyBunny
Hi friends,

I have implemented push notification for my Application using c2dm,but
when I send a notification to the application, I need to open the app
to see the notification alert dialog box.
If an push notification is sent when the application is closed or
minimized (running in background) then the notification alert will not
pop up till we open the application window.

I want the notification to pop up even when the app is running in the
background or is stopped. It can pop the alert as a banner at the top
that stays for sometime and goes away or it can be a alert dialog box
that needs to be dismissed.

Are there any parameters specific in the payload or header that need
to be specified to achieve this?

How to acheive this ??? Please help!

Thanks!

--
Thanks ,
Vani

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Capture image if external storage is not avalaible

2012-03-25 Thread Emran
I'm trying to take picture with ACTION_IMAGE_CAPTURE and to retreive
URI of that image:

Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(intent, CAPTURE_IMAGE);
and in onActivityResult() I'm trying to get Uri with data.getData();
This method is working great on emulator and on my HTC but it's not
working with Samsung devices when image is saved in internal storage
by cam app.
Is there any way to get image when there is not external storage?

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to get string text from AutoCompleteTextView in android?

2012-03-25 Thread SUNIL KUMAR
please solve this problem.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Need help from the Android team...

2012-03-25 Thread Grady Duncan
I have done many hours of research and testing trying to find the best way
to start making android devices controllable by parents and users. I
started with the browser and decided to go with changing the DNS of the
mobile device. I wrote a script that would change the DNS then I took it to
the next step. I contacted my friend Jared (jrummy16) who was able to take
the script and turn it into an app. This app helps because it sets the DNS
to what the user specified when it is reset by the cell provider. The issue
is that it requires root privileges so it is not a solution that can be
used at the moment. We would like to work with the Android team to find a
way that our idea/app can change the DNS without the root requirement. If
there is anyway that you can help with this please let me know.

Getting the browser controlled was the first part of my personal master
plan. I have ideas that will allow the user or parents to control and
restrict the market without having all of a specific content blocked. If
there is anyway that I can work with the Android team to improve the market
and consider the ideas to make the device more controllable by parents and
users please let me know or point me in the right direction.

Thanks for you time, Grady

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] ConcurrentModificationException in GLSurfaceView, no stack trace or message...

2012-03-25 Thread Joe Hanvy
I'm getting a ConcurrentModificationException in GLSurfaceView which
stops my openGL android app. During running the app stops and switches
to GLSurfaceView, the stack trace shows that the GLThread has been
suspended (exception ConcurrentModificationException).

e   ConcurrentModificationException  (id=830008594488)
cause   ConcurrentModificationException  (id=830008594488)
detailMessage   null
stackState   (id=830008594520)
stackTrace  null

It has no stack trace, or message. I have no idea how to go about
tracking down where the problem is... The only way I can stop it is to
stop drawing. Has anyone got any tips?

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Proguard throws Error 1 with Loaders

2012-03-25 Thread Bruce Rees
FWIW, I had a similar problem today.. a large application which has been 
working fine with Proguard for a long time started throwing the Dalvik 
error after I implemented CursorLoaders.. I was able to fix it by 
setting -optimizationpasses 2 in proguard.cfg, I don't know why this works, 
I tried it out of desperation after trying everything else and seeing a 
reference to it 
herehttp://stackoverflow.com/questions/6605971/android-sdk-tools-revision-12-has-problem-with-proguard-error-conversion-to


On Thursday, March 15, 2012 5:38:20 AM UTC+13, Alex Curran wrote:

 There is an associated StackOverflow question here, which has more details 
 but still no answer 
 http://stackoverflow.​com/questions/8762281/​proguard-and-dalvik-error-​code-1http://stackoverflow.com/questions/8762281/proguard-and-dalvik-error-code-1

 On Wednesday, 14 March 2012 16:35:11 UTC, Alex Curran wrote:

 A while back I tried to create an implementation of CursorLoaders in my 
 app, switching from managedQuery()s. I found that this resulted in my app 
 failing to obfuscate when running it through ProGuard, returning with a 
 dialog which references Error 1, but giving no other details. I surmised it 
 was because I was using a complicated method of routing callbacks through 
 my app and thought nothing more of it.

 I tried again today, using the most basic implementation I could 
 (analogous to the implementation in the Loaders article in the Android 
 Developers website with one Activity implementing the Callbacks), and again 
 it failed to obfuscate. Removing any references to the Loader framework 
 resulted it in building and obfuscating correctly.

 Is this a known problem or something very odd? It's probably worth 
 noting, I'm using the support library (v6), and the app will build fine, 
 run fine and even compile for release *so long as it isn't run through 
 ProGuard*.


On Thursday, March 15, 2012 5:38:20 AM UTC+13, Alex Curran wrote:

 There is an associated StackOverflow question here, which has more details 
 but still no answer 
 http://stackoverflow.​com/questions/8762281/​proguard-and-dalvik-error-​code-1http://stackoverflow.com/questions/8762281/proguard-and-dalvik-error-code-1

 On Wednesday, 14 March 2012 16:35:11 UTC, Alex Curran wrote:

 A while back I tried to create an implementation of CursorLoaders in my 
 app, switching from managedQuery()s. I found that this resulted in my app 
 failing to obfuscate when running it through ProGuard, returning with a 
 dialog which references Error 1, but giving no other details. I surmised it 
 was because I was using a complicated method of routing callbacks through 
 my app and thought nothing more of it.

 I tried again today, using the most basic implementation I could 
 (analogous to the implementation in the Loaders article in the Android 
 Developers website with one Activity implementing the Callbacks), and again 
 it failed to obfuscate. Removing any references to the Loader framework 
 resulted it in building and obfuscating correctly.

 Is this a known problem or something very odd? It's probably worth 
 noting, I'm using the support library (v6), and the app will build fine, 
 run fine and even compile for release *so long as it isn't run through 
 ProGuard*.


On Thursday, March 15, 2012 5:38:20 AM UTC+13, Alex Curran wrote:

 There is an associated StackOverflow question here, which has more details 
 but still no answer 
 http://stackoverflow.​com/questions/8762281/​proguard-and-dalvik-error-​code-1http://stackoverflow.com/questions/8762281/proguard-and-dalvik-error-code-1

 On Wednesday, 14 March 2012 16:35:11 UTC, Alex Curran wrote:

 A while back I tried to create an implementation of CursorLoaders in my 
 app, switching from managedQuery()s. I found that this resulted in my app 
 failing to obfuscate when running it through ProGuard, returning with a 
 dialog which references Error 1, but giving no other details. I surmised it 
 was because I was using a complicated method of routing callbacks through 
 my app and thought nothing more of it.

 I tried again today, using the most basic implementation I could 
 (analogous to the implementation in the Loaders article in the Android 
 Developers website with one Activity implementing the Callbacks), and again 
 it failed to obfuscate. Removing any references to the Loader framework 
 resulted it in building and obfuscating correctly.

 Is this a known problem or something very odd? It's probably worth 
 noting, I'm using the support library (v6), and the app will build fine, 
 run fine and even compile for release *so long as it isn't run through 
 ProGuard*.


On Thursday, March 15, 2012 5:38:20 AM UTC+13, Alex Curran wrote:

 There is an associated StackOverflow question here, which has more details 
 but still no answer 
 http://stackoverflow.​com/questions/8762281/​proguard-and-dalvik-error-​code-1http://stackoverflow.com/questions/8762281/proguard-and-dalvik-error-code-1

 On Wednesday, 14 March 2012 

[android-developers] set parameters of webpage and make http request

2012-03-25 Thread girish sanenahalli
can anyone tell me how to set the values of a textbox or label in a
webpage and make a httprequest using 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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Problem reading HTTP stream

2012-03-25 Thread Sudesh
I got the same issue yesterday for a similar code
I believe the emulator couldn't connect to internet.
uninstalling the app doing a clean build and restarting the emulator
fixed the problem.
make sure you have put uses permisson internet.
restartng
On Mar 25, 4:02 am, g...@deanblakely.com g...@deanblakely.com
wrote:
 The code pasted below gets an exception on tha line that says...
 InputStream in = new
 BufferedInputStream(urlConnection.getInputStream());
 It's an IO exception that says: java.net.UnknownHostException:www.android.com

 I checked and that is a valid url.  I got the original code from the
 android docs on HttpURLConnection although I had to fix serveral bugs
 in the docs code.

 Why am I getting this exception?
 thanks,
 Gary

 import java.io.BufferedInputStream;
 import java.io.ByteArrayOutputStream;
 import java.io.IOException;
 import java.io.InputStream;
 import java.net.HttpURLConnection;
 import java.net.MalformedURLException;
 import java.net.URL;

 import android.app.Activity;
 import android.os.Bundle;

 public class HelloAndroid extends Activity {
     /** Called when the activity is first created. */
     @Override
     public void onCreate(Bundle savedInstanceState)
     {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main);

         HttpURLConnection urlConnection = null;

                         try
                         {
                                 URL url = new URL(http://www.android.com/;);
                                 urlConnection = (HttpURLConnection) 
 url.openConnection();
                                 InputStream in = new
 BufferedInputStream(urlConnection.getInputStream());
                                 readStream(in);
                         }
                         catch (MalformedURLException e)
                         {
                                 // TODO Auto-generated catch block
                                 e.printStackTrace();
                         }
                         catch (IOException e)
                         {
                                 e.printStackTrace();
                         }

                 finally
                 {
                         urlConnection.disconnect();
                 }
     }

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] ALOGV not found

2012-03-25 Thread Eric
Hi, all

I have compiled through the ics codebase from google, but when I tried
to compile some module separately, I got such errors, and I don't know
what's the problem

error: 'ALOGV' was not declared in this scope

any suggestion will be appreciated, 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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Are Google Play rankings stuck?

2012-03-25 Thread AdriMcGrady
Any news about this? Five days since the last change of ranking...

El viernes 16 de marzo de 2012 15:17:19 UTC+1, markusn82 escribió:

 I noticed that Google Play rankings haven't moved since Wednesday. How 
 often to do rankings update? The last time I checked they were updated 
 once a day. Has this changed in the last while or is there a bug in 
 the market?

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Android keystore password recovery tool

2012-03-25 Thread Max
I made a simple tool that could help you to recover your lost password
for the android keystore
https://code.google.com/p/android-keystore-password-recover/downloads/list
It helped for me, maybe you can recover your key, too.
Good luck

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] R17 does not add dependent jars unless exported

2012-03-25 Thread Boris Burtin
After upgrading from R16 to R17, I started getting
NoClassDefFoundErrors for classes in dependent jarfiles.  I eventually
figured out that only the jarfiles that were marked as exported were
being added to the apk.  Is this intentional?  Seems odd that my code
compiles in Eclipse, but then fails to run on the device unless I
check the exported box.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Modify a textview value in a custom listview after clicking

2012-03-25 Thread Akram
This listview has an adapter that is linked to a layout for each row
(itemrow.xml)

The price value (500-250 300) is a textview

How can we access to it, to modify it, once clicked on a button ?

Thanks you for the help.




l

Android

Price: 500

l

Php

Price: 250


l

C++

Price: 300

l

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] XML Layout SERIOUSLY misbehaving

2012-03-25 Thread Jim Graham
On Sun, Mar 25, 2012 at 10:14:12PM +0200, YuviDroid wrote:
 By reading this:  android.widget.LinearLayout$LayoutParams cannot be cast
 to android.widget.FrameLayout$LayoutParams
 
 I'd say you need to change this:
  msettingsLayout.setLayoutParams(new LinearLayout.LayoutParams(settingsw,
 settingsh));
 into:
  msettingsLayout.setLayoutParams(new *FrameLayout*.LayoutParams(settingsw,
 settingsh));
 
 This is most probably because your LinearLayout  msettingsLayout  is inside
 a FrameLayout, and so its layout params must be of its parent class.

Ok, where's the FrameLayout?  I haven't define one.  As I said in the
original post, even the word Frame is *NOWHERE* in my project.  It''s
not in the Java file.  It's not in the XML files..  It's not in the
Manifest.  Basically (in Zsh):

  $ cd Android/workspace/DroidProCam
  $ frep -i frame **/*.xml **/*.java
  $

Nothing found.

So, again, where IS this frame layout defined?

Thanks,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| Tux (E Cat):  DS B+Wd Y 6 Y L+++ W+ C++/C++ I+++
spooky1...@gmail.com| T++ A E H+ S V- F++ Q+++ P/P+ B++ PA+ PL SC---
 Running FreeBSD 7.0  | 
ICBM / Hurricane:   | Tiggerbelle:  DS W+S+Bts % 1.5 X L W C+++/C+
   30.44406N 86.59909W  | I+++  T A E++ H S++ V+++ Q+++ P  B++ PA++ PL+ SC

Android Apps Listing at http://www.jstrack.org/barcodes.html

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Notifications when App in background!

2012-03-25 Thread Mark Murphy
On Fri, Mar 23, 2012 at 7:31 PM, PinkFluffyBunny akshaywa...@gmail.com wrote:
 I have implemented push notification for my Application using c2dm,but
 when I send a notification to the application, I need to open the app
 to see the notification alert dialog box.

Standard Android notifications are not dialogs.

 If an push notification is sent when the application is closed or
 minimized (running in background) then the notification alert will not
 pop up till we open the application window.

 I want the notification to pop up even when the app is running in the
 background or is stopped. It can pop the alert as a banner at the top
 that stays for sometime and goes away or it can be a alert dialog box
 that needs to be dismissed.

Please don't attack your users that way, unless they opt into it. Many
of your users will not appreciate being forcibly interrupted in the
middle of their game, their book, their movie, etc. Please allow an
option for using standard Android notifications, which the vast
majority of your users will be used to.

 Are there any parameters specific in the payload or header that need
 to be specified to achieve this?

No. Your problem has nothing to do with C2DM data. It has everything
to do with what you are doing when the C2DM broadcast arrives and what
you are then doing.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5
Available!

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Need help from the Android team...

2012-03-25 Thread Mark Murphy
On Fri, Mar 23, 2012 at 5:10 PM, Grady Duncan gradydun...@gmail.com wrote:
 I have done many hours of research and testing trying to find the best way
 to start making android devices controllable by parents and users. I
 started with the browser and decided to go with changing the DNS of the
 mobile device. I wrote a script that would change the DNS then I took it to
 the next step. I contacted my friend Jared (jrummy16) who was able to take
 the script and turn it into an app. This app helps because it sets the DNS
 to what the user specified when it is reset by the cell provider. The issue
 is that it requires root privileges so it is not a solution that can be
 used at the moment. We would like to work with the Android team to find a
 way that our idea/app can change the DNS without the root requirement. If
 there is anyway that you can help with this please let me know.

Questions regarding modifying the Android source code belong on
http://source.android.com and the Google Groups they list there.

Personally, I suspect that your suggestion will be rejected, as the
malware potential for your hack is substantial.

 If
 there is anyway that I can work with the Android team to improve the market
 and consider the ideas to make the device more controllable by parents and
 users please let me know or point me in the right direction.

Apply for a job at Google. Google is the sole maintainer of the Google
Play client.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5
Available!

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Launching default messaging app for mms

2012-03-25 Thread A. Elk
The chooser is a system function, and not one that you can create. It 
appears automatically if  application A sends out an intent and gets a 
match from more than one destination application [B,C,D...] . In the 
chooser, the user can select a default application X to use for the intent 
that application A sent out. After that, X is launched every time that *
intent* is sent out, regardless of the application that sent it.

For example, if  my application sends an intent with the action ACTION_VIEW 
and the MIME type image/jpeg, most users will get a chooser, because 
applications that can view JPEG images are quite common. If the user 
chooses some graphics application X as the default, then any time *any* 
application 
sends an intent with ACTION_VIEW and MIME type image/jpeg, application X 
will launch:

*IMPORTANT EXCEPTION:* An application can provide additional levels of 
filtering that narrow down the applications that will respond to an intent. 
To learn more, read the *Intents and Intent Filtering* guide in the 
Developers Guide.

If you want a specific application to handle your intent, you have to be as 
specific as possible with the intent data. The most narrow specification 
you can make is the component name and class of the target activity or 
service. On the whole, though, you should avoid being too specific. The 
intent framework allows the user to pick and choose applications for 
various tasks; be too specific, and you're taking functionality away from 
the user.

If you send an intent, be sure to specify an action and a MIME type, if 
nothing else. If you handle incoming intents, be sure to set up your intent 
filters correctly and test them.

On Sunday, March 25, 2012 2:27:46 AM UTC-7, Farhan wrote:

 Hi all, 
 I am working on an application that allows user to create mms messages 
 according to a template, for android 2.2. I am done with most of the work, 
 but I am stuck with one thing. I want to be able to launch the android's 
 default messaging application to send the mms. I tried to set package of 
 the intent as com.android.mms and it seems to work fine on my phone, as 
 well as emulator, but it is showing a chooser for the mms intent to my 
 friend. I am not creating a chooser anywhere, still. Can anyone help me get 
 through this. A little guidance is I think all I need. Thank you

 Regards

 Farhan


-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Memory leak using Pattern.matcher

2012-03-25 Thread Mark Murphy
Create a project that reproduces your error and post a bug report to
http://b.android.com.

On Fri, Mar 23, 2012 at 10:38 AM, David Griffiths davi...@cordic.com wrote:
 My app constantly runs out of memory and crashes when I am running unit
 tests (derived from AndroidTestCase). I seem to have isolated the problem;
 the following piece of code shows this in action:

         final Pattern pattern =
 Pattern.compile(^\\s*[[a-z][A-Z][0-9]]+\\s*\\();
        final String line = new String(Pack my box with five dozen liquor
 jugs.);

        for (int i = 0; i  10; i++) {
        pattern.matcher(line);
        }

 Each time round the for loop leaks about 60 bytes of memory. This is a
 genuine leak in the sense that increasing the loop counter eventually makes
 the app crash with an 'out of memory' exception.

 I am build with API 7 (Android 2.1) and running on an emulator with API 10
 (Android 2.3.3). The crash occurs while I am testing the app using Android
 InstrumentationTestRunner.

 Am I mad ? Am I doing something wrong ?

 --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5
Available!

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] XML Layout SERIOUSLY misbehaving

2012-03-25 Thread Romain Guy
It might now be a FrameLayout but a subclass of a FrameLayout. You can
see that the problem happens inside a ScrollView. What ScrollViews do
you have and what do you put in them?

On Sun, Mar 25, 2012 at 1:20 PM, Jim Graham spooky1...@gmail.com wrote:
 On Sun, Mar 25, 2012 at 10:14:12PM +0200, YuviDroid wrote:
 By reading this:  android.widget.LinearLayout$LayoutParams cannot be cast
 to android.widget.FrameLayout$LayoutParams

 I'd say you need to change this:
  msettingsLayout.setLayoutParams(new LinearLayout.LayoutParams(settingsw,
 settingsh));
 into:
  msettingsLayout.setLayoutParams(new *FrameLayout*.LayoutParams(settingsw,
 settingsh));

 This is most probably because your LinearLayout  msettingsLayout  is inside
 a FrameLayout, and so its layout params must be of its parent class.
It might n
 Ok, where's the FrameLayout?  I haven't define one.  As I said in the
 original post, even the word Frame is *NOWHERE* in my project.  It''s
 not in the Java file.  It's not in the XML files..  It's not in the
 Manifest.  Basically (in Zsh):

      $ cd Android/workspace/DroidProCam
      $ frep -i frame **/*.xml **/*.java
      $

 Nothing found.

 So, again, where IS this frame layout defined?

 Thanks,
   --jim

 --
 THE SCORE:  ME:  2  CANCER:  0
 73 DE N5IAL (/4)        | Tux (E Cat):  DS B+Wd Y 6 Y L+++ W+ C++/C++ I+++
 spooky1...@gmail.com    | T++ A E H+ S V- F++ Q+++ P/P+ B++ PA+ PL SC---
  Running FreeBSD 7.0  |
 ICBM / Hurricane:       | Tiggerbelle:  DS W+S+Bts % 1.5 X L W C+++/C+
   30.44406N 86.59909W  | I+++  T A E++ H S++ V+++ Q+++ P  B++ PA++ PL+ SC

 Android Apps Listing at http://www.jstrack.org/barcodes.html

 --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
Romain Guy
Android framework engineer
romain...@android.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 group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] XML Layout SERIOUSLY misbehaving

2012-03-25 Thread Jim Graham
On Sun, Mar 25, 2012 at 01:35:14PM -0700, Romain Guy wrote:
 It might now be a FrameLayout but a subclass of a FrameLayout. You can
 see that the problem happens inside a ScrollView. What ScrollViews do
 you have and what do you put in them?

I should have mentioned---it happened before I put in the ScrollView,
too.

But to answer your question, as per the ScrollView docs, it can only wrap
one item, and that's a LinearLayout.

So is LinearLayout a subclass of FrameLayout, then?  I would never have
guessed that (and if it's in the docs, I never saw it).  So should I
change the cast for the LinearLayout params to FrameLayout, then?
And do I need to import android.widget.FrameLayout?

Sorry if any of these are stupid questions---I'm in unexplored territory
with these problems, and have been for (how many weeks has this been
driving me crazy, going from one set of documentation material to
another, and another, and another, and ... ad nauseum?).  As I said in
my first post, I finally gave up and had to post here.

Thanks,
   --jim

PS:  no need to CC me...gmail nukes the duplicate copy when it sees
 the duplicate Message-ID...and it'd still end up in this mbox
 file instead of in /var/mail thanks to my procmail filters
 that redirect all from this group here.  :-)

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W

   Now what *you* need is a proper pint of porter poured in a proper
   pewter porter pot.. --Peter Dalgaard in alt.sysadmin.recovery

Android Apps Listing at http://www.jstrack.org/barcodes.html

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Listview of programmatically created Drawables

2012-03-25 Thread tomc_apadmi
I haven't done anyting like what you are trying before but my best guess 
would be to create your own custom view overriding onDraw().

The below link might be useful.
http://stackoverflow.com/questions/2763572/override-ondraw-to-change-how-the-drawing-occurs-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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Default phone and sim account name and account type.

2012-03-25 Thread tomc_apadmi
Hi,

I am trying to figure out the best way to reliably get the default
phone and sim, account name and account type across a range of
devices.

Unfortunatley it appears this is implemented in different ways on most
devices. Sometimes the account information appears in
AccountManager.getAccounts(), other times it does not. Sometimes there
is an AuthenticatorDescription to match, often there is not.

On some devices setting accountType and AccountName to null will
create a default account, but on others it will just not be recognized
by the native contacts application.

So essentially the question is, is there anything obvious I am
missing, or am I just going to have to hard code the values for each
device I want to support?

Best Regards

Tom C

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Update per SD-Card

2012-03-25 Thread Jürgen Kemmer
Hello.

I have an App (signed per Export in Eclipse, installed per SD-Card, not 
from Market) which I want to update.
If I install a newer Version of the App (signed and installed in the same 
way) I have after the Installation all 2 Versions installed.

I want a Update because in the App-Folder are already Data and I wan't 
loose it.
Is it possible to update per SD-Card or is the Market needed for this?

Thanks for any answer

Juergen

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Calendar edit event force close error....

2012-03-25 Thread Jast Vacaty
I am trying to add calendar events with my applicatiom. Event gets saved 
successfully. However when i try to edit that event in Calendar. I get 
Force Close error.

   String calId = ;
Cursor userCursor 
=getContentResolver().query(Uri.parse(content://com.android.calendar/calendars),null,
 
null, null, null);
if(userCursor.getCount()  0){
userCursor.moveToFirst();
calId = 
userCursor.getString(userCursor.getColumnIndex(_id));
}
ContentValues event = new ContentValues();
event.put(title, title);
event.put(description, description);
event.put(eventLocation, Event Location); 
event.put(allDay, 0);
event.put(hasAlarm,0);
event.put(calendar_id,calId);
Calendar mCalendar = Calendar.getInstance();
mCalendar.set(2012, 2, 27,7,00,00);
long start = mCalendar.getTimeInMillis();
mCalendar.set(2012, 2, 27,8,00,00);
long end = mCalendar.getTimeInMillis();
event.put(dtstart,  start);
event.put(dtend, end);


Uri newEvent = Uri.parse(content://com.android.calendar/events);
getContentResolver().insert(newEvent, event);
ContentValues values = new ContentValues();
userCursor.close();

But when I change event.put(allDay, 0); to event.put(allDay, 1);
Event gets saved successfully and gets edited successfully.

How do I fix it?

Using 2.3.5 device. Appreciate any help. 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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Camera Video processing using android ndk

2012-03-25 Thread Shodhan rao
Hello,

I have been working on a camera video processing project using ndk.I
capture the video preview buffer through onPreviewframe callback and
send it to native code for processing as my processing algorithm is in
c++.But the transfer rate is slow which is resulting in slow fps.I am
processing about 13 mb of data for every preview frame.I would like to
know the best method to transfer the camera preview buffer to the
native code and process it. I am using sdk 2.3 and ndk 6 .


Regards,
Shodhan

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Merchant Account no longer available

2012-03-25 Thread Mickey
Same problem here.  Can access it from a pc, but on the phone I can't


On Mar 25, 5:14 am, Terry terb...@gmail.com wrote:
 When I try to View Merchant Account from Developer Console, I get an
 error message saying that there is a Data connectivity problem - The
 page contains too many server redirects, and the following display:

 Web page not available

 The Web page at https://accounts.google.com/ServiceLogin?
 service=sierrapassive=1200continue=https://checkout.google.com/sell/
 orders?pli%3D1followup=https://checkout.google.com/sell/orders?pli
 %3D1ltmpl=sellerscc=1 miwght be temporarily down or it may have
 moved permanently to a new web address.Here are some suggestions:Check
 to make sure that your device has a signal and data connectionReload
 this web page later.View a cached copy of the web page from Google

 It has been like this for a few days. I hope that Google will fix it
 soon.

 Terry

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] changing DHCP options

2012-03-25 Thread z.w
Hi,
i want to change the value of the vendor class id option in a dhcp
request so does the android OS implement a method to do this ??

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: onActivityResult not being called

2012-03-25 Thread mcterry
That's correct, using standard should trigger the OnActivityResult()

Are you still having trouble getting the result?

On Friday, March 23, 2012 12:04:32 PM UTC-4, Joey Selah wrote:

 Thanks Matt! 

 The resultCode == 0 is nothing really, I just quickly threw it in so I 
 could set a breakpoint to test that the event handler was being called 
 and the breakpoint isn't hitting.  but I'll definitely be changing 
 resultCode after it hits. 

 So correct me if I'm wrong, if I set the launch mode of the intent to 
 standard then OnActivityResult() should be hit, right? 

 On Mar 22, 7:14 pm, mcterry macte...@gmail.com wrote: 
  Hey Joey - first off, it looks like you are testing for the resultCode 
 == 0 
  in your onActivityResult() method.  You should be looking for whatever 
 you 
  set your result to in your BaseIngredient Activity (looks like you're 
 using 
  RESULT_OK). 
  
  In addition, if you've changed the launchMode of an Activity, then 
  there's a good chance that you will *not* get the result back.  For 
  example, singleTask will put each Activity into separate Tasks, and one 
  Activity won't ship the result back to the other Activity without some 
  additional work.
 http://developer.android.​com/guide/topics/manifest/​activity-element.h.http://developer.android.com/guide/topics/manifest/activity-element.h...
  

  
  I hope this helps! 
  -Mattwww.sep.com/mcterry 
  
  
  
  
  
  
  
  On Thursday, March 22, 2012 10:43:24 AM UTC-4, Joey Selah wrote: 
  
   Actually excuse me, 
  
   I've mixed the classed up some how.  Below is the correct code: 
  
   public class BrewJournalEdit extends Activity { 
   @Override 
   protected void onCreate(Bundle savedInstanceState) { 
   super.onCreate(​​savedInstanceState); 
   setContentView(R.layout.brew_​​journal_edit); 
   baseIngredientButton.​​setOnClickListener(new 
   View.OnClickListener() { 
   public void onClick(View view) { 
   Intent intent = new 
   Intent().setClass(​​BrewJournalEdit.this, BaseIngredientEdit.class); 
   int requestCode = 0; 
   startActivityForResult(intent, requestCode); 
   } 
   }); 
   @Override 
   protected void onActivityResult(int requestCode, int resultCode, 
   Intent data) 
   { 
   if(resultCode == 0) 
   { 
   } 
   } 
   } 
  
   public class BaseIngredientEdit extends Activity { 
   @Override 
   protected void onCreate(Bundle savedInstanceState) { 
   super.onCreate(​​savedInstanceState); 
   setContentView(R.layout.brew_​​base_ingredients_edit); 
   Button confirmButton = (Button) findViewById(R.id.confirm); 
   confirmButton.​​setOnClickListener(new View.OnClickListener() 
 { 
   public void onClick(View view) { 
   setResult(RESULT_OK); 
   finish(); 
   } 
   }); 
  
   On Mar 19, 10:21 pm, FiringCode kims...@gmail.com wrote: 
Intent().setClass(​​BrewJournalEdit.this, BaseIngredientEdit.class); 
  
to 
  
Intent().setClass(​​BaseIngredientEdit.this, BrewJournalEdit.class);

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to start working on Android Mobile Operating System

2012-03-25 Thread HARISH VADLA
Hi Every one

 This is HARISH. I have did few applications in android. Now i
want to work on android mobile os. Please suggest me the starting
point. Where should i start. Where can i get the code for Android
previous mobile versions code.


Please give reply to this.

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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Parsing SOAP request

2012-03-25 Thread Juan Barisich
Maybe a little later... but here is a link 
http://www.dzone.com/links/​simplifying_ksoap2_clients_​part_2.html to a 
post that can help you.
It talk about how to send/receive complex types such as lists, arrays, and 
complex objects (complex meaning non primitive Java types). 
Also, it includes a link to a source code repository with some examples 
about this. 

Regards

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to set the background image in ListView

2012-03-25 Thread Ragav S

Hai,

 I need to show List View with background image.

 XML CODE:
---
?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=match_parent
android:layout_height=match_parent
android:orientation=vertical
  android:background=@drawable/bgimg


  ImageView
  android:id=@+id/imageView1
  android:layout_width=wrap_content
  android:layout_height=70dp
  android:src=@drawable/test /

  TextView
  android:id=@+id/listView100
  android:text=
  android:paddingLeft=10dp
  android:paddingTop=15dp
  android:paddingBottom=15dp
  android:textSize=20sp
  android:layout_marginRight=1sp
  android:layout_marginLeft=1sp
  android:paddingRight=8dp
  android:layout_marginTop=5sp
  android:layout_width=match_parent
  android:layout_height=wrap_content
  android:textColor=@color/lightbrown/
/LinearLayout

Java Code:
---


package p41.android.kiscol.act;
import android.app.ListActivity;
import android.os.Bundle;
import android.view.Window;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.view.animation.AnimationSet;
import android.view.animation.LayoutAnimationController;
import android.view.animation.TranslateAnimation;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.ListView;

public class CompaniesActivity extends ListActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.requestWindowFeature(Window.FEATURE_NO_TITLE);

String[] values = new String[] {
TEST 1,
TEST 2,
TEST 3,
TEST 4,
TEST 5
 };

ArrayAdapterString adapter = new
ArrayAdapterString(this,R.layout.companies, R.id.listView100,
values);
setListAdapter(adapter);

AnimationSet set = new AnimationSet(true);
Animation animation = new AlphaAnimation(0.0f, 1.0f);
animation.setDuration(1000);
set.addAnimation(animation);
getListView().setAnimationCacheEnabled(false);
getListView().setScrollingCacheEnabled( false);

animation = new TranslateAnimation(
Animation.RELATIVE_TO_SELF,
0.0f,Animation.RELATIVE_TO_SELF, 0.0f,
Animation.RELATIVE_TO_SELF,
-1.0f,Animation.RELATIVE_TO_SELF, 0.0f
);

set.addAnimation(animation);
LayoutAnimationController controller = new
LayoutAnimationController(set, 0.5f);
ListView listView;
listView = getListView();
listView.setLayoutAnimation(controller);
}


}

OUTPUT


But i got the result.
Each row having  background image and image view.
But i need all rows with one  background image and image view.

Please give solution for that.
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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Closing / Launching Activity, but through ProgressDialog thread

2012-03-25 Thread paulo
Hi all,


A minor issue I am having for an app is that when sync'ing some data,
completed through a thread/ProgressDialog, I need to refresh the
underlying Activity. I can't seem to work out how to do this from the
Thread however, surely it can't be that hard right?


Any pointers much appreciated


Paul


-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Merchant Account no longer available

2012-03-25 Thread Mickey

Solved it - switched from dolphin to my default browser.  Works.
On Mar 25, 5:14 am, Terry terb...@gmail.com wrote:
 When I try to View Merchant Account from Developer Console, I get an
 error message saying that there is a Data connectivity problem - The
 page contains too many server redirects, and the following display:

 Web page not available

 The Web page at https://accounts.google.com/ServiceLogin?
 service=sierrapassive=1200continue=https://checkout.google.com/sell/
 orders?pli%3D1followup=https://checkout.google.com/sell/orders?pli
 %3D1ltmpl=sellerscc=1 miwght be temporarily down or it may have
 moved permanently to a new web address.Here are some suggestions:Check
 to make sure that your device has a signal and data connectionReload
 this web page later.View a cached copy of the web page from Google

 It has been like this for a few days. I hope that Google will fix it
 soon.

 Terry

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] ADB server didn't ACK [2012-03-24 22:13:57 - adb] * failed to start daemon

2012-03-25 Thread sihem gazzah
ADB server didn't ACK
[2012-03-24 22:13:57 - adb] * failed to start daemon

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] zoom image using matrix

2012-03-25 Thread Neeraj Narang
I tried implementing the code for zoom image using a matrix in
android. But am getting the below issue. Could someone please help me
out with this?

Here's the code:

?xml version=1.0 encoding=utf-8?
FrameLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent
android:layout_height=fill_parent

ImageView
android:id=@+id/imageview
android:layout_width=fill_parent
android:layout_height=fill_parent
android:scaleType=matrix
android:src=@drawable/myimage 
/ImageView

/FrameLayout

public class MyActivity extends Activity{
Matrix matrix = new Matrix();
Matrix savedMatrix = new Matrix();
ImageView imageView;
@Override
public void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);
setContentView(R.layout.main);
imageView = (ImageView) findViewById(R.id.imageview);
imageView.setScaleType(ScaleType.MATRIX);
Bitmap cur_bm = BitmapFactory.decodeResource(getResources(),
R.drawable.myimage);
imageView.setImageBitmap(cur_bm);
}
}

If I comment the line imageView.setScaleType(ScaleType.MATRIX); then
the image appears skewed in the emulator. It doesn't fill the screen.

But if I uncomment the line imageView.setScaleType(ScaleType.MATRIX);
then the image fills the screen of the emulator.

Just setting the scaleType to MATRIX causes the image to scale down.
Could someone tell why this happens and how to overcome this issue?

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] remote droid

2012-03-25 Thread PM
i have downloaded all the file from code.google.com for the
application remote droid ,but it doent allow me to import please help
me to sort it out.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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Use marquee on notification bar

2012-03-25 Thread Max918
Hi everyone,
i am trying to add a very long message to the notification bar.
but it only show little word on the screen.
i tried to create a remote view and follow the step from the google
search android notification marquee
seems it can not fix the problem.

Anyone can give me some example or tutorial link to fix this problem ?

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 options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] changing DHCP options

2012-03-25 Thread z.w
Hi,
I want to change the value of vendor class id  option 60 in the dhcp
request .Is there any java-coded method to do that?

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] développement androide

2012-03-25 Thread Amirakh
I am trying to develop an application I need to have the java xml and
html code that displays a pdf with animation falsh please
j'essaye de développer une application androide avec Eclipse j'ai
besoin du code java xml et html qui affichent un pdf en sortie avec
animation flash SVP

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Is there any functionality like 'Ticker of Facebook' in Android which keeps on revolving?

2012-03-25 Thread Manish Dubey
I am doing my final year project named- eNotice Board which will be an
android app and flashed on a LCD attached to Android device. So I want
the notices to rotate in a manner like that of ticker in Facebook.
Also if not ticker then can I show the notices swapping with time,
like 5 notices for 15 seconds and rest 5 for another 15 seconds?
Guys!! Please come to my rescue!!!

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Arduino vs Io-Io

2012-03-25 Thread James Cardona
how I can communicate two IO-IO card, controlled by Android.

And if android vs arduino communication is better than IO-IO vs
android

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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Queries with SQLiteStatement?

2012-03-25 Thread Michael Parker
Hi all,


In Android, SQLiteStatement allows me to use prepared statements in
SQLite (i.e. the good type with escaped values that prevents injection
attacks). But it seems that you can only use them for create/update/
delete operations, and not for read operations (i.e. queries).

This isn't a limitation of SQLite, because in iOS (ahem) I can create
prepared statements of type sqlite3_stmt* and use them for queries.
How can I do this in Android? I don't want to query without using a
prepared statement...

Thanks,
Mike

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] httpclient post - debug the request?

2012-03-25 Thread paulo
Hi folks,

I have an app that is sending MultipartEntity requests through
httpclient, sometimes successful but sometimes failing (400 error
code), to a Rails-based API.


I am struggling to debug the errors from the server-side, are there
any tools or functions in eclipse that can assist in capturing and
picking apart a http post to assist in finding the problems?


Many thanks


Paul

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Opening Mytracks in my android app

2012-03-25 Thread Rahul Sharma
Hiya folks,
I want to develop an app the initial part of which focuses on starting the 
Mytracks app so that I can show the track on the map to the user.
I tried the sample code given here: 
http://code.google.com/p/mytracks/wiki/MyTracksApi . 
But it is not working, it does not show anything when I start the app.
My code is here: http://pastebin.com/QsbQRyHC.
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 more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Mobile to Mobile remote access

2012-03-25 Thread changqing shao
Alljoyn

On 3月23日, 上午3时50分, MadihaKhalid tears.blos...@gmail.com wrote:
 i just want to know that how i could develop an android application who
 give remote access to other Android mobile.

 I just want to know the ways of implementing an application through which I
 can access *Another Android device* including all the events that happens
 on the host device(just like TeamViewer for desktop).

 is there any protocol for Android device sharing ? (Note: I would like to
 do it using internet)

 please let me know any idea about it?

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Root login in xperia mini pro.

2012-03-25 Thread RAHUL ROY
I want to root login in my Sony Ericsson xperia mini pro  (sk17i) is
it possible ?if yes then how.plz tell me!

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] load a kml map to my android app

2012-03-25 Thread LA
Hi,

i tried to find how i could load kml file and I found that I can use:

Intent mapIntent = new Intent(Intent.ACTION_VIEW);
Uri uri1 = Uri.parse(geo:0,0?q=http://code.google.com/apis/kml/
documentation/KML_Samples.kml);
mapIntent.setData(uri1);
startActivity(Intent.createChooser(mapIntent, Sample));

is there any other way such that i can upload the kml file locally
from my pc rather than having to upload it to a website, then use
it..as I am developing an applications and usually other users wont be
able to access the kml of they dont have the username and password for
the link

please if anyone can help, I would be thankful.

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] editing host file

2012-03-25 Thread RAHUL ROY
I have sony ericsson xperia mini pro
I want to edit its file /etc/hosts
how can I do this

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Calendar edit event force close error....

2012-03-25 Thread Michael Chan
What's error? Can you show include the stack trace?

On Sat, Mar 24, 2012 at 1:08 PM, Jast Vacaty jastpower...@gmail.com wrote:
 Hi,

 I am trying to add calendar events by use my application. Event gets saved
 successfully. However when I try to edit event that saved successfully. I
 get the Force Close error.

             Cursor userCursor
 =getContentResolver().query(Uri.parse(calanderURL),null, null, null, null);
             if(userCursor.getCount()  0){
                 userCursor.moveToFirst();
                 calId =
 userCursor.getString(userCursor.getColumnIndex(_id));
                 }
             ContentValues event = new ContentValues();
             event.put(title, title);
             event.put(description, description);
             event.put(eventLocation, Event Location);
             event.put(allDay, 0);
             event.put(hasAlarm,0);
             event.put(calendar_id,calId);
             Calendar mCalendar = Calendar.getInstance();
             mCalendar.set(2012, 2, 27,7,00,00);
             long start = mCalendar.getTimeInMillis();
             mCalendar.set(2012, 2, 27,8,00,00);
             long end = mCalendar.getTimeInMillis();
             event.put(dtstart,  start);
             event.put(dtend, end);


             Uri newEvent = Uri.parse(calanderEventURL);
             getContentResolver().insert(newEvent, event);
     userCursor.close();

 But when I chang the event.put(allDay, 0); to event.put(allDay,1).

 Event gets edited successfully .

 How do i fix it?

 I am asking for any help.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
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] XML Layout SERIOUSLY misbehaving

2012-03-25 Thread Romain Guy
LinearLayout is not a FrameLayout. I just remembered that ScrollView
*is* a FrameLayout, my bad. The layout params of the ScrollView's
child should be ScrollView.LayoutParams (or FrameLayout.LayoutParams.)
A child must always use the layout params type declared in its parent.

On Sun, Mar 25, 2012 at 1:46 PM, Jim Graham spooky1...@gmail.com wrote:
 On Sun, Mar 25, 2012 at 01:35:14PM -0700, Romain Guy wrote:
 It might now be a FrameLayout but a subclass of a FrameLayout. You can
 see that the problem happens inside a ScrollView. What ScrollViews do
 you have and what do you put in them?

 I should have mentioned---it happened before I put in the ScrollView,
 too.

 But to answer your question, as per the ScrollView docs, it can only wrap
 one item, and that's a LinearLayout.

 So is LinearLayout a subclass of FrameLayout, then?  I would never have
 guessed that (and if it's in the docs, I never saw it).  So should I
 change the cast for the LinearLayout params to FrameLayout, then?
 And do I need to import android.widget.FrameLayout?

 Sorry if any of these are stupid questions---I'm in unexplored territory
 with these problems, and have been for (how many weeks has this been
 driving me crazy, going from one set of documentation material to
 another, and another, and another, and ... ad nauseum?).  As I said in
 my first post, I finally gave up and had to post here.

 Thanks,
   --jim

 PS:  no need to CC me...gmail nukes the duplicate copy when it sees
     the duplicate Message-ID...and it'd still end up in this mbox
     file instead of in /var/mail thanks to my procmail filters
     that redirect all from this group here.  :-)

 --
 THE SCORE:  ME:  2  CANCER:  0
 73 DE N5IAL (/4)            MiSTie #49997       Running FreeBSD 7.0 
 spooky1...@gmail.com                    ICBM/Hurr.: 30.44406N 86.59909W

   Now what *you* need is a proper pint of porter poured in a proper
   pewter porter pot..     --Peter Dalgaard in alt.sysadmin.recovery

 Android Apps Listing at http://www.jstrack.org/barcodes.html

 --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
Romain Guy
Android framework engineer
romain...@android.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 group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] editing host file

2012-03-25 Thread Mark Murphy
This list is for developing applications with the Android SDK. Please
use sites like http://android.stackexchange.com for questions not
related to programming.

On Sun, Mar 25, 2012 at 2:22 PM, RAHUL ROY rahul.hi...@gmail.com wrote:
 I have sony ericsson xperia mini pro
 I want to edit its file /etc/hosts
 how can I do this

 --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5
Available!

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How to start working on Android Mobile Operating System

2012-03-25 Thread Mark Murphy
http://source.android.com

On Sat, Mar 24, 2012 at 4:25 AM, HARISH VADLA vadlahar...@gmail.com wrote:
 Hi Every one

         This is HARISH. I have did few applications in android. Now i
 want to work on android mobile os. Please suggest me the starting
 point. Where should i start. Where can i get the code for Android
 previous mobile versions code.


 Please give reply to this.

 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@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5
Available!

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Closing / Launching Activity, but through ProgressDialog thread

2012-03-25 Thread Mark Murphy
Convert your thread to an AsyncTask and use onProgressUpdate() or
onPostExecute() as appropriate.

Or, use post() (called on some widget).

Or, use a Handler.

Or, use runOnUiThread() (called on your activity)

On Sat, Mar 24, 2012 at 8:00 PM, paulo paul.a.taylo...@gmail.com wrote:
 Hi all,


 A minor issue I am having for an app is that when sync'ing some data,
 completed through a thread/ProgressDialog, I need to refresh the
 underlying Activity. I can't seem to work out how to do this from the
 Thread however, surely it can't be that hard right?


 Any pointers much appreciated


 Paul


 --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5
Available!

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Queries with SQLiteStatement?

2012-03-25 Thread Mark Murphy
On Sat, Mar 24, 2012 at 7:42 PM, Michael Parker
michael.g.par...@gmail.com wrote:
 In Android, SQLiteStatement allows me to use prepared statements in
 SQLite (i.e. the good type with escaped values that prevents injection
 attacks). But it seems that you can only use them for create/update/
 delete operations, and not for read operations (i.e. queries).

 This isn't a limitation of SQLite, because in iOS (ahem) I can create
 prepared statements of type sqlite3_stmt* and use them for queries.
 How can I do this in Android?

AFAIK, you can't.

 I don't want to query without using a prepared statement...

http://c2.com/cgi/wiki?PrematureOptimization

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5
Available!

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] XML Layout SERIOUSLY misbehaving

2012-03-25 Thread Jim Graham
On Sun, Mar 25, 2012 at 01:55:12PM -0700, Romain Guy wrote:
 LinearLayout is not a FrameLayout. I just remembered that ScrollView
 *is* a FrameLayout, my bad. The layout params of the ScrollView's
 child should be ScrollView.LayoutParams (or FrameLayout.LayoutParams.)
 A child must always use the layout params type declared in its parent.

Ok, now I'm REALLY confused.  Let me see if I've got this right (and I'm
not the least bit sure that I do).  If I have the following,

LinearLayout 
   ImageView .
   /ImageView
/LinearLayout

To set parameters (e.g., scaleType, width, height, alpha (for the whole
ImageView), etc., for the ImageView, I'm supposed to be setting it using
LinearLayout.LayoutParams?  That's how I read the text above, but it
sounds very, VERY strange.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

  'Wrong' is one of those concepts that depends on witnesses.
 --Catbert:  Evil Director of Human Resources (Dilbert, 05Nov09)

Android Apps Listing at http://www.jstrack.org/barcodes.html

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] XML Layout SERIOUSLY misbehaving

2012-03-25 Thread YuviDroid

 To set parameters (e.g., scaleType, width, height, alpha (for the whole
 ImageView), etc., for the ImageView, I'm supposed to be setting it using
 LinearLayout.LayoutParams?  That's how I read the text above, but it
 sounds very, VERY strange.


Yep, that's right.

On Sun, Mar 25, 2012 at 11:17 PM, Jim Graham spooky1...@gmail.com wrote:

 On Sun, Mar 25, 2012 at 01:55:12PM -0700, Romain Guy wrote:
  LinearLayout is not a FrameLayout. I just remembered that ScrollView
  *is* a FrameLayout, my bad. The layout params of the ScrollView's
  child should be ScrollView.LayoutParams (or FrameLayout.LayoutParams.)
  A child must always use the layout params type declared in its parent.

 Ok, now I'm REALLY confused.  Let me see if I've got this right (and I'm
 not the least bit sure that I do).  If I have the following,

 LinearLayout 
   ImageView .
   /ImageView
 /LinearLayout

 To set parameters (e.g., scaleType, width, height, alpha (for the whole
 ImageView), etc., for the ImageView, I'm supposed to be setting it using
 LinearLayout.LayoutParams?  That's how I read the text above, but it
 sounds very, VERY strange.

 Later,
   --jim

 --
 THE SCORE:  ME:  2  CANCER:  0
 73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
 spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

  'Wrong' is one of those concepts that depends on witnesses.
 --Catbert:  Evil Director of Human Resources (Dilbert, 05Nov09)

 Android Apps Listing at http://www.jstrack.org/barcodes.html

 --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] XML Layout SERIOUSLY misbehaving

2012-03-25 Thread Romain Guy
No it's not. Only layout_* attributes map to LayoutParams.

On Sun, Mar 25, 2012 at 2:22 PM, YuviDroid yuvidr...@gmail.com wrote:
 To set parameters (e.g., scaleType, width, height, alpha (for the whole
 ImageView), etc., for the ImageView, I'm supposed to be setting it using
 LinearLayout.LayoutParams?  That's how I read the text above, but it
 sounds very, VERY strange.


 Yep, that's right.

 On Sun, Mar 25, 2012 at 11:17 PM, Jim Graham spooky1...@gmail.com wrote:

 On Sun, Mar 25, 2012 at 01:55:12PM -0700, Romain Guy wrote:
  LinearLayout is not a FrameLayout. I just remembered that ScrollView
  *is* a FrameLayout, my bad. The layout params of the ScrollView's
  child should be ScrollView.LayoutParams (or FrameLayout.LayoutParams.)
  A child must always use the layout params type declared in its parent.

 Ok, now I'm REALLY confused.  Let me see if I've got this right (and I'm
 not the least bit sure that I do).  If I have the following,

 LinearLayout 
   ImageView .
   /ImageView
 /LinearLayout

 To set parameters (e.g., scaleType, width, height, alpha (for the whole
 ImageView), etc., for the ImageView, I'm supposed to be setting it using
 LinearLayout.LayoutParams?  That's how I read the text above, but it
 sounds very, VERY strange.

 Later,
   --jim

 --
 THE SCORE:  ME:  2  CANCER:  0
 73 DE N5IAL (/4)        MiSTie #49997   Running FreeBSD 7.0 
 spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

      'Wrong' is one of those concepts that depends on witnesses.
     --Catbert:  Evil Director of Human Resources (Dilbert, 05Nov09)

 Android Apps Listing at http://www.jstrack.org/barcodes.html

 --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 YuviDroid
 Check out Launch-X (a widget to quickly access your favorite apps and
 contacts!)
 http://android.yuvalsharon.net

 --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
Romain Guy
Android framework engineer
romain...@android.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 group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] XML Layout SERIOUSLY misbehaving

2012-03-25 Thread YuviDroid
Actually.you need to use LinearLayout.LayoutParams to set the layout
parameters. scaleType, alpha are the ImageView parameters. Basically,
anything that start with layout_ is a layout parameter.

On Sun, Mar 25, 2012 at 11:22 PM, YuviDroid yuvidr...@gmail.com wrote:

 To set parameters (e.g., scaleType, width, height, alpha (for the whole
 ImageView), etc., for the ImageView, I'm supposed to be setting it using
 LinearLayout.LayoutParams?  That's how I read the text above, but it
 sounds very, VERY strange.


 Yep, that's right.

 On Sun, Mar 25, 2012 at 11:17 PM, Jim Graham spooky1...@gmail.com wrote:

 On Sun, Mar 25, 2012 at 01:55:12PM -0700, Romain Guy wrote:
  LinearLayout is not a FrameLayout. I just remembered that ScrollView
  *is* a FrameLayout, my bad. The layout params of the ScrollView's
  child should be ScrollView.LayoutParams (or FrameLayout.LayoutParams.)
  A child must always use the layout params type declared in its parent.

 Ok, now I'm REALLY confused.  Let me see if I've got this right (and I'm
 not the least bit sure that I do).  If I have the following,

 LinearLayout 
   ImageView .
   /ImageView
 /LinearLayout

 To set parameters (e.g., scaleType, width, height, alpha (for the whole
 ImageView), etc., for the ImageView, I'm supposed to be setting it using
 LinearLayout.LayoutParams?  That's how I read the text above, but it
 sounds very, VERY strange.

 Later,
   --jim

 --
 THE SCORE:  ME:  2  CANCER:  0
 73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
 spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

  'Wrong' is one of those concepts that depends on witnesses.
 --Catbert:  Evil Director of Human Resources (Dilbert, 05Nov09)

 Android Apps Listing at http://www.jstrack.org/barcodes.html

 --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 YuviDroid
 Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
 to quickly access your favorite apps and contacts!)
 http://android.yuvalsharon.net




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] XML Layout SERIOUSLY misbehaving

2012-03-25 Thread Romain Guy
If your ImageView has a LinearLayout parent then you would write:

myImageView.setLayoutParams(new LinearLayout.LayoutParams());

If your ImageView has a FrameLayout parent, then you would write:

myImageView.setLayoutParams(new FrameLayout.LayoutParams());

And so on. This is why the LayoutInflater.inflate() method takes a
parent as an argument. The parent parameter is used to infer the type
of LayoutParams. That might be your bug if you are not building your
UI from Java code.

On Sun, Mar 25, 2012 at 2:17 PM, Jim Graham spooky1...@gmail.com wrote:
 On Sun, Mar 25, 2012 at 01:55:12PM -0700, Romain Guy wrote:
 LinearLayout is not a FrameLayout. I just remembered that ScrollView
 *is* a FrameLayout, my bad. The layout params of the ScrollView's
 child should be ScrollView.LayoutParams (or FrameLayout.LayoutParams.)
 A child must always use the layout params type declared in its parent.

 Ok, now I'm REALLY confused.  Let me see if I've got this right (and I'm
 not the least bit sure that I do).  If I have the following,

 LinearLayout 
   ImageView .
   /ImageView
 /LinearLayout

 To set parameters (e.g., scaleType, width, height, alpha (for the whole
 ImageView), etc., for the ImageView, I'm supposed to be setting it using
 LinearLayout.LayoutParams?  That's how I read the text above, but it
 sounds very, VERY strange.

 Later,
   --jim

 --
 THE SCORE:  ME:  2  CANCER:  0
 73 DE N5IAL (/4)        MiSTie #49997   Running FreeBSD 7.0 
 spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

      'Wrong' is one of those concepts that depends on witnesses.
     --Catbert:  Evil Director of Human Resources (Dilbert, 05Nov09)

 Android Apps Listing at http://www.jstrack.org/barcodes.html

 --
 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, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
Romain Guy
Android framework engineer
romain...@android.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 group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] XML Layout SERIOUSLY misbehaving

2012-03-25 Thread Jim Graham
On Sun, Mar 25, 2012 at 02:25:20PM -0700, Romain Guy wrote:
 If your ImageView has a LinearLayout parent then you would write:
 
 myImageView.setLayoutParams(new LinearLayout.LayoutParams());
 
 If your ImageView has a FrameLayout parent, then you would write:
 
 myImageView.setLayoutParams(new FrameLayout.LayoutParams());

[]

Ok, now THAT makes more sense.  :-)   And now I'm wishing I'd asked
here a few weeks ago...I was, however, thinking it might belong in
the beginner's group.  Now I wonder which group I should have posted
it in.

Thanks,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| Peter da Silva:  No, try rm -rf /
spooky1...@gmail.com| Dave Aronson:As your life flashes before
 Running FreeBSD 7.0  |  your eyes, in the unit of time known as an
ICBM / Hurricane:   |  ohnosecond (alt.sysadmin.recovery)
   30.44406N 86.59909W  |

Android Apps Listing at http://www.jstrack.org/barcodes.html

-- 
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, visit this group at
http://groups.google.com/group/android-developers?hl=en


  1   2   >