[android-developers] Associate app with Email attachement

2012-05-14 Thread Kanika Sayal
I am developing a simple application where the requirement says that
If there is any email attachment with .csv file extension then on long
press of that email attachement should open an option to user that
Download and open this attachment with MYAPP. So When the user
clicks on MyAPP then it automatically get downloaded and open with
MYAPP.. Here I am using IntentFilter, but that IntentFilter works
after that attachment downloaded and saved into sdcard.

So anyone please help me on how can I implement that Click on email
attachment would open an option to open the attachment with myapp??

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] convert arraylist to xml

2012-05-14 Thread Kanu Sayal
*[Associate App with Email Attachment]*

Hi,

I am developing a simple application where the requirement says that
If there is any email attachment with .csv file extension then on long
press of that email attachement should open an option to user that
Download and open this attachment with MYAPP. So When the user
clicks on MyAPP then it automatically get downloaded and open with
MYAPP.. Here I am using IntentFilter, but that IntentFilter works
after that attachment downloaded and saved into sdcard.

So anyone please help me on how can I implement that Click on email
attachment would open an option to open the attachment with myapp??

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] Associate app with Email attachement

2012-05-14 Thread Kanu Sayal
*[Associate App with Email Attachment]*

Hi,

I am developing a simple application where the requirement says that
If there is any email attachment with .csv file extension then on long
press of that email attachement should open an option to user that
Download and open this attachment with MYAPP. So When the user
clicks on MyAPP then it automatically get downloaded and open with
MYAPP.. Here I am using IntentFilter, but that IntentFilter works
after that attachment downloaded and saved into sdcard.

So anyone please help me on how can I implement that Click on email
attachment would open an option to open the attachment with myapp??

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] Map API : getMaxZoomLevel and satellite mode

2012-05-14 Thread Simon Giddings
I am in the process of developing a map based application and have put 
inplace my own zoom controls.

As a consequence, I query the maximum zoom level when the map mode is 
changed.
However, when going to satellite mode, the maximum zoom level is returning 
a value too high.

I can say this because when I zoom in to the maximum zoom level, the 
emulator displays a black background with the roads overlayed onto it.
If I zoom out one or two levels, I get the satellite map.

Is this a known problem ?
Does it only apply to the emulator ?

-- 
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: which android phone has Environment sensors hardware?

2012-05-14 Thread Rajender
Hello,

So there is no phone in market to measure Room Temperature with
Sensor :  TYPE_AMBIENT_TEMPERATURE

Android ICS version has Sensor :  TYPE_AMBIENT_TEMPERATURE api
implementation.

if any android phone is available in market, let me now.

Thanks  regards,

Rajender
On May 11, 4:07 am, gjs garyjamessi...@gmail.com wrote:
 Hi,

 Only device I have had that measures temperature was the original t-
 mobile G1  even then what was measuring was the battery temp not
 ambient.

 If you want to measure ambient, I'd suggest looking at the bluetooth
 Sensaris devices eghttp://www.sensaris.com/products/senspod/

 Regards

 On May 10, 8:50 pm, Jxn anders.jack...@gmail.com wrote:



  Hello.

  On 10 Maj, 07:56, Rajender rajender.g...@gmail.com wrote:

   Hello,

   which android phone in market has Environment sensors hardware?

  That's the wrong question, unless you want to buy some devices to test
  your app.

  To check devices that work would give you a loong list in your program
  to update. If you need a list, have a list with exceptions, devices
  with bugs. That would also be easier to administrate, just add device
  when a bug report arrives.

   I want to use these senors to measure Room Temperature.

   Sensor :  TYPE_AMBIENT_TEMPERATURE

   Regards,

   Rajender K Goud

  Good luck, Anders.- Hide quoted text -

 - Show quoted text -

-- 
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] Image scaled, scroll, zoom, without margin

2012-05-14 Thread huberte
I did 


android:adjustViewBounds=true
android:scaleType=fitXY

great on portrait mode, but landscape does not fit, why ?

-- 
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] Multiple applications with WakeLock vs. one WakeLock app

2012-05-14 Thread Dianne Hackborn
On Sun, May 13, 2012 at 8:05 PM, William Kelley williamtkel...@gmail.comwrote:

 My question wasn't about battery life, but I'll address it anyway. Users
 who install apps that use long running services are usually fully aware
 that it will affect battery life.


There is basically no relationship between long running service and
battery life.  It's all a matter of what your service does.


 Certainly anyone who wants to record a GPS track for a few hours with very
 fine resolution (points every 5 seconds say) knows it will kill the battery
 quickly. But the point is they know this and want these apps regardless.
 You may not personally have a use for such services, but others do. My
 phone wouldn't be interesting, to me, if the only thing I focused on was
 plugging the phone in no more than once a day. I have no problem recharging
 several times a day (especially all the time I am driving) so that I can
 use my phone as a sensor and logger and record interesting information.
 This requires battery, but it is information I want.


I think you are taking this too personally.  My comment was addressed at
whatever other apps you say are on your phone that are holding wake locks
and keeping the device from sleeping the entire time, with no indication
you gave for them to do this.  The fact of the matter is that for most
people it is not typical for them to have apps on their phone that hold
wake locks all the time consistently, because that would often mean they
would never get through a day without charging their phone.

Sure, you may do things on your device that do work for the user, that the
user wants to have happening, and is clear to them that it is going to take
power.  Playing music, navigating, tracking your location with GPS, etc.
 There is no problem with that.

The question I was trying to ask in this post was really more partly
 practical and partly conceptual. Practically, are there any issues with
 having multiple apps on your phone each implementing their own WakeLocks?


Why would there be?  I thought I answered your question -- you should hold
a wake lock when you need to keep the CPU running, and you shouldn't worry
about what other apps do nor rely on them to do this for you.


 I currently have three and they don't seem to interfere with each other.


I don't even know what it would mean for them to interfere.  A wake lock
tells the system to not let the CPU go to sleep.  If three wake locks are
being held, who cares if there are three things telling the system to not
let the CPU go to sleep?  It's still not going to sleep.


 Which brings me to the question of whether I should implement a WakeLock
 in my own GPS logger app despite the fact I know my phone will never sleep
 the CPU?


How in the world do you know that the phone will never sleep on whatever
device you are running?  Again, the same answer -- the correct thing to do
is hold a wake lock when you are at a point where you can't let the CPU go
to sleep.  That is, when you have no other external signal like an alarm to
wake it up in the future when you need to run again.

Normally you will do this while you are actually using the CPU.  If you are
doing this to just wait for a certain amount of time until you run again,
you should consider another mechanism like scheduling an alarm for when you
want to wake up, because on many chipsets it takes a notable amount of
battery to have a wake lock held with the CPU idle vs. not having a wake
lock and letting the CPU go into full power collapse.  Of course if you are
doing very frequent wakeups like every 5 second it may be more overhead to
schedule an alarm, but this is a difficult area because which way is better
will probably vary across devices.  At that point maybe it isn't worth
worrying too much about, because either approach will be relatively power
draining.


 Now for any potential users of my apps (if I were to release it), I would
 then tell them they had to get a WakeLock app (there is one on the market)
 in order to keep the CPU awake so that my GPS logger will continue to
 record points as long as they like.


There are no wake lock apps, there is no reason to have such things, let's
just stop talking about this. :)


 That may be too much to require of a user and implementing my own WakeLock
 is the easiest solution. But conceptually, it seems redundant that every
 app that wishes to have a long running service would have to have its own
 WakeLock, when only one is required. That's why, at least for me and users
 like me, one WakeLock app to rule them all makes a lot of sense.


Why why why   Just hold a wake lock when you need it!!! :)  It's just a
simple wake lock!  It's not going to slap the user in the face every time
you acquire it. :)


 As for the user, I don't think it's crazy at all for them to want to
 control how their phone works. Again, if the user wants the features of
 long running services, why dissuade them? Letting the user choose to have
 the CPU 

[android-developers] unable to resolve static method while generating jasper report.... suggestion needed... ?

2012-05-14 Thread mateen sysfore
Hi all,



I want to generate pdf report, so i am use jasperreport jar, but for
generating jasper report i need to write statement as follows

*JasperCompileManager.compileReport(somefile.jrxml);*

now the problem is that android is not supporting any static methods from
my jar file (or may be i doesnt support any static method from external
jars, if i am wri8)
and i am getting following error:---

05-14 12:15:21.694: I/dalvikvm(351): Could not find method
net.sf.jasperreports.engine.JasperCompileManager.compileReport, referenced
from method com.palm.reports.GenerateReport$1.onClick
05-14 12:15:21.694: W/dalvikvm(351): VFY: unable to resolve static method
20: Lnet/sf/jasperreports/engine/JasperCompileManager;.compileReport
(Ljava/lang/String;)Lnet/sf/jasperreports/engine/JasperReport;
05-14 12:15:21.694: D/dalvikvm(351): VFY: replacing opcode 0x71 at 0x0002
05-14 12:15:21.694: W/dalvikvm(351): VFY: unable to resolve exception class
28 (Lnet/sf/jasperreports/engine/JRException;)
05-14 12:15:21.694: W/dalvikvm(351): VFY: unable to find exception handler
at addr 0x6
05-14 12:15:21.694: W/dalvikvm(351): VFY:  rejected
Lcom/palm/reports/GenerateReport$1;.onClick (Landroid/view/View;)V
05-14 12:15:21.694: W/dalvikvm(351): VFY:  rejecting opcode 0x0d at 0x0006
05-14 12:15:21.694: W/dalvikvm(351): VFY:  rejected
Lcom/palm/reports/GenerateReport$1;.onClick (Landroid/view/View;)V
05-14 12:15:21.694: W/dalvikvm(351): Verifier rejected class
Lcom/palm/reports/GenerateReport$1;
05-14 12:15:21.694: D/AndroidRuntime(351): Shutting down VM
05-14 12:15:21.714: W/dalvikvm(351): threadid=1: thread exiting with
uncaught exception (group=0x4001d800)
05-14 12:15:21.753: E/AndroidRuntime(351): FATAL EXCEPTION: main
05-14 12:15:21.753: E/AndroidRuntime(351): java.lang.VerifyError:
com.palm.reports.GenerateReport$1
05-14 12:15:21.753: E/AndroidRuntime(351): at
com.palm.reports.GenerateReport.onCreate(GenerateReport.java:19)
05-14 12:15:21.753: E/AndroidRuntime(351): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
05-14 12:15:21.753: E/AndroidRuntime(351): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
05-14 12:15:21.753: E/AndroidRuntime(351): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
05-14 12:15:21.753: E/AndroidRuntime(351): at
android.app.ActivityThread.access$2300(ActivityThread.java:125)
05-14 12:15:21.753: E/AndroidRuntime(351): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
05-14 12:15:21.753: E/AndroidRuntime(351): at
android.os.Handler.dispatchMessage(Handler.java:99)
05-14 12:15:21.753: E/AndroidRuntime(351): at
android.os.Looper.loop(Looper.java:123)
05-14 12:15:21.753: E/AndroidRuntime(351): at
android.app.ActivityThread.main(ActivityThread.java:4627)
05-14 12:15:21.753: E/AndroidRuntime(351): at
java.lang.reflect.Method.invokeNative(Native Method)
05-14 12:15:21.753: E/AndroidRuntime(351): at
java.lang.reflect.Method.invoke(Method.java:521)
05-14 12:15:21.753: E/AndroidRuntime(351): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
05-14 12:15:21.753: E/AndroidRuntime(351): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
05-14 12:15:21.753: E/AndroidRuntime(351): at
dalvik.system.NativeStart.main(Native Method)


i just want to know that does this library for generating jasper report
works in android, or is thr any other library i can use ?

-- 
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] Image scaled, scroll, zoom, without margin

2012-05-14 Thread huberte
In scrollview width=fill_parent works, but the image is ugly

Le lundi 14 mai 2012 02:47:50 UTC-4, huberte a écrit :

 I did 


 android:adjustViewBounds=true
 android:scaleType=fitXY

 great on portrait mode, but landscape does not fit, why ?


-- 
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] convert Byte value to Image

2012-05-14 Thread arun
hai friends..

how to convert byte value to image...

if u any one known plz 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] Re: how to know that headset is plugged in?

2012-05-14 Thread Farhan Tariq
What do you mean check current mode? Wouldn't
AudioManager.isWiredHeadsetOn()  do the job?

On Mon, May 14, 2012 at 7:00 AM, lbendlin l...@bendlin.us wrote:

 I would check the current audio mode, and then test am.isSpeakerphoneOn()to 
 be false.


 On Sunday, May 13, 2012 8:11:54 PM UTC-4, Farhan wrote:

 Hi,
 I aim at playing a sound only if the headset is plugged in. How can I use
 the sdk to check if headset is plugged in? Thanks

 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] Need help for thread cancelable queue pattern.

2012-05-14 Thread Fabien R
On 11/05/12 13:10, Tolriq wrote:
 And a little supplemental question that is linked to this, the sync process 
 can be for example a function that call 3 functions that each takes a lot's 
 of time, in each functions I can check for thread.interrupted to stop it, 
 but from documentation it clears the flag so the main function won't know 
 and will continue to other calls so again what's the correct way to handle 
 the interrupt propagation ?

   
I don't know if it answers your question but it might help:
http://docs.oracle.com/javase/1.5.0/docs/guide/misc/threadPrimitiveDeprecation.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] Map API : getMaxZoomLevel and satellite mode

2012-05-14 Thread Fabien R
On 14/05/12 08:35, Simon Giddings wrote:
 However, when going to satellite mode, the maximum zoom level is returning 
 a value too high.

 I can say this because when I zoom in to the maximum zoom level, the 
 emulator displays a black background with the roads overlayed onto it.
 If I zoom out one or two levels, I get the satellite map.
You should display its value (via Toast or Log) to be sure...

-- 
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] Map API : getMaxZoomLevel and satellite mode

2012-05-14 Thread Simon Giddings
I have already done this to confirm my suspicion.
Subsequent calls to getMaxZoomLevel will return 22 as opposed to 21, the 
maximum zoom level.

After having done abit more research, I have found that there is a logged 
issue : Issue 2761: Satellite view max zoom level one notch above 
possiblehttp://code.google.com/p/android/issues/detail?id=2761

Since this was started in 2009, I would have thought that there should be a 
workaround at least !

On Monday, 14 May 2012 10:12:11 UTC+2, the_edge123 wrote:

 On 14/05/12 08:35, Simon Giddings wrote: 
  However, when going to satellite mode, the maximum zoom level is 
 returning 
  a value too high. 
  
  I can say this because when I zoom in to the maximum zoom level, the 
  emulator displays a black background with the roads overlayed onto it. 
  If I zoom out one or two levels, I get the satellite map. 
 You should display its value (via Toast or Log) to be sure... 



-- 
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 know the request is from Android 4.0 phone or Android 4.0 Tablet?

2012-05-14 Thread Fabien R
On 10/05/12 06:25, Kevin Chang wrote:
 I woudl like to develop a Web Application. It has different UI design for 
 Phone and Tablet because they have different screen size. I always Take 
 user agent of browser to know what device access my application. Then I can 
 know to give appropriate size of UI. 

 User Angent of Android 4.0 Table and Android 4.0 Phone are similiar. There 
 is no way to distinguish them like (iPhone and iPad did). 

 Can any one shed a light to know that the access is from Tablet or Phone of 
 Android 4.0?

 Thanks,
 -Kevin 

   
This is not specific to ICS but it may help:
http://developer.android.com/guide/practices/screens_support.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] Map API : getMaxZoomLevel and satellite mode

2012-05-14 Thread Fabien R
On 14/05/12 10:19, Simon Giddings wrote:
 I have already done this to confirm my suspicion.
 Subsequent calls to getMaxZoomLevel will return 22 as opposed to 21, the 
 maximum zoom level.
   
Can't you force the value to 21 if it's 22 ?

-- 
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] NullPointerException android.graphics.Bitmap.createBitmap(Bitmap.java:468)

2012-05-14 Thread viktor
Please help me with exception.

I have single resources folder. /res/drawable

I create a custom button from one of the resource with some color
effect.

This works for ldpi, hdpi, xdpi devices, but when I run an app on the
mdpi device it crashes.


My code:

Bitmap b1 = BitmapFactory.decodeResource(context.getResources(),
drawableResourceId);
if (b1 == null) {
return null;
}
Paint p = new Paint();
p.setAntiAlias(true);
p.setAlpha(150);

byte[] chunk = b1.getNinePatchChunk();

Bitmap b2 = Bitmap.createBitmap(b1.getWidth(), b1.getHeight(),
b1.getConfig());  // this line fails,

-- 
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] Map API : getMaxZoomLevel and satellite mode

2012-05-14 Thread Simon Giddings
Obviously, but this would be a kludge - no guarantee that it is correct.

On Monday, 14 May 2012 10:38:21 UTC+2, the_edge123 wrote:

 On 14/05/12 10:19, Simon Giddings wrote: 
  I have already done this to confirm my suspicion. 
  Subsequent calls to getMaxZoomLevel will return 22 as opposed to 21, the 
  maximum zoom level. 

 Can't you force the value to 21 if it's 22 ? 


-- 
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] Receiver

2012-05-14 Thread iñaki
Hi, I've been a bit trying to get this issue, can you give me some clue.

I have an application with a receiver that is waiting c2dm
notifications if android application decides to destroy it(internal),
I can still get notifications but I can not throw ... I guess because
there is no context in this situation.

Any ideas? Any recommendation to implement pattern in this case.
Application should always receive notifications, despite being turned
off.


Iñaki

-- 
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] sync adapter

2012-05-14 Thread Live Happy
how to add to the sync adapter new record to sync as in Google there is
sync contact sync gmail etc i implement the sync contact so how to add new
sync record to get data from servers where i can modify in sync contact
adapter to can use the performSync to get those data thx on advice

-- 
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] Map API : getMaxZoomLevel and satellite mode

2012-05-14 Thread lbendlin
It's definitely better than waiting for Google to fix it.

On Monday, May 14, 2012 5:32:26 AM UTC-4, Simon Giddings wrote:

 Obviously, but this would be a kludge - no guarantee that it is correct.

 On Monday, 14 May 2012 10:38:21 UTC+2, the_edge123 wrote:

 On 14/05/12 10:19, Simon Giddings wrote: 
  I have already done this to confirm my suspicion. 
  Subsequent calls to getMaxZoomLevel will return 22 as opposed to 21, 
 the 
  maximum zoom level. 

 Can't you force the value to 21 if it's 22 ? 



-- 
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: Safe to add Fragment into ListView?

2012-05-14 Thread spotleo
Dianne or Romain Guy?
Or anyone else can provide any suggestions?


On Thursday, April 26, 2012 1:45:34 PM UTC+8, spotleo wrote:

 Hi, 

 I have a reusable UI component Fragment A that has been used 
 throughout various Activities and they all worked fine. 
 The controller logic is placed inside Fragment A whereas the view 
 layer is defined in Fragment A's layout file. 

 Now I have a requirement to add Fragment A into part of Listview 
 item's layout file. 
 From my understanding, Fragment is no different from View from view 
 tree's perspective. In other words 
 when we use Hierarchy Viewer to inspect the view tree, we won't see 
 Fragment A, but instead we'll see the view 
 returned from Fragment A's onCreateView, so theoretically it is ok to 
 place Fragment A inside Listview item and I have 
 successfully done so. 

 My question is, is my assumption correct? Is it safe to place Fragment 
 into ListView item? 
 Anything I need to be aware of when doing this? 

 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] Conditional PreferenceScreen

2012-05-14 Thread Giuseppe


I have multiple PreferenceScreen in my Main Preferences and for some of 
them I need to check from a global variable if the user is enable to open 
this.

How can I conditionally block the opening of a PreferenceScreen during the 
onClick Event?

Return false don't work.

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] Ads on my game, Where to start learning?

2012-05-14 Thread Francisco M. Marzoa Alonso
Hi there,

I have deployed my first casual game yet to Google Play. I planned to
release also a free version with ads. So what is the fastest way to add
ads to my game?

Links to docs on the issue are very wellcome.

Thanks a lot 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: Ads on my game, Where to start learning?

2012-05-14 Thread RichardC
One place to look is:
https://developers.google.com/mobile-ads-sdk/

Other developers may recommend different ad networks.

On Monday, May 14, 2012 3:49:56 PM UTC+1, Fran wrote:

 Hi there, 

 I have deployed my first casual game yet to Google Play. I planned to 
 release also a free version with ads. So what is the fastest way to add 
 ads to my game? 

 Links to docs on the issue are very wellcome. 

 Thanks a lot 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: Receiver

2012-05-14 Thread iñaki
Hi, I´ve solved my previous question... Extends receiver via intents
has fixed my probem.


Iñaki

On 14 May 2012 12:43, iñaki inaki.s...@gmail.com wrote:
 Hi, I've been a bit trying to get this issue, can you give me some clue.

 I have an application with a receiver that is waiting c2dm
 notifications if android application decides to destroy it(internal),
 I can still get notifications but I can not throw ... I guess because
 there is no context in this situation.

 Any ideas? Any recommendation to implement pattern in this case.
 Application should always receive notifications, despite being turned
 off.


 Iñaki

-- 
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] create Config file - URGENT please

2012-05-14 Thread dillipk
Hi ,

   I want to create a config file inside the ABSOLUTE PATH of the
application at the time of installation. Would this be possible? The
reason for this is, before even first time running the app, user can
edit/specify the DNS/port and other settings in the config file.

Mandatory requirements:

- User should be able to edit the CONFIG file even before running the
APP for the first time..
- I do not want to create this file manually in the device..




Thank you in advance..

Regards,
DK

-- 
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: Associate app with Email attachement

2012-05-14 Thread A. Elk
You can't force an app you don't own to use only your app to handle an 
Intent. That's not the Android design philosophy.

The best you can do is put in an intent filter in your manifest for an 
intent. When that intent is matched, your app will get it, unless other 
apps also match. If more than one app matches, the user gets a chance to 
pick the one to use. Users can choose to use the app they've picked for all 
similar actions, after which the chooser is no longer activated and the 
intent goes directly to the chosen app.

What you can do is tell users to choose your app when they open a CSV file. 
If that option doesn't appear, they have to clear options in the mail app's 
entry in App settings.

This is a feature. If you forced users to use your app for *any* CSV file, 
they'd never be able to look at Excel CSVs, etc.

What you might want to do is use your own custom MIME type for the file 
you're sending. You can still use CSV format, but with a custom MIME type 
you can have an intent filter that only handles that type.

On Sunday, May 13, 2012 11:07:29 PM UTC-7, Kanika Sayal wrote:

 I am developing a simple application where the requirement says that 
 If there is any email attachment with .csv file extension then on long 
 press of that email attachement should open an option to user that 
 Download and open this attachment with MYAPP. So When the user 
 clicks on MyAPP then it automatically get downloaded and open with 
 MYAPP.. Here I am using IntentFilter, but that IntentFilter works 
 after that attachment downloaded and saved into sdcard. 

 So anyone please help me on how can I implement that Click on email 
 attachment would open an option to open the attachment with myapp?? 

 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] create Config file - URGENT please

2012-05-14 Thread Justin Anderson

 I want to create a config file inside the ABSOLUTE PATH of the
 application at the time of installation. Would this be possible?

Nope, sorry...

The reason for this is, before even first time running the app, user can
 edit/specify the DNS/port and other settings in the config file.

Not going to happen...

Mandatory requirements:
 - User should be able to edit the CONFIG file even before running the APP
 for the first time..
 - I do not want to create this file manually in the device..

Those are going to have to be less mandatory... as in non-existent.  The
Android paradigm for this is to handle this on the first run of the app...

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


On Mon, May 14, 2012 at 9:43 AM, dillipk codersnet2...@gmail.com wrote:

   I want to create a config file inside the ABSOLUTE PATH of the
 application at the time of installation. Would this be possible?


-- 
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: Safe to add Fragment into ListView?

2012-05-14 Thread Justin Anderson
You could always try it and see...  You've been waiting weeks for an
answer, and probably could have figured it out in a matter of hours by just
trying it to see what happens.

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


On Mon, May 14, 2012 at 7:15 AM, spotleo l...@spotleo.com wrote:

 Dianne or Romain Guy?
 Or anyone else can provide any suggestions?


 On Thursday, April 26, 2012 1:45:34 PM UTC+8, spotleo wrote:

 Hi,

 I have a reusable UI component Fragment A that has been used
 throughout various Activities and they all worked fine.
 The controller logic is placed inside Fragment A whereas the view
 layer is defined in Fragment A's layout file.

 Now I have a requirement to add Fragment A into part of Listview
 item's layout file.
 From my understanding, Fragment is no different from View from view
 tree's perspective. In other words
 when we use Hierarchy Viewer to inspect the view tree, we won't see
 Fragment A, but instead we'll see the view
 returned from Fragment A's onCreateView, so theoretically it is ok to
 place Fragment A inside Listview item and I have
 successfully done so.

 My question is, is my assumption correct? Is it safe to place Fragment
 into ListView item?
 Anything I need to be aware of when doing this?

 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] Re: Safe to add Fragment into ListView?

2012-05-14 Thread Dianne Hackborn
You are saying use a fragment tag inside of the item layout of a
ListView?  No this will not work.  This is going down the path of really
abusing ListView.  The design of ListView is about efficiently scrolling
through a large number of items, being able to cycle through them at a
60fps frame rate.  You already need to be careful about these items to keep
performance up -- keeping their hierarchy small, efficiently recycling
them, etc.  Thinking about throwing a fragment into one of them goes
against a lot of what ListView is about.

On Mon, May 14, 2012 at 6:15 AM, spotleo l...@spotleo.com wrote:

 Dianne or Romain Guy?
 Or anyone else can provide any suggestions?


 On Thursday, April 26, 2012 1:45:34 PM UTC+8, spotleo wrote:

 Hi,

 I have a reusable UI component Fragment A that has been used
 throughout various Activities and they all worked fine.
 The controller logic is placed inside Fragment A whereas the view
 layer is defined in Fragment A's layout file.

 Now I have a requirement to add Fragment A into part of Listview
 item's layout file.
 From my understanding, Fragment is no different from View from view
 tree's perspective. In other words
 when we use Hierarchy Viewer to inspect the view tree, we won't see
 Fragment A, but instead we'll see the view
 returned from Fragment A's onCreateView, so theoretically it is ok to
 place Fragment A inside Listview item and I have
 successfully done so.

 My question is, is my assumption correct? Is it safe to place Fragment
 into ListView item?
 Anything I need to be aware of when doing this?

 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




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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: Safe to add Fragment into ListView?

2012-05-14 Thread Nadeem Hasan
Why don't you factor out the functionality into a custom widget and use it 
in both the listview and fragment?

-- 
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] repo init returns error

2012-05-14 Thread bsquared
Just setting up environment and I get this error.

$ repo init -u https://android.googlesource.com/platform/manifest
  File /home/android-dev/bin/repo, line 184
except OSError, e:
  ^
I looked at repo script and found the error here:
  if not os.path.isdir(repodir):
try:
  os.mkdir(repodir)
except OSError, e:
  print sys.stderr, \
'fatal: cannot make %s directory: %s' % (
repodir, e.strerror)
  # Don't faise CloneFailure; that would delete the
  # name. Instead exit immediately.
  #
  sys.exit(1)

My system:
$ uname -a
Linux bw-desktop 3.0.29-1-lts #1 SMP PREEMPT Mon Apr 23 10:02:22 UTC
2012 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux

$ git --version
git version 1.7.10.1


I added a new user: android-dev
and 'su android-dev'

Then I followed the directions on source.android.com/source/
downloading.html

Thank you.

Regards,
Brian

-- 
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] convert Byte value to Image

2012-05-14 Thread Justin Anderson
http://lmgtfy.com/?q=android+convert+bytes+to+image

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


On Mon, May 14, 2012 at 1:16 AM, arun aruna...@gmail.com wrote:

 hai friends..

 how to convert byte value to image...

 if u any one known plz 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

-- 
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: Associate app with Email attachement

2012-05-14 Thread Nadeem Hasan
And how will the system know to map any file to this custom mimetype? You 
can register an intent filter with your own custom mimetype but that won't 
do anything at all.

-- 
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 get id or value previous viewflipper

2012-05-14 Thread Justin Anderson

 Ok

But, I guess, we should discuss here regarding this thread, shouldn't we?

Sorry... my bad.  I answered this on my phone and thought your comment was
coming from the OP.

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


On Sun, May 13, 2012 at 1:19 PM, Narendra Singh Rathore 
nsr.curi...@gmail.com wrote:

 Ok

 But, I guess, we should discuss here regarding this thread, shouldn't we?


-- 
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] An app inside the other

2012-05-14 Thread Lucas Diego
Hi everyone,

I'd like to know if is possible to launch an app inside the other developed
by me.

I'm trying to run a previous installed app inside a Tabhost for instance.
If it is, how could I do this?!

Any help would be appreciate.
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] An app inside the other

2012-05-14 Thread Kristopher Micinski
Basically, you can't do this.

You can google the history of this group, this has been discussed at
length before.  For example, I remember one person demonstrating the
utility of a stumbleupon like service for apps.  But basically, the
sandboxing and security policies atop which the platform is built
makes this kind of thing impossible.

So you can either copy over the relevant pieces of the app into yours,
or send an intent and let the other app take over for a while,
possibly returning with a response.

Kris

On Mon, May 14, 2012 at 4:03 PM, Lucas Diego diegoluc...@gmail.com wrote:
 Hi everyone,

 I'd like to know if is possible to launch an app inside the other developed
 by me.

 I'm trying to run a previous installed app inside a Tabhost for instance. If
 it is, how could I do this?!

 Any help would be appreciate.
 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


[android-developers] Is there a way to Bypass bluetooth and play directly through phone speakers

2012-05-14 Thread Tommy Hartz
Hi,

 

I was wondering if it is possible to play audio through the phone speakers
while a Bluetooth headset is connected. It is important that this audio is
played through the phone rather than the Bluetooth incase the Bluetooth is
not in the persons ear.

 

Thanks in advance,

 

Tommy

-- 
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] Is there a way to Bypass bluetooth and play directly through phone speakers

2012-05-14 Thread vijay Badawadagi
check Audio policy manager in Android, there is priority based routing
changing that should help


Thanks
Vijay

On Mon, May 14, 2012 at 3:23 PM, Tommy Hartz droi...@gmail.com wrote:

 Hi,

 ** **

 I was wondering if it is possible to play audio through the phone speakers
 while a Bluetooth headset is connected. It is important that this audio is
 played through the phone rather than the Bluetooth incase the Bluetooth is
 not in the persons ear.

 ** **

 Thanks in advance,

 ** **

 Tommy

 --
 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: create Config file - URGENT please

2012-05-14 Thread dillipk
Hi Justin,
   Thanks for your valuable information..  I think, I have to change
my requirements and act on what android supports.

  Coming from a windows background, it's bit surprising to me... I
thought this is a common practice..

Anyways.. thanks for time..

Best,
DK

On May 14, 12:45 pm, Justin Anderson magouyaw...@gmail.com wrote:
  I want to create a config file inside the ABSOLUTE PATH of the
  application at the time of installation. Would this be possible?

 Nope, sorry...

 The reason for this is, before even first time running the app, user can 
 edit/specify the DNS/port and other settings in the config file.

 Not going to happen...

 Mandatory requirements: - User should be able to edit the CONFIG file even 
 before running the APP
  for the first time..
  - I do not want to create this file manually in the device..

 Those are going to have to be less mandatory... as in non-existent.  The
 Android paradigm for this is to handle this on the first run of the app...

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







 On Mon, May 14, 2012 at 9:43 AM, dillipk codersnet2...@gmail.com wrote:
    I want to create a config file inside the ABSOLUTE PATH of the
  application at the time of installation. Would this be possible?

-- 
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] Can we block certain sms messages from reaching the default messaging app?

2012-05-14 Thread Farhan Tariq
Hi all,

I aim to make an app that would store sms messages with certain words
contained in an sms, and stop it from reaching the default messaging app. I
realize that I need to place a broadcast receiver for sms messages in my
app, but how do I ensure that If a message contains a KEYWORD, the message
gets deleted immediately and becomes unaccessible to any other messaging
app? I am stuck here, so any help is appreciated. 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] Re: create Config file - URGENT please

2012-05-14 Thread Justin Anderson

 Thanks for your valuable information..  I think, I have to change
 my requirements and act on what android supports.


No problem.

Coming from a windows background, it's bit surprising to me... I
 thought this is a common practice..


It is common-place in a desktop-type environment... Not so much in a mobile
environment.

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


On Mon, May 14, 2012 at 3:16 PM, dillipk codersnet2...@gmail.com wrote:

 Hi Justin,
   Thanks for your valuable information..  I think, I have to change
 my requirements and act on what android supports.

  Coming from a windows background, it's bit surprising to me... I
 thought this is a common practice..

 Anyways.. thanks for time..

 Best,
 DK

 On May 14, 12:45 pm, Justin Anderson magouyaw...@gmail.com wrote:
   I want to create a config file inside the ABSOLUTE PATH of the
   application at the time of installation. Would this be possible?
 
  Nope, sorry...
 
  The reason for this is, before even first time running the app, user
 can edit/specify the DNS/port and other settings in the config file.
 
  Not going to happen...
 
  Mandatory requirements: - User should be able to edit the CONFIG file
 even before running the APP
   for the first time..
   - I do not want to create this file manually in the device..
 
  Those are going to have to be less mandatory... as in non-existent.  The
  Android paradigm for this is to handle this on the first run of the
 app...
 
  Thanks,
  Justin Anderson
  MagouyaWare Developerhttp://sites.google.com/site/magouyaware
 
 
 
 
 
 
 
  On Mon, May 14, 2012 at 9:43 AM, dillipk codersnet2...@gmail.com
 wrote:
 I want to create a config file inside the ABSOLUTE PATH of the
   application at the time of installation. Would this be possible?

 --
 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] Is there a way to Bypass bluetooth and play directly through phone speakers

2012-05-14 Thread Tommy Hartz
Thanks,

 

I will give this a try and see what happens. No one would happen to have any
links to some examples that do work so I am not screwing around with stuff?
I don't have a Bluetooth so I have to export the app, send it to a co-worker
who has one then have them try to get the right conditions to happen for the
sound to go off.

 

From: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] On Behalf Of vijay Badawadagi
Sent: Monday, May 14, 2012 4:36 PM
To: android-developers@googlegroups.com
Subject: Re: [android-developers] Is there a way to Bypass bluetooth and
play directly through phone speakers

 

check Audio policy manager in Android, there is priority based routing
changing that should help


Thanks
Vijay

On Mon, May 14, 2012 at 3:23 PM, Tommy Hartz droi...@gmail.com wrote:

Hi,

 

I was wondering if it is possible to play audio through the phone speakers
while a Bluetooth headset is connected. It is important that this audio is
played through the phone rather than the Bluetooth incase the Bluetooth is
not in the persons ear.

 

Thanks in advance,

 

Tommy

-- 
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
mailto:android-developers%2bunsubscr...@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] how to make cursor blink ( appear) when edit text gets focus.

2012-05-14 Thread Mike Adams
we have two edit texts, one for width and one for height, XML below.  I'm
able through the xml make it so if you hit next in width the focus goes to
height.  Programmaticly by using postdelayed i can change like 100ms after
they hit enter ( if they don't have next on phone) focus to move to high
entry and this moving of focus is all working.  the problem is either way i
change focus when the high entry gets focus you must trust it has focus.
there is no visible blinking cursor on getting focus to clue you in.  the
cursor doesn't appear till you start typing.  Actually it works the same
way if you just start out and click wide, the wide entry text area doesnt
have a blinking cursor till you type. But at least in that case you know
where the focus is because you clicked. Any way to make the cursor blink on
getting focus? i googled for some ideas, one was use setSelection.  this
didn't work.



  EditText android:id=@+id/entryWide
android:layout_width=wrap_content
android:layout_height=wrap_content
android:background=#fff
android:layout_margin=10dp
android:singleLine=true
android:layout_below=@id/test_image
android:layout_alignParentLeft=true
android:padding=15dp
android:nextFocusDown=@+id/entryHigh
android:imeOptions=actionNext
android:cursorVisible=true
 /


EditText android:id=@+id/entryHigh
android:layout_width=wrap_content
android:layout_height=wrap_content
android:background=#fff
android:layout_margin=0dp
android:layout_alignBottom =  @+id/entryWide
android:layout_toRightOf = @+id/widthHeightseperator
android:singleLine=true
android:cursorVisible=true
android:padding=15dp
 /

-- 
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: Add application licencing to apk

2012-05-14 Thread huberte
You were right Jteagle, I switched and it's a;looot easier !

Le lundi 7 mai 2012 13:57:17 UTC-4, JTeagle a écrit :

 Take a look at the instructions here: 

 http://developer.android.com/guide/market/licensing/setting-up.html#add-library
  

 Particularly, look a few lines down where it starts If you are developing 
 using the SDK command-line tools 

 Why you aren't using Eclipse, though, is a mystery. Why make it harder for 
 yourself? 




-- 
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] Image scaled, scroll, zoom, without margin

2012-05-14 Thread huberte
here the code, it's working :

?xml version=1.0 encoding=utf-8?
ScrollView android:id=@+id/scrollView1
android:layout_width=wrap_content android:layout_height=wrap_content
xmlns:android=http://schemas.android.com/apk/res/android;



ImageView
android:id=@+id/exp1_image
android:layout_width=fill_parent
android:layout_height=1944dp
android:adjustViewBounds=true
android:background=#
android:src=@drawable/exp1
android:scaleType=fitCenter /

/ScrollView

thks to kostya

-- 
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] get and set volume of microphone

2012-05-14 Thread Ngọc Thủy Đỗ Thị
Hi all! I tried to set the volume of microphone with AudioManager, but
I'm not able to do that. Is there any way?
I'm using AudioRecord to record sound from microphone.
Thanks for 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


Re: [android-developers] get and set volume of microphone

2012-05-14 Thread chengdong diao
I know in linux ,there is a tool:
amixer


2012/5/15 Ngọc Thủy Đỗ Thị andy.need5sp...@gmail.com

 Hi all! I tried to set the volume of microphone with AudioManager, but
 I'm not able to do that. Is there any way?
 I'm using AudioRecord to record sound from microphone.
 Thanks for 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

-- 
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] What can't boot, which delete .git in kernel?

2012-05-14 Thread wang nungchao
Hi All
I use TI platform, and check out source code form TI website.(http://
omappedia.org/wiki/4AI.1.2_OMAP4_Icecream_Sandwich_Release_Notes)

If I delete .git file in kernel and build, I can't booting Android.

I trace Makefile in Kernel ,but I haven't search anything about git
key word. So How can I find root cause?

I know if I don't delete .git file, the Kernel Image Name :
Linux-3.0.21-2-OMAP-Android+ .

If I delete .git file, the Kernel Image Name : Linux-3.0.21-2-
OMAP-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


Re: [android-developers] What can't boot, which delete .git in kernel?

2012-05-14 Thread chengdong diao
why you delete .git?

2012/5/15 wang nungchao nungc...@gmail.com

 Hi All
 I use TI platform, and check out source code form TI website.(http://
 omappedia.org/wiki/4AI.1.2_OMAP4_Icecream_Sandwich_Release_Notes)

 If I delete .git file in kernel and build, I can't booting Android.

 I trace Makefile in Kernel ,but I haven't search anything about git
 key word. So How can I find root cause?

 I know if I don't delete .git file, the Kernel Image Name :
 Linux-3.0.21-2-OMAP-Android+ .

 If I delete .git file, the Kernel Image Name : Linux-3.0.21-2-
 OMAP-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

-- 
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] pairing problem, I believe this to be a bug in Android 4.0.3

2012-05-14 Thread Jim Morris
I have developed an Android app that communicates with a Blue Bamboo
Bluetooth printer. I have no trouble communicating with the printer on
a galaxy P-6210 (Android 3.2). I purchased a P-3113 (Android 4.0.3).
When my app runs on the P-3113, I get the following problem.

When the P-3113 is trying to pair with the Blue Bamboo printers, it
asks me to type in the pin number for pairing, but the device was
already paired before the app started up!!! Why does it ask me for
a pin number again, when the devices are already paired up?

When I enter the pin number again, the device will still not connect.

The problem occurs on the device running version 4.0.3 regardless of
whether my software is targeted for version 4.0.3 or version 3.2.

I can supply the manufacturer's demo software source code, which also
exhibits the same problem.

I believe this is a bug introduced into Android 4.0.3. The software
works fine on Android 3.2 on a Galaxy P-6210.

-- 
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] Google Play Store warning about fewer devices supported by updated APK

2012-05-14 Thread Paresh Joshi


In the latest version of my app,  I updated the manifest file to include 
support for ICS version. When activating the APK file, I got a warning 
(that I apparently ignored) about newest version supports fewer devices 
than previous version. Later that day I saw couple of posts in forums where 
user saying that they are getting APP incompatible with their device 
messages. The current info in manifest looks like this:

uses-sdk
android:maxSdkVersion=15
android:minSdkVersion=7 
android:targetSdkVersion=14/

The previous version in manifest had following info

uses-sdk
android:maxSdkVersion=14
android:minSdkVersion=7 /

I used targetSDK as 14 to enable action bar. In the PLAY store the app 
shows requires android 2.1 and up

 Any idea why this would lead to fewer device support though the maxSDK is 
15 instead of 14? Any help will be highly 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: What can't boot, which delete .git in kernel?

2012-05-14 Thread wang nungchao
Because I will commit our svn server, our partners will modify source
code in our project.

On 5月15日, 上午10時50分, chengdong diao diaochengd...@gmail.com wrote:
 why you delete .git?

 2012/5/15 wang nungchao nungc...@gmail.com







  Hi All
  I use TI platform, and check out source code form TI website.(http://
  omappedia.org/wiki/4AI.1.2_OMAP4_Icecream_Sandwich_Release_Notes)

  If I delete .git file in kernel and build, I can't booting Android.

  I trace Makefile in Kernel ,but I haven't search anything about git
  key word. So How can I find root cause?

  I know if I don't delete .git file, the Kernel Image Name :
  Linux-3.0.21-2-OMAP-Android+ .

  If I delete .git file, the Kernel Image Name : Linux-3.0.21-2-
  OMAP-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

-- 
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: What can't boot, which delete .git in kernel?

2012-05-14 Thread wang nungchao
Because I will commit our svn server, our partners will modify source
code in our project.

On 5月15日, 上午10時50分, chengdong diao diaochengd...@gmail.com wrote:
 why you delete .git?

 2012/5/15 wang nungchao nungc...@gmail.com







  Hi All
  I use TI platform, and check out source code form TI website.(http://
  omappedia.org/wiki/4AI.1.2_OMAP4_Icecream_Sandwich_Release_Notes)

  If I delete .git file in kernel and build, I can't booting Android.

  I trace Makefile in Kernel ,but I haven't search anything about git
  key word. So How can I find root cause?

  I know if I don't delete .git file, the Kernel Image Name :
  Linux-3.0.21-2-OMAP-Android+ .

  If I delete .git file, the Kernel Image Name : Linux-3.0.21-2-
  OMAP-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

-- 
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] Google Play Store warning about fewer devices supported by updated APK

2012-05-14 Thread TreKing
On Mon, May 14, 2012 at 10:39 PM, Paresh Joshi pareshjosh...@gmail.comwrote:

 I used targetSDK as 14 to enable action bar. In the PLAY store the app
 shows requires android 2.1 and up


Your min is 7 which is 2.1. Thus, your app requires 2.1 and up.

Also, maxSDKVersion should not be used:
http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#max

-
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: Proguard and PreferenceActivity

2012-05-14 Thread Dusk Jockeys Android Apps
Indeed, it is fine to call SetContentView in a PreferenceActivity, as
long as your content xml contains a ListView with id list, as the OP
example clearly does.

I use this all the time to add extra useful stuff around the standard
list of Preferences, such as Live previews of the changing settings.


On May 13, 6:46 pm, Mentos rafal.modrzyn...@gmail.com wrote:
 I have to add 'Save button' below preferences:

 RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
 android
     android:layout_width=fill_parent
     android:layout_height=fill_parent

     Button android:id=@+id/saveProfile
         android:layout_width=fill_parent
         android:layout_height=wrap_content
         android:text=@string/Save
         android:layout_alignParentBottom=true
         android:minHeight=50dp
         android:textColor=@drawable/button_foreground
         android:background=@drawable/button_background/

     ListView android:id=@android:id/list
         android:layout_width=fill_parent
         android:layout_height=fill_parent
         android:layout_alignParentTop=true
         android:layout_above=@id/saveProfile /
 /RelativeLayout

 Its works without obsfucator.

 On 12 Maj, 20:09, Kostya Vasilyev kmans...@gmail.com wrote:



  Not sure about the crash, but calling setContentView yourself on a
  PreferenceActivity is quite meaningless.

  -- K

  2012/5/12 lbendlin l...@bendlin.us

   The error may be caused by something else entirely.

   The other day I learned that lint in it over-eagerness gave me bad advice.
   It told me to put drawables into resolution folders like drawable-mdpi but
   it neglected to mention that this breaks the app on 1.5 devices. I had to
   move the drawables back to the default folder.

   On Thursday, May 10, 2012 7:35:07 AM UTC-4, Mentos wrote:

   In my release apk I have very strange problem. In debug all works
   fine.
   proguard.cfg is normal from examples.

   Any sugestion ?

   Unable to start activity ComponentInfo{myclass}:
   android.view.InflateException: Binary XML file line #2: Error
   inflating class PreferenceScreen

   public class MyClas extends PreferenceActivity implements
   SharedPreferences.**OnSharedPreferenceChangeListen**er {

    @Override
       public void onCreate(Bundle icicle) {
           super.onCreate(icicle);

           addPreferencesFromResource(R.**xml.new_profile);

           setContentView(R.layout.new_**profile); //HERE IS 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- Hide quoted text -

 - Show quoted text -

-- 
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: What can't boot, which delete .git in kernel?

2012-05-14 Thread chengdong diao
after deleted .git,what command have you used?
maybe some commands related with .git changed the source code.

2012/5/15 wang nungchao nungc...@gmail.com

 Because I will commit our svn server, our partners will modify source
 code in our project.

 On 5月15日, 上午10時50分, chengdong diao diaochengd...@gmail.com wrote:
  why you delete .git?
 
  2012/5/15 wang nungchao nungc...@gmail.com
 
 
 
 
 
 
 
   Hi All
   I use TI platform, and check out source code form TI website.(http://
   omappedia.org/wiki/4AI.1.2_OMAP4_Icecream_Sandwich_Release_Notes)
 
   If I delete .git file in kernel and build, I can't booting Android.
 
   I trace Makefile in Kernel ,but I haven't search anything about git
   key word. So How can I find root cause?
 
   I know if I don't delete .git file, the Kernel Image Name :
   Linux-3.0.21-2-OMAP-Android+ .
 
   If I delete .git file, the Kernel Image Name : Linux-3.0.21-2-
   OMAP-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

 --
 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] Re: Safe to add Fragment into ListView?

2012-05-14 Thread spotleo
Hi MagouyaWare,
I did try it and it works perfectly at the moment.
I'm just worried whether there will be any problems I need to be aware of.
thanks

On Tuesday, May 15, 2012 12:56:55 AM UTC+8, MagouyaWare wrote:

 You could always try it and see...  You've been waiting weeks for an 
 answer, and probably could have figured it out in a matter of hours by just 
 trying it to see what happens.

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


 On Mon, May 14, 2012 at 7:15 AM, spotleo l...@spotleo.com wrote:

 Dianne or Romain Guy?
 Or anyone else can provide any suggestions?


 On Thursday, April 26, 2012 1:45:34 PM UTC+8, spotleo wrote:

 Hi, 

 I have a reusable UI component Fragment A that has been used 
 throughout various Activities and they all worked fine. 
 The controller logic is placed inside Fragment A whereas the view 
 layer is defined in Fragment A's layout file. 

 Now I have a requirement to add Fragment A into part of Listview 
 item's layout file. 
 From my understanding, Fragment is no different from View from view 
 tree's perspective. In other words 
 when we use Hierarchy Viewer to inspect the view tree, we won't see 
 Fragment A, but instead we'll see the view 
 returned from Fragment A's onCreateView, so theoretically it is ok to 
 place Fragment A inside Listview item and I have 
 successfully done so. 

 My question is, is my assumption correct? Is it safe to place Fragment 
 into ListView item? 
 Anything I need to be aware of when doing this? 

 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

[android-developers] Re: Safe to add Fragment into ListView?

2012-05-14 Thread spotleo
Hi Nadeem,
The reason why I chose fragment over widget is that fragment has callback 
methods such as
onCreate(), onResume, onPause, onDestroy that I need in order for my UI 
component to work properly.
This implies that clients can just declare my fragment in their layout and 
it'll all work.

If I write a widget, then I'd need to write apis for client's to call, and 
require everyone who uses my widget
to call these apis in their activity's callback method in order to have 
correct behavior from my UI component.
I just found this troublesome, and I believe fragment is here to solve this 
problem (Separate controller logic to fragment
and view code to widget).

On Tuesday, May 15, 2012 1:42:40 AM UTC+8, Nadeem Hasan wrote:

 Why don't you factor out the functionality into a custom widget and use it 
 in both the listview and fragment?

-- 
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] Google Play Store warning about fewer devices supported by updated APK

2012-05-14 Thread Paresh Joshi
Thanks for the prompt response. I had the min  maxSDKVersion as 7 in my 
older version of APK also so that should not have mattered. 

On Monday, May 14, 2012 9:06:44 PM UTC-7, TreKing wrote:

 On Mon, May 14, 2012 at 10:39 PM, Paresh Joshi pareshjosh...@gmail.comwrote:

 I used targetSDK as 14 to enable action bar. In the PLAY store the app 
 shows requires android 2.1 and up


 Your min is 7 which is 2.1. Thus, your app requires 2.1 and up.

 Also, maxSDKVersion should not be used:

 http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#max


 -
 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

Re: [android-developers] Re: Safe to add Fragment into ListView?

2012-05-14 Thread Justin Anderson

 and I believe fragment is here to solve this problem

Not according to Dianne...  She said you shouldn't be doing this and it
would cause problems.

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


On Mon, May 14, 2012 at 10:26 PM, spotleo l...@spotleo.com wrote:

 and I believe fragment is here to 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] How to add a OnClick Listiner to a imageview in a simpleadapter

2012-05-14 Thread shruthi santosh
 I have a imageview in the simpleadapter and on click of that image i want 
to display more information on that image.
I tried the getView() method,

public View getView( int position, View convertView, ViewGroup parent )
{
   
LayoutInflater inflater = (LayoutInflater)
context.getSystemService( 
Context.LAYOUT_INFLATER_SERVICE );
View v = inflater.inflate(R.layout.feedslist, parent, 
false );
   
ImageView iv = (ImageView)v.findViewById(R.id.player);
  
iv.setOnClickListener( new OnClickListener()
{
 
@Override
public void onClick( View v )
{
Toast.makeText( context,
String.format( Image clicked: ),
Toast.LENGTH_SHORT ).show();
}
} );
return v;
}

with this code ,i get the toast.but the other textviews in the list does 
not appear.
Pl help me.


shruthi

-- 
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] Google Play Store warning about fewer devices supported by updated APK

2012-05-14 Thread santhosh

Hi,

i think it was the not issue of uses-sdk setting in the manifst file

google play store  filter the application if the device is not have some 
features which is using user app


adduses-feature  setting into our manifest and set required option value to 
true or false,

see below code that indicate the google play not to filter the app if camara is 
not available for those device.

see this link for more 
information*http://developer.android.com/guide/topics/manifest/uses-feature-element.html*

uses-feature android:name=android.hardware.camera android:required=false/

Thanks
Santhosh Battupelli

On 5/15/2012 9:09 AM, Paresh Joshi wrote:


In the latest version of my app,  I updated the manifest file to 
include support for ICS version. When activating the APK file, I got a 
warning (that I apparently ignored) about newest version supports 
fewer devices than previous version. Later that day I saw couple of 
posts in forums where user saying that they are getting APP 
incompatible with their device messages. The current info in manifest 
looks like this:


| uses-sdk
 android:maxSdkVersion=15
 android:minSdkVersion=7
 android:targetSdkVersion=14/
|

The previous version in manifest had following info

| uses-sdk
 android:maxSdkVersion=14
 android:minSdkVersion=7  /
|

I used targetSDK as 14 to enable action bar. In the PLAY store the app 
shows requires android 2.1 and up


 Any idea why this would lead to fewer device support though the 
maxSDK is 15 instead of 14? Any help will be highly 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 


--
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 add a OnClick Listiner to a imageview in a simpleadapter

2012-05-14 Thread Ibrahim Sada
after the brace closes just show that text view it may work just try it
once

On 15 May 2012 10:55, shruthi santosh shruthi.shr...@gmail.com wrote:

  I have a imageview in the simpleadapter and on click of that image i want
 to display more information on that image.
 I tried the getView() method,

 public View getView( int position, View convertView, ViewGroup parent )
 {

 LayoutInflater inflater = (LayoutInflater)
 context.getSystemService(
 Context.LAYOUT_INFLATER_SERVICE );
 View v = inflater.inflate(R.layout.feedslist, parent,
 false );

 ImageView iv = (ImageView)v.findViewById(R.id.player);

 iv.setOnClickListener( new OnClickListener()
 {

 @Override
 public void onClick( View v )
 {
 Toast.makeText( context,
 String.format( Image clicked: ),
 Toast.LENGTH_SHORT ).show();
 }
 } );
 return v;
 }

 with this code ,i get the toast.but the other textviews in the list does
 not appear.
 Pl help me.


 shruthi

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