[android-developers] The file path is not same

2012-01-26 Thread kyawswa aung
Hello!

Now I am trying to load my zip files with using osmdroid lib from the
sd card. My zip file is osmdroid zip format is generated by the MOBAC.
The file path in my zip is not the same with the generated file path
from the osmdroid lib.

MOBAC generated like this osmdroid\Mapnik\13\6282\3706.png

osmdroid lib required like this osmdroid\Mapnik\13\4060\4060.png

How can I fix this? And is there any way to customize both of them? I
spend a lot of time for that. Could you please give me some advice.

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] cannot run sqlite3 commands using ADB

2012-01-26 Thread ramkumar pinninti
Hi,
I hava a rooted Samsung Galaxy Y mobile.I system/xbin folder sqlite3
is there.But when i run sqlite3 command using ADB following error is
occuring

# sqlite3
sqlite3
link_image[1963]:  2761 could not load needed library 'libncurses.so'
for 'sqlit
e3' (load_library[1105]: Library 'libncurses.so' not found)CANNOT LINK
EXECUTABL
E

Please kindly help me.
Thanks and regards
P.Ramkumar.

-- 
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] Disabled EditText is not working properly...?

2012-01-26 Thread Abhilash baddam
Thanks to allI tried as aparna told is working fine

On Wed, Jan 25, 2012 at 3:05 PM, unicus unicus unicus...@gmail.com wrote:

 yes do set focusable false.

 *More info*,
 http://androidbasic-answer.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


-- 
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] AutoFocus for Android 4.0

2012-01-26 Thread perumal316
Hi All,

I have an camera app done for Android 2.3 which basically starts the
CameraPreview class and draws a rectangle over the preview and does
autofocus within the preview. It works without any issues in Nexus S
running on Android 2.3.

But when I run this app on Galaxy Nexus running on Android 4.0 the
autofocus functionality is not working.  I checked the developer
website and the Camera.AutoFocusCallback is still available for
Android 4.0.

Any idea what's the issue?

Thanks in Advance,
Perumal

-- 
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 accelerometer to measure distance

2012-01-26 Thread heri_hahihu
ok tom thanks for reply.. tom i just want to measure near distance , just
20 cm or 30 cm.. can u give me idea? how if i use proximity sensor?

On Thu, Jan 26, 2012 at 1:07 AM, TomL tomlo...@gmail.com wrote:

 http://en.wikipedia.org/wiki/Kinematics#Displacement

 Acceleration is delta velocity over delta time.  Velocity is delta
 position over delta time.  If you can accurately sample the acceleration
 values over a period of time, you could calculate the changes in velocity
 and therefore the overall change in position.

 In practice, I don't think that smartphone accelerometers are anywhere
 near as accurate as you'd need to be able to do this.  If they were,
 smartphones would cost as much as missile guidance systems.

 Tom

 --
 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] Localization of String.format causing problems

2012-01-26 Thread RLScott
My app writes files with strings generated by code like:

s = String.format(%6.2f\r\n, zValue);

where zValue is a float.  Then it reads those files back in later and
parses them, expecting to see a number with a decimal point (.).  This
works fine for my phone and for all the Android devices in the US that
I have tested.  But now a user from Germany reported troubles that I
have traced down to the fact that on German phones, the above
statement produces numbers that use the comma (,) as the decimal
delimiter, and so my parsing code that looks for decimals with periods
does not work.  It appears to be a localization issue.  How can I
force all my strings generated with .format to use US localization
standards in this regard?  (My files are totally for internal use by
the app and so do not need to be rendered in the local convention.)

-- 
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 identify on which marker user had taped

2012-01-26 Thread Spiral123
Google 'Android MapView Balloons'

On Jan 26, 2:37 am, ripal hiral ripalhi...@gmail.com wrote:
 I want that on taping particular marker I want to show Balloon Like in
 Google map we have
 When User tap on Particular marker Balloon containing Info related to
 that Geo point is display ..

 I am new in Android can any one 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] Localization of String.format causing problems

2012-01-26 Thread Mark Murphy
http://stackoverflow.com/questions/5236056/force-decimal-point-as-seperator-in-java

On Thu, Jan 26, 2012 at 8:05 AM, RLScott fixthatpi...@yahoo.com wrote:
 My app writes files with strings generated by code like:

 s = String.format(%6.2f\r\n, zValue);

 where zValue is a float.  Then it reads those files back in later and
 parses them, expecting to see a number with a decimal point (.).  This
 works fine for my phone and for all the Android devices in the US that
 I have tested.  But now a user from Germany reported troubles that I
 have traced down to the fact that on German phones, the above
 statement produces numbers that use the comma (,) as the decimal
 delimiter, and so my parsing code that looks for decimals with periods
 does not work.  It appears to be a localization issue.  How can I
 force all my strings generated with .format to use US localization
 standards in this regard?  (My files are totally for internal use by
 the app and so do not need to be rendered in the local convention.)

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

Android Training in DC: http://marakana.com/training/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: Localization of String.format causing problems

2012-01-26 Thread RLScott
Problem solved, I think.

I just have to change all my String.format(... statements to

String.format(Locale,US,...

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

2012-01-26 Thread hudvin
is there any news about Android@Home? I didn't found anything except
presentation notes.

-- 
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] calling showDialog(dialog_id) in Activity consists GLSurfaceView

2012-01-26 Thread Avatar Ng
Application exit and throw error when I trying to call showDialog() in
an Activity consisting GLSurfaceView

-- 
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] Android@Home

2012-01-26 Thread Mark Murphy
I haven't heard much of anything about Android@Home specifically.
Various USB host and accessory mode APIs were added in Gingerbread, to
enable the @Home sort of tech. But the brand name Android@Home seems
fairly quiet.

On Thu, Jan 26, 2012 at 8:26 AM, hudvin hud...@gmail.com wrote:
 is there any news about Android@Home? I didn't found anything except
 presentation notes.

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

Android Training in DC: http://marakana.com/training/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] calling showDialog(dialog_id) in Activity consists GLSurfaceView

2012-01-26 Thread TreKing
On Thu, Jan 26, 2012 at 7:27 AM, Avatar Ng ngchee...@gmail.com wrote:

 Application exit and throw error when I trying to call showDialog() in an
 Activity consisting GLSurfaceView


Alright then. Thanks for sharing.

http://www.catb.org/~esr/faqs/smart-questions.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] Reusable About Dialogs, etc

2012-01-26 Thread momojo
Hello All;
I have seen many apps that seem to be using similar components for ui
including an about dialog. Is there some sdk out there that people are
using to gain this uniform look and save some coding time, or is
everyone just rolling their own?

-- 
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: Encoder???

2012-01-26 Thread Muhammad UMER

hi skink,
I google to much about the moov and mdat atoms and i found that the 
3gp file consist of some atoms order by ftyp-moov-mdat or ftyp-mdat-moov,  
mdate are our orignal sound and video where moov atom are use to make the file 
playable. so as i found that my server have to write moov atoms atoumaticaly 
but i don't know how to write these moov atoms to my file. please help me 
because this is my part of the project and i have to submit it after 2 weeks. 
it's to much complected to me to write myself. Please show me some example of 
this or send me an appropriate link.You have helped me a lot and i hope you can 
help me again.

thanks and Regards,

umer


 Date: Wed, 25 Jan 2012 09:07:58 -0800
 Subject: Re: [android-developers] Re: Encoder???
 From: psk...@gmail.com
 To: android-developers@googlegroups.com
 
 
 
 Muhammad UMER wrote:
  hi skink,
  I read the link that you have posted. In a blog describe the 
  mdat atoms that leave some spaces also not write the header. what is it, i 
  haven't studied about it. How can i write the header of the file and the 
  mdat atom spaces.
 
 
 
 
 you have to figure it out by yourself
 
 try googling
 
 pskink
 
 -- 
 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 distribute a Library Project WITHOUT source code (as jar file) as some sort of SDK?

2012-01-26 Thread Klier Rainer
hi android-developers,

i am trying to convert my existing (and working) app project into 2 
projects.
the first project (a library project) should act as a kind of SDK.
the second project should use the first and make the original app.

my goal is to be able to distribute the first project only as binary 
(WITHOUT source code) to other developers, so they can make their own 
apps with it.
the second project should also be distributed as example or reference 
implementation how to use the first project.

this way, i am using my own SDK to build my app again, and offer the SDK 
in binary-only-form to other developrs, so they can use it to build 
their apps.

Android library projects seem the perfect way for this.

BUT, i found (and tried) out, that it is not possible to pack the class 
files of the source code and the used resources (ids, layouts, 
images,) and the R class pointing to the resources into one jar 
file (or any other archive).

here is, what i read on:
http://developer.android.com/guide/developing/projects/index.html

You cannot export a library project to a JAR file

A library cannot be distributed as a binary file (such as a JAR file). 
This will be added in a future version of the SDK Tools.


the only way is to supply the whole source code of the library project 
and let the second project use/reference to this source library project.

but i don't want/can give away my source code.


what is the best way how i can workaround this limitation?
has anybody of you a solution/trick/workaraound for this?

thanks in advance.
-- 
Rainer Klier
Research  Development
xyzmo SIGNificant Group  | Austria | USA  | Germany
A-4052 Ansfelden, Haiderstraße 23
Tel.: +43 7229 88060-0, E-Mail: rainer.kl...@xyzmo.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] how to distribute a Library Project WITHOUT source code (as jar file) as some sort of SDK?

2012-01-26 Thread Mark Murphy
It is possible to create an Android library project that does not
include source code. The limitations are:

-- You still have to ship the resources.

-- You have to rewrite your code to avoid using R. values, as they
will be wrong. You will have to look up all resource IDs using
getResources().getIdentifier() and/or reflection.

I have the instructions in _The Busy Coder's Guide to Advanced Android
Development_ (http://commonsware.com/AdvAndroid), though the
instructions are new enough that none of my free versions have them.
Quoting some of the instructions from the current edition:

You can create a binary-only library project via the following steps:
1. Create an Android library project, with your source code and such –
this is your master project, from which you will create a version of
the library project for distribution
2. Compile the Java source (e.g., ant compile) and turn it into a JAR file
3. Create a distribution Android library project, with the same
resources as the master library project, but no source code
4. Put the JAR file in the distribution Android library project's libs/
directory

The resulting distribution Android library project will have everything a
main project will need, just without the source code.

Personally, I'd just wait a bit. I am hopeful that the official
support for library-projects-as-JARs will be available soonish.

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

Android Training in DC: http://marakana.com/training/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] gridview weirdness

2012-01-26 Thread John Davis
Hello

I modified the hellogridview example so it has 5 colunns by changing the
NumColunns property from auto_fit to 5.  This is great, it gives me 5
columns, however it only gives me one row.  How to set so it gives
additional rows?

-- 
John F. Davis

独树一帜

-- 
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] Fragment Custom Animation on Honeycomb

2012-01-26 Thread hooman os
Hi Guys

I am trying to add a custom animation to my FragmentTransaction. I have
used both setCustomAnimations() methods (2 and 4 arguments) but it seems
that it does not work.

I am trying the code on Sony Tablet (Android 3.2.1)

I would appreciate any tips.

Hooman

-- 
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] gridview weirdness

2012-01-26 Thread Mark Murphy
Give it an Adapter with more than five items.

On Thu, Jan 26, 2012 at 10:59 AM, John Davis davi...@gmail.com wrote:
 Hello

 I modified the hellogridview example so it has 5 colunns by changing the
 NumColunns property from auto_fit to 5.  This is great, it gives me 5
 columns, however it only gives me one row.  How to set so it gives
 additional rows?

 --
 John F. Davis

 独树一帜



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

Android Training in DC: http://marakana.com/training/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] gridview weirdness

2012-01-26 Thread John Davis
Many thanks.

2012/1/26 Mark Murphy mmur...@commonsware.com

 Give it an Adapter with more than five items.

 On Thu, Jan 26, 2012 at 10:59 AM, John Davis davi...@gmail.com wrote:
  Hello
 
  I modified the hellogridview example so it has 5 colunns by changing the
  NumColunns property from auto_fit to 5.  This is great, it gives me 5
  columns, however it only gives me one row.  How to set so it gives
  additional rows?
 
  --
  John F. Davis
 
  独树一帜
 
 
 
  --
  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

 Android Training in DC: http://marakana.com/training/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




-- 
John F. Davis

独树一帜

-- 
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 distribute a Library Project WITHOUT source code (as jar file) as some sort of SDK?

2012-01-26 Thread Klier Rainer
hi mark,

thank you for your fast response.

Am 26.01.2012 15:57, schrieb Mark Murphy:
 It is possible to create an Android library project that does not

ahh, do you mean like suggested here:
http://blog.sofisoftware.com/post/2011/10/05/Android-Library-projects-and-Jars

 You have to rewrite your code to avoid using R. values, as they
 will be wrong. You will have to look up all resource IDs using
 getResources().getIdentifier() and/or reflection.

you mean i should replace for example all
R.layout.identifier_1
to
getResources().getIdentifier(identifier_1, layout, 
full.package.name); ?


 I have the instructions in _The Busy Coder's Guide to Advanced Android
 Development_ (http://commonsware.com/AdvAndroid), though the
 instructions are new enough that none of my free versions have them.

is it this book you are talking about?

http://www.amazon.de/Coders-Guide-Advanced-Android-Development/dp/098167805X/ref=sr_1_cc_1?s=apsie=UTF8qid=1327592129sr=1-1-catcorr

is the 2nd edition offered by amazon.de new enough?

 1. Create an Android library project, with your source code and such –

you mean with source code AND resources?
like any usual library project.

 2. Compile the Java source (e.g., ant compile) and turn it into a JAR file

would a Project/Clean... build from eclipse also produce the required 
jar? (menu Project, menu-entry Clean... in eclipse)

i tried this whith the TicTacToeLib example from 
http://developer.android.com/resources/samples/TicTacToeLib/index.html
and it produced a file tictactoelib.jar under bin directory in the 
TicTacToeLib project.
this contains only .class files.

would that be the required jar file?

 3. Create a distribution Android library project, with the same
 resources as the master library project, but no source code
 4. Put the JAR file in the distribution Android library project's libs/
 directory

 The resulting distribution Android library project will have everything a
 main project will need, just without the source code.

ok, understood.

 Personally, I'd just wait a bit. I am hopeful that the official
 support for library-projects-as-JARs will be available soonish.

ok, how soon whould you expect?
hours?
days?
weeks?
months?
years?

i ask, because i have the order to build a SDK out of my app code

and i can't let my boss wait too long. ;-)

but as you said, i first have to create an Android library project 
including everything anyway.
so i can start with this.

or will that step not be necessary any more, when official support for 
library-projects-as-JARs will be available?
-- 
Rainer Klier
Research  Development
xyzmo SIGNificant Group  | Austria | USA  | Germany
A-4052 Ansfelden, Haiderstraße 23
Tel.: +43 7229 88060-0, E-Mail: rainer.kl...@xyzmo.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] Fragment Custom Animation on Honeycomb

2012-01-26 Thread iñaki
You can put code please?

ft.setCustomAnimations(Enter,

   Exit);


What is your problem?


Iñaki
On 26 January 2012 17:15, hooman os hoomi2...@gmail.com wrote:

 Hi Guys

 I am trying to add a custom animation to my FragmentTransaction. I have
 used both setCustomAnimations() methods (2 and 4 arguments) but it seems
 that it does not work.

 I am trying the code on Sony Tablet (Android 3.2.1)

 I would appreciate any tips.

 Hooman

 --
 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: Scroll View

2012-01-26 Thread Oliviu Vais
I have tried those events. I need to use a while loop, but when i use
it within my ontouch i get an error on my device, it goes forever. I
read somewhere i need to put it in a new thread. Can you please show
me how can i do that?

On Jan 26, 5:09 am, TreKing treking...@gmail.com wrote:
 On Wed, Jan 25, 2012 at 4:04 PM, Oliviu Vais oliviu.v...@gmail.com wrote:
  I cannot get this to work. When i press the button it registers as a
  single click, then it releases the touch. HELP!!!

 Have you tried all of the motion-centric events described 
 here:http://developer.android.com/reference/android/view/View.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] any idea why this gridview has large vertical spacing between rows

2012-01-26 Thread John Davis
http://netskink.blogspot.com/2012/01/grid-view-notes.html

-- 
John F. Davis

独树一帜

-- 
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 distribute a Library Project WITHOUT source code (as jar file) as some sort of SDK?

2012-01-26 Thread Mark Murphy
On Thu, Jan 26, 2012 at 11:25 AM, Klier Rainer rainer.kl...@xyzmo.com wrote:
 ahh, do you mean like suggested here:
 http://blog.sofisoftware.com/post/2011/10/05/Android-Library-projects-and-Jars

Considering that's referencing some of my early work on the subject, yes. :-)

 you mean i should replace for example all
 R.layout.identifier_1
 to
 getResources().getIdentifier(identifier_1, layout,
 full.package.name); ?

Yes, thiough you can call getPackageName() to fill in for the third
parameter, IIRC.

 is it this book you are talking about?

 http://www.amazon.de/Coders-Guide-Advanced-Android-Development/dp/098167805X/ref=sr_1_cc_1?s=apsie=UTF8qid=1327592129sr=1-1-catcorr

Yes, though the Warescription digital edition is newer.

 is the 2nd edition offered by amazon.de new enough?

Yes.

 1. Create an Android library project, with your source code and such –

 you mean with source code AND resources?
 like any usual library project.

Yes.

 2. Compile the Java source (e.g., ant compile) and turn it into a JAR file

 would a Project/Clean... build from eclipse also produce the required
 jar? (menu Project, menu-entry Clean... in eclipse)

AFAIK, no.

It's possible you can create the JAR from Eclipse. I usually slap a
jar task in my build.xml and do it from the command line. I prefer
command line for distribution-related tasks, despite nowadays using
Eclipse for mainline development.

 i tried this whith the TicTacToeLib example from
 http://developer.android.com/resources/samples/TicTacToeLib/index.html
 and it produced a file tictactoelib.jar under bin directory in the
 TicTacToeLib project.
 this contains only .class files.

 would that be the required jar file?

Presumably, yes, but I have no way to tell from here.

 Personally, I'd just wait a bit. I am hopeful that the official
 support for library-projects-as-JARs will be available soonish.

 ok, how soon whould you expect?
 hours?
 days?
 weeks?
 months?
 years?

Well, I have no way of knowing for certain. I'm hoping its weeks.

 but as you said, i first have to create an Android library project
 including everything anyway.
 so i can start with this.

 or will that step not be necessary any more, when official support for
 library-projects-as-JARs will be available?

The plan, as I understand it, would avoid the whole
getResources().getIdentifier() nonsense, and you wouldn't have to
manually create the JAR and the distribution library project that
uses it.

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

Android Training in DC: http://marakana.com/training/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] any idea why this gridview has large vertical spacing between rows

2012-01-26 Thread Mark Murphy
Use Hierarchy Viewer to examine your activity. If I had to guess, your
Adapter is returning cells that big.

2012/1/26 John Davis davi...@gmail.com:
 http://netskink.blogspot.com/2012/01/grid-view-notes.html

 --
 John F. Davis

 独树一帜



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

Android Training in DC: http://marakana.com/training/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] Re: Http post and get

2012-01-26 Thread Nedim Muminovic
Solved. Thanks

On 21 January 2012 05:50, Guus Bloemsma g...@bloemsma.net wrote:

 You have to reuse the same cookie store, or better yet, the same http
 client.

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




-- 
http://www.uredzadroge.hr/admin/index.php

username: atila
pass:bicbozji

-- 
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] any idea why this gridview has large vertical spacing between rows

2012-01-26 Thread John Davis
Hello Mark,

You mentioned that tool before.  I have yet to look it up.  I assume this
is the starter page for it
http://developer.android.com/guide/developing/debugging/debugging-ui.html
I'll look into it. Thanks man.

John

2012/1/26 Mark Murphy mmur...@commonsware.com

 Use Hierarchy Viewer to examine your activity. If I had to guess, your
 Adapter is returning cells that big.

 2012/1/26 John Davis davi...@gmail.com:
  http://netskink.blogspot.com/2012/01/grid-view-notes.html
 
  --
  John F. Davis
 
  独树一帜
 
 
 
  --
  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

 Android Training in DC: http://marakana.com/training/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




-- 
John F. Davis

独树一帜

-- 
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] any idea why this gridview has large vertical spacing between rows

2012-01-26 Thread Mark Murphy
Yup, that's it.

On Thu, Jan 26, 2012 at 12:07 PM, John Davis davi...@gmail.com wrote:
 Hello Mark,

 You mentioned that tool before.  I have yet to look it up.  I assume this is
 the starter page for it
 http://developer.android.com/guide/developing/debugging/debugging-ui.html
 I'll look into it. Thanks man.

 John


 2012/1/26 Mark Murphy mmur...@commonsware.com

 Use Hierarchy Viewer to examine your activity. If I had to guess, your
 Adapter is returning cells that big.

 2012/1/26 John Davis davi...@gmail.com:
  http://netskink.blogspot.com/2012/01/grid-view-notes.html
 
  --
  John F. Davis
 
  独树一帜
 
 
 
  --
  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

 Android Training in DC: http://marakana.com/training/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




 --
 John F. Davis

 独树一帜



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

Android Training in DC: http://marakana.com/training/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] Delayed modification of ListView row causing a rebuild of the entire list when scrolling

2012-01-26 Thread mattcoz
No rules?  It's a computer program, all it has are rules.  The behavior is 
completely consistent and reproducible.  I've been going over the source 
for ListView but can't quite track down the specific rule that is causing 
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

Re: [android-developers] Delayed modification of ListView row causing a rebuild of the entire list when scrolling

2012-01-26 Thread Mark Murphy
On Thu, Jan 26, 2012 at 12:24 PM, mattcoz matt...@gmail.com wrote:
 No rules?  It's a computer program, all it has are rules.  The behavior is
 completely consistent and reproducible.

By no rules, I mean there is no documented behavior. You should not
be assuming any particular number of times getView() should be called.

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

Android Training in DC: http://marakana.com/training/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] Re: Scroll View

2012-01-26 Thread TreKing
On Thu, Jan 26, 2012 at 10:34 AM, Oliviu Vais oliviu.v...@gmail.com wrote:

 I have tried those events. I need to use a while loop, but when i use it
 within my ontouch i get an error on my device, it goes forever.


Well, yeah.


  I read somewhere i need to put it in a new thread.


Where was that?


 Can you please show me how can i do that?


Nope, sorry. But that probably wouldn't work anyway. While it would prevent
you from blocking the UI thread, there's still the minor detail of knowing
when to *stop*.
There must be some event that indicates when a touch has stopped. When you
find how to do that, everything else should fall into place.

-
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: Scroll View

2012-01-26 Thread Kostya Vasilyev
Rather than using a thread, you might want to schedule a task delayed by
a certain amount.

There are several ways to do this with the Android framework, here is one:

http://developer.android.com/reference/android/view/View.html#postDelayed(java.lang.Runnable,
long)

-- K

26 января 2012 г. 20:34 пользователь Oliviu Vais oliviu.v...@gmail.comнаписал:

 I have tried those events. I need to use a while loop, but when i use
 it within my ontouch i get an error on my device, it goes forever. I
 read somewhere i need to put it in a new thread. Can you please show
 me how can i do that?

 On Jan 26, 5:09 am, TreKing treking...@gmail.com wrote:
  On Wed, Jan 25, 2012 at 4:04 PM, Oliviu Vais oliviu.v...@gmail.com
 wrote:
   I cannot get this to work. When i press the button it registers as a
   single click, then it releases the touch. HELP!!!
 
  Have you tried all of the motion-centric events described here:
 http://developer.android.com/reference/android/view/View.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


-- 
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] Still unclear -- subscriptio model using paypal

2012-01-26 Thread Miriam Raphael Roberts

I have looked at numerous posts and there is still some ambiguity.--

Is it possible to have a subscription model using either Paypal  or
the in-app billing model?

If we use in-app billing, do we need to prompt the user each month
that we charge them?

Instead of in-app billing, can we use paypal instead to collect our
monthly fee? Can we charge them not using a monthly prompt?

What are papers like the NYT doing? When I download their app and try
to subscribe, I am taken to a form that accepts a credit card. We
basically want to do the same thing, just using the Paypal Mobile
Payment Library.

Thank you 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] Images _display_name is changed in external db at com.android.provider.media/external.db

2012-01-26 Thread @45
Hello Everyone ,


I am using

MediaStore.Images.Media.EXTERNAL_CONTENT_URI(External DB :: data/data
/com.android.provider.media/external.db))

in my app to save images with my own _display_name for example :
image_101.jpg but after some time the display name is change into long
no. like 1327392947034.jpg. and next time when i fetch the image with
my _display_name(image_101.jpg) it found nothing in external db. can
anyone tell me why it happens ?


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] setting radio button text by xml tag contents

2012-01-26 Thread mayur
how to set the text of radio button by xml tag exactly I know there is
getText() method available but it is not pointing to correct tag to
get text.
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


[android-developers] OpenGL Textures and Transparency. Square holding the texture still shows.

2012-01-26 Thread Nick Miller
Hello, I've run into a problem using OpenGL with Android.

I'm trying to create a transparent sprite that appears in my game
application.
The sprite is (.png) format and contains transparent values (alpha=0)
around the image.

Loading the image isn't a problem. I'm able to have the image load
onto a VBO square.

The problem is that this VBO square shows, it's color being the same
that is set with:
glClearColor(0, 0, 0, 1);

In the game scene I have a bunch of VBO cubes that surround the area
constantly moving towards the viewer.
Randomly, the sprite I was talking about will take the place of one of
these cubes. Then, when more cubes spawn from the far back. I can see
the square that the sprite is drawn on.

I honestly think this has to do with depth testing some how... because
when the sprite is in front of the cube. It would make sense for the
depth testing to hide parts of the cube (the parts covered by the
square).

The problem is that when I disable depth testing, the sprites will not
appear in front of the cube.


How can I make it so the sprites will appear in front, yet not cover
of the behind cubes?

Thanks, Nick.

-- 
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] SQLiteDatabase.execSQL() not behaving as expected

2012-01-26 Thread Robert Hawkey
Hi everyone,

I have an app I wrote for the iOS that makes extremely heavy use of a
large database, I am now porting that app to the Android platform.

I have a great deal of operations that follow this pattern:

1db.execSQL(CREATE TEMPORARY TABLE SearchResults(Name text););
2db.execSQL(INSERT INTO SearchResults (Name) SELECT Name FROM
ProductNames WHERE NameLower MATCH ' + term + *';);
3db.execSQL(INSERT INTO SearchResults (Name) SELECT Name FROM
BrandNames WHERE NameLower MATCH ' + term + *';);
...
Cursor cursor = db.rawQuery(SELECT Name FROM SearchResults +
myCount, null);
cursor.moveToFirst();
if (!cursor.isAfterLast())
{
Debug.log(DB, - Adding:  + cursor.getString(0));
resultSet.add(cursor.getString(0));
cursor.moveToNext();
}
cursor.close();

On iOS using the SQLite3 C API and sqlite3_exec() all of these
statements work perfectly fine.  However, on Android they are
exhibiting strange behaviour.  I seem to only ever gets one row, it
seems from the very first INSERT (the line that starts with 2 above).

My goal here is to wrap all of the above commands in a begin and end
transaction so that I can prevent multiple transactions from being
created, also I use a temporary in memory table rather than a
rawQuery() with just the selects because that prevents the bridge from
the database layer to the Java layer from happening until the very end
which seems to result in much better performance.

When I rewrite the above logic to look like this:

Cursor cursor = db.rawQuery(SELECT Name FROM Table1 WHERE NameLower
MATCH ' + term + *', null);
cursor.moveToFirst();
while (!cursor.isAfterLast())
{
resultSet.add(cursor.getString(0));
cursor.moveToNext();
}
cursor.close();
cursor = db.rawQuery(SELECT Name FROM Table2 WHERE NameLower MATCH '
+ term + *', null);
cursor.moveToFirst();
while (!cursor.isAfterLast())
{
resultSet.add(cursor.getString(0));
cursor.moveToNext();
}
cursor.close();
...

It works perfectly returning all the proper results, however this is
extremely slow.

Could anyone explain to me why the execSQL() calls above would not
work as I expect them too (and how they work on iOS)?

Thanks!

Rob

-- 
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: Unable to send text messages on some Android Phones using SmsManager

2012-01-26 Thread Dantelope
Great timing.  We just figured this one out.  If you include BOTH
PendingIntent arguments and point them to dummy classes, it works.  We
tested this with our problematic Vivid.  I'll update if any additional
testing shows anomalies.

On Jan 21, 2:40 pm, voicely ad...@voice.ly wrote:
 Hello,
 My mobile app occasionally is sending text messages, everything works
 great on most phones but i am starting to receive emails from some
 users stating the messages aren't going out. Here is the code i am
 using:

 SmsManager sms = SmsManager.getDefault();
 sms.sendTextMessage(+1222333, null, test sms, null, null);

 I've read somewhere that I should use the PendingIntent, so i tried it
 as follows:

 PendingIntent pi = PendingIntent.getActivity(register.this, 0, new
 Intent(register.this, register.class), 0);
 SmsManager sms = SmsManager.getDefault();
 sms.sendTextMessage(+1222333, null, test sms, pi, null);

 But it still doesnt work. So far I have gotten emails from users of
 Samsung Galaxy S II, Sprint Evo Shift, Samsung Sidekick phones.

 Please keep in mind it's not phone specific, i have tested the app on
 two of these phones (my friends) and the text message was sent
 normally. What am i doing wrong, is there another way to send text
 messages that would work on all phones?

 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: Unable to send text messages on some Android Phones using SmsManager

2012-01-26 Thread Dantelope
We are experiencing the same issue with a Vivid -- and only on the
Vivid so far.  What's strange is the same code works for us on a
Samsung Galaxy S II and on the Evo and on the Sidekick -- phones
you've indicated calls about. And for us it doesn't happen *ALL* the
time.  It's very strange.  Would really like to hear from others.

The same code was working fine with no problems until recently -- we
first saw it with the Vivid.

Dan

On Jan 21, 2:40 pm, voicely ad...@voice.ly wrote:
 Hello,
 My mobile app occasionally is sending text messages, everything works
 great on most phones but i am starting to receive emails from some
 users stating the messages aren't going out. Here is the code i am
 using:

 SmsManager sms = SmsManager.getDefault();
 sms.sendTextMessage(+1222333, null, test sms, null, null);

 I've read somewhere that I should use the PendingIntent, so i tried it
 as follows:

 PendingIntent pi = PendingIntent.getActivity(register.this, 0, new
 Intent(register.this, register.class), 0);
 SmsManager sms = SmsManager.getDefault();
 sms.sendTextMessage(+1222333, null, test sms, pi, null);

 But it still doesnt work. So far I have gotten emails from users of
 Samsung Galaxy S II, Sprint Evo Shift, Samsung Sidekick phones.

 Please keep in mind it's not phone specific, i have tested the app on
 two of these phones (my friends) and the text message was sent
 normally. What am i doing wrong, is there another way to send text
 messages that would work on all phones?

 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] Still unclear -- subscription model using Paypal

2012-01-26 Thread Miriam Raphael Roberts

I have looked at numerous posts and there is still some ambiguity.--

Is it possible to have a subscription model using either Paypal  or
the in-app billing model? Does it or does it not violate the Android
Terms of Service?

If we use in-app billing, do we need to prompt the user each month
that we charge them? If we decide not to prompt, does that violate the
Android Terms of Service?

Instead of in-app billing, can we use paypal instead to collect our
monthly fee? Can we charge them not using a monthly prompt?

What are papers like the NYT doing? When I download their app and try
to subscribe, I am taken to a form that accepts a credit card. We
basically want to do the same thing, just using the Paypal Mobile
Payment Library.

Thank you 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] ADB.exe not in SDK?

2012-01-26 Thread adystate
Eclipse (indigo) comes up with this error message:

[2012-01-24 14:05:43 - DDMS] DDMS files not found: C:\Program Files
\Android\android-sdk\platform-tools\adb.exe

This is not surprising as that directory does not exist either.

They suggest using the SDK manager to download this file

the SDK manager does not offer me an option to install any more files
than are already installed as it says the Android SDK tools are
already installed.

On searching through the zipped download of the current SDK (windows
64 bit) I find that ADB.exe is not in it.

Can anyone suggest how I can obtain this file and how it should be
installed?

I have also searched my hard drive for the file without any success

-- 
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] Grammar for speech recogniton

2012-01-26 Thread Patrick Tchankue
Hi everyone!!

I would like to use the speech API in a program, but due to accent
issues the recognition rate is very low.
I tried to use a custom grammar by adding import
android.speech.srec.Recognizer; but there is an error the import
cannot be resolved.

What can I do to overcome this problem?

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] Adding new language support

2012-01-26 Thread ModakS
Hi,

I am using Android 4.0 and want to add new language support. How shall
I start? Is there any good tutorial? I am not looking for language
support for any particular app. I want my phone to be working in a new
language totally.
Please help me.

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] External Data Storage

2012-01-26 Thread Punam Mahajan
-How to create directory within directory on external storage? like
directory MyFile in that different types of directory like
songs,pictures,etc
-can I see It on 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] On ICS, Stopped service can't receive an intent.

2012-01-26 Thread Ravi Pandey
I have tried to design a Service in such a way that once it's receiver
can receive the BOOT_COMPLETED intent , the service gets started.
Basically the startService() function gets called when the Service's
BroadCastReceiver receives the BOOT_COMPLETED intent inside it's
onReceive() function.

Now using Gingerbread environment, when I try to send the
android.intent.action.BOOT_COMPLETED intent (lets say from terminal
using the 'am' command). My Service (which is currently in NOT running
state) is able to receive this intent in it's onReceive() and
processes the further executions.

But when I am using the ICS environment, when I try to send the
android.intent.action.BOOT_COMPLETED intent as mentioned above, my
Service (which is currently in NOT running state) is NOT able to
receive this intent in it's onReceive().
For this case, when I try somehow to start my Service by calling it's
onCreate() explicitly by using some other Application and then if I
again send the BOOT_COMPLETED intent as above, then it is able to
receive this intent in it's onReceive() (i.e. only when my Service is
in running state).

I would really appreciate if someone can confirm that in case of using
ICS environment , do we need to start a service first before actually
making it able to receive an intent in it's onReceive() function ?
Also, the reasoning for this would be highly appreciable, if there is
some  :-)  ?

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] Images _display_name is changed in external db at com.android.provider.media/external.db

2012-01-26 Thread Ajay Sharma
-- 

I am using MediaStore.Images.Media.EXTERNAL_CONTENT_URI(External DB ::
data/data/com.android.provider.media/external.db)) in my app to save images
with my own _display_name for example : image_101.jpg but after some time
the display name is change into long no. like 1327392947034.jpg. and next
time when i fetch the image with my _display_name(image_101.jpg) it found
nothing in external db. can anyone tell me why it happens ?

Thanks

Regards,

Ajay M Sharma

-- 
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 can I install a CA root certificate on Android 2.3.4?

2012-01-26 Thread Rene
Hi.

Where I work use an internal CA root. One service attached to this CA
is the exchange, then I need to sync my android device with email,
calendar, contacts, etc.

How can I install a CA root certificate on Android 2.3.4?

TIA

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

2012-01-26 Thread siri
Dear all i started to learn android plz guide 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] Android VideoView OnCompletionListener not working

2012-01-26 Thread Sridiculous
I am trying to implement a simple VideoView that would play the Video
from the file system. The Video loads fine and plays just fine.
However, I would like to know when the Video finished playing so that
I can finish() the activity and resume with the next. Here is what I
have.

?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:id=@+id/videoPlayer
android:layout_width=fill_parent
android:layout_height=fill_parent
android:keepScreenOn=true
android:orientation=vertical 
VideoView
android:id=@+id/videoView
android:layout_width=fill_parent
android:layout_height=fill_parent /
/LinearLayout
The Activity is as below.

public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.videoplayer);

videoView = (VideoView) findViewById(R.id.videoView);
videoView.setOnCompletionListener(new
MediaPlayer.OnCompletionListener()
{
@Override
public void onCompletion(MediaPlayer mp)
{
Intent result = new Intent();
setResult(1, result);
finish();
}
}); // video finish listener

Intent intent = getIntent();

// Receiving the Data
String fileName = intent.getStringExtra(fileName);

videoView.setVideoPath(fileName);
videoView.setMediaController(new MediaController(this));
videoView.requestFocus();
videoView.start();}
I call this Activity from a different Activity. Here is that Activity
definition.

?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:id=@+id/gallery
android:layout_width=fill_parent
android:layout_height=fill_parent
android:orientation=vertical
android:keepScreenOn=true

ImageView
android:id=@+id/imageView
android:layout_width=fill_parent
android:layout_height=fill_parent
android:contentDescription=@string/imageViewDescription /

/LinearLayout
VideoPlayer Activity Class

public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);

requestWindowFeature(Window.FEATURE_NO_TITLE);

getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);

setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);

setContentView(R.layout.imageplayer);

imageView = (ImageView) findViewById(R.id.imageView);

updateUI(new File(/sdcard/Test/Test.3gp);
}

public void updateUI(File file)
{
if (file.getName().toLowerCase().endsWith(.jpg) ||
file.getName().toLowerCase().endsWith(.png))
{
Bitmap myBitmap =
BitmapFactory.decodeFile(file.getAbsolutePath());

imageView.setImageBitmap(myBitmap);
}
else if (file.getName().toLowerCase().endsWith(.3gp) ||
file.getName().toLowerCase().endsWith(.mp4))
{
//Starting a new Intent
Intent nextScreen = new Intent(getApplicationContext(),
VideoPlayer.class);

//Sending data to another Activity
nextScreen.putExtra(fileName, file.getAbsolutePath());

released = false;

startActivityForResult(nextScreen, resultCode);
}
}
}

public void onActivityResult(int requestCode, int resultCode, Intent
data)
{
super.onActivityResult(requestCode, resultCode, data);
}
The onCompletion method is never called and the onActivityResult()
method in the caller of this Activity also is not called. I would like
to know what is wrong with this. I tried playing both '.3gp' and
'.mp4' files with the same result. 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: File encryption using AES

2012-01-26 Thread JJ
Suggestion: FileName.EXT -- FileName.EXT.ENC, then decrypt to
FileName.EXT

Keep the original extension in the encrypted filename.

-- 
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: javax.management

2012-01-26 Thread jb
I guess I found a simple solution:

Implementing a subclass of android.app.Application and reacting
on public void onTrimMemory (int level). From the documentation:

 Called when the operating system has determined that it
  is a good time for a process to trim unneeded memory
  from its process. This will happen for example when it
  goes in the background and there is not enough memory
  to keep as many background processes running as desired.

I guess the level public static final int TRIM_MEMORY_COMPLETE
is the best for my purpose. From the documentation:

 Level for onTrimMemory(int): the process is nearing the end
 of the background LRU list, and if more memory isn't found soon
 it will be killed. Constant Value: 80 (0x0050)

Unfortunately only level 14, so that I cannot use it on Android 2.3.
Or is there some compatibility lib?

On 20 Jan., 01:50, Jan Burse janbu...@fastmail.fm wrote:
 Mark Murphy schrieb:

  You are missing the point. If I am understanding the documentation for
  MemoryPoolMXBean, there cannot be some other lib. I believe that you
  will be needing to remove the ties to javax.management, not replace
  them.

 Since I only need the memory threshold functionality
 I could easily implement the functionality in Android
 by myself by polling Runtime.freeMemory() in a thread.
 The later is available in Android.

 But it would be more handy if there is some existing
 lib or even an API in Android that I did not yet see.

 Bye

-- 
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 change the behaviour of an activity at runtime?

2012-01-26 Thread david wang
  I need to start a target activity at runtime, and disable some
buttons (such as BACK and HOME button) for it, these button are
enabled by default in the implementation of the target activity.
  Since the target activity is configurable, I don't know which
activity it is until runtime. And a requirement is that I can't change
the source code of all the potential target activities.
  The only way I can think of is changing the method behaviour of the
target activity when I know which target it is, such as onKeyDown()
and onAttachedToWindow(). Anybody knows how to do this change at
runtime?
  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] Keylayout file. Key code for KEYCODE_NUMPAD_ENTER?

2012-01-26 Thread Kathrin-J.
Hi,

I have a question regarding the keylayout file and the key codes that
are part of it.

The keylayout file that is used by default looks like this:

--

key 399   GRAVE
key 2 1
key 3 2
key 4 3
key 5 4
key 6 5
key 7 6
key 8 7
key 9 8
key 109
key 110
key 158   BACK  WAKE_DROPPED
key 230   SOFT_RIGHTWAKE
key 60SOFT_RIGHTWAKE
key 107   ENDCALL   WAKE_DROPPED
key 62ENDCALL   WAKE_DROPPED
key 229   MENU  WAKE_DROPPED
key 139   MENU  WAKE_DROPPED
key 59MENU  WAKE_DROPPED
key 127   SEARCHWAKE_DROPPED
key 217   SEARCHWAKE_DROPPED
key 228   POUND
key 227   STAR
key 231   CALL  WAKE_DROPPED
key 61CALL  WAKE_DROPPED
key 232   DPAD_CENTER   WAKE_DROPPED
key 108   DPAD_DOWN WAKE_DROPPED
key 103   DPAD_UP   WAKE_DROPPED
key 102   HOME  WAKE
key 105   DPAD_LEFT WAKE_DROPPED
key 106   DPAD_RIGHTWAKE_DROPPED
key 115   VOLUME_UP WAKE
key 114   VOLUME_DOWN   WAKE
key 116   POWER WAKE
key 212   CAMERA

key 16Q
key 17W
key 18E
key 19R
key 20T
key 21Y
key 22U
key 23I
key 24O
key 25P
key 26LEFT_BRACKET
key 27RIGHT_BRACKET
key 43BACKSLASH

key 30A
key 31S
key 32D
key 33F
key 34G
key 35H
key 36J
key 37K
key 38L
key 39SEMICOLON
key 40APOSTROPHE
key 14DEL

key 44Z
key 45X
key 46C
key 47V
key 48B
key 49N
key 50M
key 51COMMA
key 52PERIOD
key 53SLASH
key 28ENTER

key 56ALT_LEFT
key 100   ALT_RIGHT
key 42SHIFT_LEFT
key 54SHIFT_RIGHT
key 15TAB
key 57SPACE
key 150   EXPLORER
key 155   ENVELOPE

key 12MINUS
key 13EQUALS
key 215   AT

# On an AT keyboard: ESC, F10
key 1 BACK  WAKE_DROPPED
key 68MENU  WAKE_DROPPED

--

When I have a look at the KeyEvents that are described in the Android
documentation
http://developer.android.com/reference/android/view/KeyEvent.html
The events differ from each other: E.g. KEYCODE_ENTER has a value of
66 resp. 28 How is this related to each other?

I'm asking this because I have to add KEYCODE_NUMPAD_ENTER  to the
keylayout file and don't know which key number is correct.

Thanks for your help,

KJ

-- 
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] Running an executable from Android / Java code

2012-01-26 Thread ethanc
Hi All, 

I am trying to run an executable that should persist after the android 
application exits - under linux

I am using Runtime.getRuntime().exec (myexeutable), 

It does not work, 

An ideas what should be done?  Is there another way to execute from java a 
process?

Thanks 
Ethan

-- 
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] Actionbar with men button and tabs.

2012-01-26 Thread etnica
Hello,
i have created an actionbar with fragment tabs, I also added a menu
button and its here my problems starts.

Google has in android 4 moved the hardware menubutton to a software
button in the actionbar, so I need to share it with the space with my
tabs. What happens in horizontal mode is that the tabs takes up all
the space on the first row and pushes the menubutton to a second row.
The tabs has alot of whitespace and could be shrinked to make room for
the menu button.

I have tried everything I can think on, crated cutomviews for the tabs
doesnt help the actionbar keeps the width of the tabs and just shrinks
the content.

The last thing I tried was to override parent=android:style/
Widget.Holo.Light.ActionBarView_TabView theme, but in later version
of the SDK you are no longer allowed to override this now private
style.

So I am wondering if anyone smarter then me have any solution for the
two options bellow.

1.  Force the tabs to shrink to make room for menu button

2. Override software menu button to force it back as a hardwarebutton.



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


[android-developers] How to set a keylayout file?

2012-01-26 Thread Kathrin-J.
Hi,

I'm using the DDMS for debugging my application. Each time I press a
button a warning is thrown:

No keyboard for id 0
Using default keymap: /system/usr/keychars/qwerty.kcm.bin

I found commands to set the keychar and keylayout to a specific file,
but it does not work :( I'm typing this commands using the
DevTools/'Terminal Editor'.

setprop android.keylayout.azerty /etc/keymaps/azerty.kl
setprop android.keychar.azerty /etc/keymaps/azerty.kcm.bin

Any ideas what else has to be done to set a different keylayout file
as default?
Another question: Is it possible to set a specific keylayout file for
a specific application? This is what I really need.

Thanks in advance!

Kathrin-J.

-- 
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 suggestion on architecture.

2012-01-26 Thread Vasudev Sharma
Hi All,
I have experience working of with Linux platform but I am quiet new to
Android, I need suggestion with the new architecture of an existing
application while porting from Linux to Android.

I have created a custom hardware device and connected to Linux PC.
1. there is a demon application (written in C++ and acts as server)
which continuously reads from device and provides a shared memory
interface.
2. I have created a C++ client library which encapsulates the shared
memory call and provides a simplified interface, so that any developer
can use the libraries and do IO with custom hardware.

As someone with understanding of Android system, how would you design
the architecture?
Do you think running the C++ application as demon with socket for IPC
is a good idea?

my goal is to avoid re-writing code as much as possible and to provide
a new JNI interface to android applications.

-Vasudev

-- 
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 check SNS(twitter,Google+,google talk) functionality in Android4.0(ICS)

2012-01-26 Thread rakesh kumar
Hi,

  (1) Can any one tell how we can check the SNS(twitter,Google
+,google talk) functionality in Android4.0.
  (2) Can any one tell How we can register emulator with an google
account.


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] Javascript injection not working reliably

2012-01-26 Thread cqm
Hello, I am loading webviews in a viewpager.

I do the javascript injection onPageFinishedLoading but it doesn't
reliably work, it should be changing some elements in the CSS but it
does not respond


-- 
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] Issue in playing m3u8 file in android 3.2

2012-01-26 Thread titus t
I am trying to play apple test stream video(.m3u8) in android

this is the link: 
http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8

But i am not able to play in android 3.2.

This is the code i have used to play the video

 void playvideo(String url)
{
  MediaController mc = new MediaController(this);
  mc.setMediaPlayer(videoview);
  videoview.setMediaController(mc);
 videoview.setVideoURI(Uri.parse(http://devimages.apple.com/iphone/
samples/bipbop/gear1/prog_index.m3u8));
  videoview.requestFocus();
  videoview.start();

 }
Please suggest me the way to play m3u8 file in different android
versions

-- 
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: Gallery Intent to pick image --- Picasa-based images are invalid (Android 4.0+)

2012-01-26 Thread Anton
Workaround is here:

http://jimmi1977.blogspot.com/2012/01/android-api-quirks-getting-image-from.html

On Jan 8, 7:57 pm, John droidxl...@gmail.com wrote:
 I can confirm having this same bug only with picasa images on
 Honeycomb and ICS.

 Code:

 file = new File(getPath(intent.getData()));

 java.lang.RuntimeException: Failure delivering result
 ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://
 com.google.android.gallery3d.provider/picasa/item/
 5685218575016337410 }} to activity {MyActivity}:
 java.lang.NullPointerException
         at android.app.ActivityThread.deliverResults(ActivityThread.java:
 2976)
         at android.app.ActivityThread.handleSendResult(ActivityThread.java:
 3019)
         at android.app.ActivityThread.access$1100(ActivityThread.java:122)
         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:
 1176)
         at android.os.Handler.dispatchMessage(Handler.java:99)
         at android.os.Looper.loop(Looper.java:137)
         at android.app.ActivityThread.main(ActivityThread.java:4340)
         at java.lang.reflect.Method.invokeNative(Native Method)
         at java.lang.reflect.Method.invoke(Method.java:511)
         at com.android.internal.os.ZygoteInit
 $MethodAndArgsCaller.run(ZygoteInit.java:784)
         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
         at dalvik.system.NativeStart.main(Native Method)
 Caused by: java.lang.NullPointerException
         at java.io.File.fixSlashes(File.java:185)
         at java.io.File.init(File.java:134)
         at MyActivity.onActivityResult(MyActivity.java:184)
         at android.app.Activity.dispatchActivityResult(Activity.java:4649)
         at android.app.ActivityThread.deliverResults(ActivityThread.java:
 2972)
         ... 11 more
 java.lang.NullPointerException
         at java.io.File.fixSlashes(File.java:185)
         at java.io.File.init(File.java:134)
         at MyActivity.onActivityResult(MyActivity.java:184)
         at android.app.Activity.dispatchActivityResult(Activity.java:4649)
         at android.app.ActivityThread.deliverResults(ActivityThread.java:
 2972)
         at android.app.ActivityThread.handleSendResult(ActivityThread.java:
 3019)
         at android.app.ActivityThread.access$1100(ActivityThread.java:122)
         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:
 1176)
         at android.os.Handler.dispatchMessage(Handler.java:99)
         at android.os.Looper.loop(Looper.java:137)
         at android.app.ActivityThread.main(ActivityThread.java:4340)
         at java.lang.reflect.Method.invokeNative(Native Method)
         at java.lang.reflect.Method.invoke(Method.java:511)
         at com.android.internal.os.ZygoteInit
 $MethodAndArgsCaller.run(ZygoteInit.java:784)
         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
         at dalvik.system.NativeStart.main(Native Method)







 Andrew wrote:
  Hello,

  I'm trying to launch a Gallery Intent to allow the user to select an
  image. The issue is that the code works on 2.x but fails occasionally
  on 4.x (I haven't tested 3.x). I've narrowed it down to issues
  specific to Picasa-sourced images. For example, from my google+ posts
  (still in the Gallery app).

  The problematic URI is content://
  com.google.android.gallery3d.provider/picasa/item/some ID.
  Attempting to retrieve the image local path gives me the error : W/
  GalleryProvider( 8091): unsupported column: _data

  My code is below:

  Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);
  photoPickerIntent.setType(image/*);
  startActivityForResult(photoPickerIntent, PROFILE_PIC_RESULT);

  and then in onActivityResult(int requestcode, int resultcode, Intent
  data) :

  if(requestCode == PROFILE_PIC_RESULT  resultCode == RESULT_OK){
      Uri selectedImage = data.getData();
           String[] filePathColumn = {MediaStore.Images.Media.DATA};
      Cursor cursor = getContentResolver().query(selectedImage,
  filePathColumn, null, null, null);
      cursor.moveToFirst();

           int columnIndex =
  cursor.getColumnIndexOrThrow(filePathColumn[0]);
      String filePath = cursor.getString(columnIndex);
  }

  In 2.x, filePath will contain a useful string. In 4.x, filePath is
  null on some images because of the issue noted above.

  I found a similar bug report that seems to be suffering from the above
  problem:http://code.google.com/p/android/issues/detail?id=21234

  Can anyone confirm? I might need to submit another bug report on this
  issue.. because it's frustrating that some images a user might pick
  will be invalid while others will be okay.

-- 
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] Android AVD simulator won't run Apps with XML Readers`

2012-01-26 Thread duadinam
Hi,

I've been given an assignment to create an RSS feed reader.  The
project compiles, but I can't run it with any of the AVD's.  It starts
running and then it shuts down without displaying any views.  Other
applications works, but applications with XML readers that I
downloaded also crash.

If anybody has any ideas about what I should do to fix this, I would
really appreciate your help.

 I've copied the logcat files here:

01-24 18:57:16.782: W/dalvikvm(361): threadid=1: thread exiting with
uncaught exception (group=0x4001d800)
01-24 18:57:16.898: E/AndroidRuntime(361): FATAL EXCEPTION: main
01-24 18:57:16.898: E/AndroidRuntime(361): java.lang.RuntimeException:
Unable to instantiate activity ComponentInfo{ca.mobicartel/
ca.mobicartel.BlogTOActivity}: java.lang.ClassNotFoundException:
ca.mobicartel.BlogTOActivity in loader dalvik.system.PathClassLoader[/
data/app/ca.mobicartel-1.apk]
01-24 18:57:16.898: E/AndroidRuntime(361):  at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2585)
01-24 18:57:16.898: E/AndroidRuntime(361):  at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2679)
01-24 18:57:16.898: E/AndroidRuntime(361):  at
android.app.ActivityThread.access$2300(ActivityThread.java:125)
01-24 18:57:16.898: E/AndroidRuntime(361):  at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
01-24 18:57:16.898: E/AndroidRuntime(361):  at
android.os.Handler.dispatchMessage(Handler.java:99)
01-24 18:57:16.898: E/AndroidRuntime(361):  at
android.os.Looper.loop(Looper.java:123)
01-24 18:57:16.898: E/AndroidRuntime(361):  at
android.app.ActivityThread.main(ActivityThread.java:4627)
01-24 18:57:16.898: E/AndroidRuntime(361):  at
java.lang.reflect.Method.invokeNative(Native Method)
01-24 18:57:16.898: E/AndroidRuntime(361):  at
java.lang.reflect.Method.invoke(Method.java:521)
01-24 18:57:16.898: E/AndroidRuntime(361):  at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:868)
01-24 18:57:16.898: E/AndroidRuntime(361):  at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
01-24 18:57:16.898: E/AndroidRuntime(361):  at
dalvik.system.NativeStart.main(Native Method)
01-24 18:57:16.898: E/AndroidRuntime(361): Caused by:
java.lang.ClassNotFoundException: ca.mobicartel.BlogTOActivity in
loader dalvik.system.PathClassLoader[/data/app/ca.mobicartel-1.apk]
01-24 18:57:16.898: E/AndroidRuntime(361):  at
dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
01-24 18:57:16.898: E/AndroidRuntime(361):  at
java.lang.ClassLoader.loadClass(ClassLoader.java:573)
01-24 18:57:16.898: E/AndroidRuntime(361):  at
java.lang.ClassLoader.loadClass(ClassLoader.java:532)
01-24 18:57:16.898: E/AndroidRuntime(361):  at
android.app.Instrumentation.newActivity(Instrumentation.java:1021)
01-24 18:57:16.898: E/AndroidRuntime(361):  at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2577)
01-24 18:57:16.898: E/AndroidRuntime(361):  ... 11 more
01-24 18:58:42.427: I/Process(361): Sending signal. PID: 361 SIG: 9

-- 
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] creating and reading files

2012-01-26 Thread agostino aless
File file = new File(General.getPath());
if(!file.exists())
{
file.createNewFile();
}
System.out.println(path del file:  + 
file.toString());
if(file.exists()  file.canWrite())
{
System.out.println(beginning list);
Toast.makeText(getApplicationContext(), 
Buon utilizzo!,
Toast.LENGTH_LONG).show();
//riempimento del listview delle 
sezioni già create
ListView lista = (ListView) 
findViewById(R.id.listView1);
ArrayListString listaSezioni = new 
ArrayListString();
listaSezioni.clear();

System.out.println(qui);
BufferedReader streami = new 
BufferedReader(new
FileReader(General.getPath()));
String riga = null;

can enyone say me why my snippet locks on File.createNewFile();
(although that file has been already creating in the previous instance
of the app)???
General.getPath(); is a static method that returns
listaBigliettini.txt.

-- 
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] GPS multipath errors filtering?

2012-01-26 Thread Dmitry Zhadan
Hello!

I'm develop an application which uses GPS to periodically determine
user location. The problem is that when the user is stationary, the
successive locations comes with a large jumps in latitude and
longitude (up to 100 meters).
Is there any way to filter out these jumps (also known as GPS
multipath errors)?
For obtaining locations, I'm use requestLocationUpdates(...) with 0.0
minDistance parameter and interval (minTime) between 30 and 90 s
(depending on network availability for sending locations and battery
state).

-- 
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] Fragments with custom list adapter causing crash on inflate view

2012-01-26 Thread Ste
I am attempting to convert one of my apps to use Fragments to improve
how the app looks and works on ICS / Honeycomb but I've come across a
problem which although I've spent many hours Googleing and reading
answers on here I can't seem to find a fix for.

I have a custom list adapter which is used to display some info I get
from an sqllite db. It worked fine before I tried to convert to
fragments when it was being displayed in an activity.

However when I try and put the ListView into a fragment the app FC
with the following error:

W/dalvikvm(  540): threadid=1: thread exiting with uncaught
exception (group=0x4
09951f8)
E/AndroidRuntime(  540): FATAL EXCEPTION: main
E/AndroidRuntime(  540): java.lang.NullPointerException
E/AndroidRuntime(  540):at
com.msi.shortwave.FreqAdaptor.getView(FreqAda
ptor.java:43)
E/AndroidRuntime(  540):at
android.widget.AbsListView.obtainView(AbsList
View.java:2033)
E/AndroidRuntime(  540):at
android.widget.ListView.makeAndAddView(ListVi
ew.java:1772)
E/AndroidRuntime(  540):at
android.widget.ListView.fillDown(ListView.jav
a:672)
E/AndroidRuntime(  540):at
android.widget.ListView.fillFromTop(ListView.
java:732)
E/AndroidRuntime(  540):at
android.widget.ListView.layoutChildren(ListVi
ew.java:1625)
E/AndroidRuntime(  540):at
android.widget.AbsListView.onLayout(AbsListVi
ew.java:1863)
E/AndroidRuntime(  540):at
android.view.View.layout(View.java:11158)
E/AndroidRuntime(  540):at
android.view.ViewGroup.layout(ViewGroup.java:
4197)
E/AndroidRuntime(  540):at
android.widget.LinearLayout.setChildFrame(Lin
earLayout.java:1628)
E/AndroidRuntime(  540):at
android.widget.LinearLayout.layoutVertical(Li
nearLayout.java:1486)
E/AndroidRuntime(  540):at
android.widget.LinearLayout.onLayout(LinearLa
yout.java:1399)
E/AndroidRuntime(  540):at
android.view.View.layout(View.java:11158)
E/AndroidRuntime(  540):at
android.view.ViewGroup.layout(ViewGroup.java:
4197)
E/AndroidRuntime(  540):at
android.widget.LinearLayout.setChildFrame(Lin
earLayout.java:1628)
E/AndroidRuntime(  540):at
android.widget.LinearLayout.layoutHorizontal(
LinearLayout.java:1617)
E/AndroidRuntime(  540):at
android.widget.LinearLayout.onLayout(LinearLa
yout.java:1401)
E/AndroidRuntime(  540):at
android.view.View.layout(View.java:11158)
E/AndroidRuntime(  540):at
android.view.ViewGroup.layout(ViewGroup.java:
4197)
E/AndroidRuntime(  540):at
android.widget.LinearLayout.setChildFrame(Lin
earLayout.java:1628)
E/AndroidRuntime(  540):at
android.widget.LinearLayout.layoutVertical(Li
nearLayout.java:1486)
E/AndroidRuntime(  540):at
android.widget.LinearLayout.onLayout(LinearLa
yout.java:1399)
E/AndroidRuntime(  540):at
android.view.View.layout(View.java:11158)
E/AndroidRuntime(  540):at
android.view.ViewGroup.layout(ViewGroup.java:
4197)
E/AndroidRuntime(  540):at
android.widget.FrameLayout.onLayout(FrameLayo
ut.java:431)
E/AndroidRuntime(  540):at
android.view.View.layout(View.java:11158)
E/AndroidRuntime(  540):at
android.view.ViewGroup.layout(ViewGroup.java:
4197)
E/AndroidRuntime(  540):at
android.widget.LinearLayout.setChildFrame(Lin
earLayout.java:1628)
E/AndroidRuntime(  540):at
android.widget.LinearLayout.layoutVertical(Li
nearLayout.java:1486)
E/AndroidRuntime(  540):at
android.widget.LinearLayout.onLayout(LinearLa
yout.java:1399)
E/AndroidRuntime(  540):at
android.view.View.layout(View.java:11158)
E/AndroidRuntime(  540):at
android.view.ViewGroup.layout(ViewGroup.java:
4197)
E/AndroidRuntime(  540):at
android.widget.FrameLayout.onLayout(FrameLayo
ut.java:431)
E/AndroidRuntime(  540):at
android.view.View.layout(View.java:11158)
E/AndroidRuntime(  540):at
android.view.ViewGroup.layout(ViewGroup.java:
4197)
E/AndroidRuntime(  540):at
android.view.ViewRootImpl.performTraversals(V
iewRootImpl.java:1462)
E/AndroidRuntime(  540):at
android.view.ViewRootImpl.handleMessage(ViewR
ootImpl.java:2382)
E/AndroidRuntime(  540):at
android.os.Handler.dispatchMessage(Handler.ja
va:99)
E/AndroidRuntime(  540):at
android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(  540):at
android.app.ActivityThread.main(ActivityThrea
d.java:4340)
E/AndroidRuntime(  540):at
java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime(  540):at
java.lang.reflect.Method.invoke(Method.java:5
11)
E/AndroidRuntime(  540):at
com.android.internal.os.ZygoteInit$MethodAndA

[android-developers] sending mms

2012-01-26 Thread Norman Rosano
dear friends,
looking for help.. earlier i'm sending mms and i did it.. but this
few day i'll try to send another mms.. and nothing happened.. until
this time the message still sending.. i send this message last Jan 20
What happened?! my unit is samsung Y.. what should i do for this..
thanks and hope ur 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] android help

2012-01-26 Thread ajay talreja
hii
i'm an beginner in android...
My problem in android...
i want to send sms from a numeric touch pad via programming..
i m not able to find how to put up the code for numeric pad.i did
google many times but im unable to find the same.the application
should work same as  speed  dialrather than call,a sms will be
sent..Im acquaint with  Sms sending,database connectivity.i
need the code to put my app working at press of any numeric key

if this is not possible to make changes at Numeric pad,then help me
for my other alternative to this...when application's shortcut is
made

condition

if a normal press is encountered, setting activity should get opened
and when long pressed ,sms should be sent without asking for
anything...

please help ..how to distinguish between single click and long pressed
events via coding.


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] unabke to browse site in urdu

2012-01-26 Thread Rizwan Arif
Hi m unable to browse following website on galaxy s2. It opens bt body
is blank
. its www.express.com.pk

-- 
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] Read XML file in android application

2012-01-26 Thread Mai Al-Ammar
Hello every one,

Could you please help me with a way to read an XML file in android
application, I use Android SDK with eclipse and I tried number of ways but
unfortunately I did not obtain any result. Almost all ways said put the xml
file under the directory res/xml/ , but when I put it and refer to it as :
R.xml.my_xml_name, xml unresolved by compiler since the R.java which is
generated automatically did not refresh itself and put xml folder as for
other folders.

please help me I have to prepare a big project with android and I still a
beginner :(

-- 
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: Hardware accleration slow down every Canvas app. Why?

2012-01-26 Thread Tobias
Would it be possible to have the framework batch rendering operations
automatically by using some kind of retained mode rendering, to make
life easier for developers?

/Tobias

On 17 Jan, 00:47, Romain Guy romain...@android.com wrote:
  I Romain I really appreciate your effort to help me, really thanks for
  this
  but I don't know if you are trying to avoid to admit an android flaw
  or if
  you are convinved of what you are saying.

 I am not avoiding anything but you have failed to far to provide me
 with something I could use to find such a flaw and fix it.

  I'm quite graphics oriented (console, pc, tablet, mobiles, embedded
  devices) and I never seen a platform that needs 20x the horse power
  for a doubled resolution :)

 Me neither, but you could be bandwidth limited for instance. Again,
 the CPU has nothing to do with performance of the GPU so this
 discussion is really not helpful. If your performance in software is
 good enough, there is no point in drawing a comparison with other
 devices that also run in software.

  My apps draws line and rect as I saied and uses StaticLayout to write
  on canvas with the correct wrapping.
  this simple codes require double the time
  for (i = 0; i  640; i++) {
     g.drawLine(0, alt + i, 360, alt + i, paint);
  }

 This piece of code is exactly what I was talking about in previous
 message. Sending 640 rendering instructions to the GPU is extremely
 expensive. The CPU will perform a lot better at this. Changing this
 loop to a single drawLines() will likely fix the issue.

  On my feature phone this code is drawn at the light speed, on galaxy
  nexus it is slow not tested
  but surely slower with hw acc on.

 See why above.

  Your suggestion is great and reasonable but why we should use
  something that we don't need
  with such a huge amount of horse power? Don't you think if a feature
  phone, a bada phone,
  a windows phone, a blackberry phone, can do this also android should
  do this?

 Again, the problem is that a GPU performs very differently from a CPU.
 Batching rendering operations is one of the best optimizations you can
 do when running on the GPU.

  In any case on the android documentation (API Level 11) I finded that
  drawLines() doesn't support antialiasing:
 http://developer.android.com/guide/topics/graphics/hardware-accel.html
  why do you call this a bug?

 This documentation is out of date. Antialiasing is supported with
 drawLine() and drawLines() as of API level 12 or 13.

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


[android-developers] Re: Gallery Intent to pick image --- Picasa-based images are invalid (Android 4.0+)

2012-01-26 Thread Anton
Workaround is described here: 

http://jimmi1977.blogspot.com/2012/01/android-api-quirks-getting-image-from.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] Questions about Permission

2012-01-26 Thread john an
I am unfamilier with android and programming. I want to know about
what each permission implies. I already found out the descriptions of
them on the website of android developer, but it is really difficult
for me to understand unfamiliar and expert words exactly. My ultimate
purpose is to recognize operating functions and features in the phone
by only checking permission list when appls are using.

please, give me your advices on my questions and where the good site
explainng about permissions's features well is.

-- 
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] Creating an application to edit photos

2012-01-26 Thread Soorie
Hi All,

I want to create an application where I can edit user's photos.
Editing here will involve many options like painting eye brows,
changing face color, applying lipstick of different colors in lips,
applying eye liner, changing hair style etc.

I have tried to search for android APIs to do this. But I got no
success.

So I need urgent help on this. Any reference to APIs and code will
work.
Please provide answers of following queries:
1. What are APIs which involved photo editing as mentioned above?
2. If any reference code please provide links.
3. Will such an application need native library support?

I request you all to please provide answers for above queries as I am
stuck at this start level :(

Thank you in advance,
Suresh Pal

-- 
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 a keylayout file?

2012-01-26 Thread Kathrin-J.
Hi,

I'm using the DDMS for debugging my application. Each time I press a button 
a warning is thrown:

*No keyboard for id 0 
Using default keymap: /system/usr/keychars/qwerty.kcm.bin*

I found commands to set the keychar and keylaout to a specific file, but it 
does not work :( I'm typing this commands using the DevTools/'Terminal 
Editor'. 

*setprop android.keylayout.azerty /etc/keymaps/azerty.kl 
setprop android.keychar.azerty /etc/keymaps/azerty.kcm.bin*

Any ideas what else has to be done to set a different keylayout file as 
default? 

Another question: Is it possible to set a specific keylayout file for a 
specific application? This is what I really need. 

Thanks in advance!

Kathrin-J.

-- 
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] Installation Troubleshooting SDK Manager inside Eclipse

2012-01-26 Thread DragonPaul
Hi all, thanks for this forum- it's great to see so many people
helping each other out.
I am installing several platforms (4.0.3, 2.3, and 2.2) and am running
into trouble when downloading certain components within Eclipse's SDK
mgr. Mainly, when downloading and installing 'Dual-screen APIs by
KYOCERA corp' and 'Real3D by LGE'. I have tried multiple times, and
have rebooted my system, closed Eclipse and reopened it, and it still
downloads the files and states Done loading packages but each time I
check, they're still not installed.
Your help is 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] AlarmManager does not fire?

2012-01-26 Thread Rudolf Polzer
Please give me a hint why the AlarmManager does not fire.
In my app, the AlarmManager is set after a user action:

   Context c = this.getApplicationContext();
   AlarmManager am =
(AlarmManager)c.getSystemService(Context.ALARM_SERVICE);
   Intent i = new Intent(c, OnAlarmReceiver.class);
   PendingIntent pi = PendingIntent.getBroadcast(c, 0, i, 0);
   am.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() + 1,
pi);

The + 1 is for testing - this numer will be replaced by a bigger
one.
The manifest file contains

receiver android:name=.OnAlarmReceiver/receiver

And the alarm receiver code is never executed:

 public class OnAlarmReceiver extends BroadcastReceiver {
  @Override
  public void onReceive(Context context, Intent intent) {
  // ...code here is never executed
  }
 }

-- 
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] Connect Android 2.3.4 Tablet to SMART Board interactive whiteboard

2012-01-26 Thread bitxin
Hello to everybody:

I'm trying to connect my Android 2.3.4 Tablet to a SMART Board
interactive whiteboard (SMART Technologies/www.smarttech.com) through
an USB OTG cable.

I just want to turn the SMART Board interactive whiteboard into my
Tablet's desktop and manage everything as if it were my tablet but in
a bigger screen.

Is there any software for Android to make this possible? Must do
changes in my Tablet`s configuration?

Thanks for your 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] ICS 4.0.3 SimpleJNI apk does not contain classes.dex

2012-01-26 Thread pk_android
Hi,
I have downloaded ICS 4.0.3. source from repo and built SDK in ubuntu
10.04 (64 bit).  I built SimpleJNI apk from development/samples. When
i try to install SimpleJNI.apk into emulator it does not install
because apk does not contain classes.dex

But if i build in gingerbread SDK ( source downloaded from repo).
SimpleJNI apk does contain classes.dex

Is this bug with ICS SDK? Is there fix for 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] NDEF_DISCOVERED intent-filter in ICS

2012-01-26 Thread bcntouchkk
Hi there,
I've discovered a strange behaviour in Android Ice Cream Sandwich.
Previously a discovery of an NFC tag containing URL was passing
through the intent-filter and showing possible applications for
handling this content.

In ICS 4.0.3 URI's are handled directly in the browser and intent-
filters seem to be ignored

There's a possibility of adding Android Application Record (AAR) to
the NdefMessage (i.e. as a second record) which is pushed to the
device or written to a tag, but there are some problems associated
with this solution.

1) When application is started through AAR, it is done by the
action.MAIN not the NDEF_DISCOVERED
2) When application is not installed, user is forced to go to the
market, no option to just view the URI without installing the app

So the question are:
- how to handle NDEF_DISCOVERED when the my app is _not_ in the
foreground?
- how to give the user a choice to install the app (defined in AAR) or
just open the link? (other NFC-enabled devices will just open the
link)

Thanks,
Krzysztof

-- 
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] SDK for FM radio

2012-01-26 Thread LazyDeveloper
I am interested in building a FM radio app. Does Android SDK provides
any related API?

-- 
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 pass information to motoprint.

2012-01-26 Thread Matt Glover
I am very new to coding for android. My senior project is a new
android app and I am having an issue with part of the functionality.
In its most basic form, I need to pass a sqllite New Entry to a
wireless motoprint printer.

A little deeper:
I will be updating a database in the application. Every time a value
is increased by 1 and a btnSubmit is clicked, I need to wirelessly
print the change, time stamp, and who did it. I have no idea where to
even start and have spend many hours googeling the issue. From what I
have read I have gathered that you can pass an intent to other
applications and also get responses from them. Such as; if You needed
to read in a bar code, your application would start the activity bar
code reader app. Then after a bar code has been entered pass that
information into the application then destroy the bar code reader
activity. Is this right? Can it be applied to moto print? Is there any
sample code out there?

Any advice will be helpful.

-- 
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] USB communication on Samsung Galaxy y with Android 2.3.5

2012-01-26 Thread Muhammad Ghandour
   I'm Developing an Android app to communicate with a USB peripheral,
The App is designed for a non-commercial purpose so it is gonna run
only on a Samsung Galaxy young with Android 2.3.5.

After a bit of searching i used the Google APIs add-on library
com.android.future.usb i went through the tutorial on the code.android
website http://developer.android.com/guide/topics/usb/accessory.html

but when i deployed the app on the Galaxy y it came up with the 
INSTALL_FAILED_MISSING_SHARED_LIBRARY corresponding to the tag in
the .xml file from my understanding that appears if the phone doesn't
include this shared lib specifically as at the end of the day the .jar
is not gonna be added to the .apk file and it's just a stub to develop
your application but the complete lib should be installed already on
your Android, and Galaxy y with Android 2.3.5 doesn't come with that
shared lib com.android.future.usb

Is there a way to overcome this problem or what to do to communicate
with a USB peripheral on that Phone?!!

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] My First android programming

2012-01-26 Thread Sahar Harati
Hi!

I'm new in android programming.
I've developed a program that works perfectly on android emulator but
I don't know how can I install it on my android device.

thank you in advanced :)

-- 
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] Eclipse launch emulator error...

2012-01-26 Thread stringa
Hello.  There was a time where I tried to setup an emulator launch
option in Eclipse, since then, I have removed the string.  I keep
getting the following error.  I've reinstalled the SDK, I've deleted
and re-created the project from my SVN sources and I keep getting this
error in Eclipse.

[2012-01-25 21:41:45 - Emulator] unknown option: -package-size
[2012-01-25 21:41:45 - Emulator] please use -help for a list of valid
options

I don't know how to get rid of this.

I would love some help,

Thanks,
stringa

-- 
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] GridView application keeps crashing

2012-01-26 Thread Sudheer
Hi,

I am new to android, my application keeps crashing with the following
errors. I am using API Level 15.

`01-26 19:50:45.820: E/AndroidRuntime(963): FATAL EXCEPTION: main
01-26 19:50:45.820: E/AndroidRuntime(963):
java.lang.NullPointerException
01-26 19:50:45.820: E/AndroidRuntime(963):  at
my.grid.view.DataAdapter.getView(DataAdapter.java:62)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
android.widget.AbsListView.obtainView(AbsListView.java:2012)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
android.widget.GridView.makeAndAddView(GridView.java:1323)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
android.widget.GridView.makeRow(GridView.java:328)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
android.widget.GridView.moveSelection(GridView.java:885)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
android.widget.GridView.layoutChildren(GridView.java:1230)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
android.widget.GridView.setSelectionInt(GridView.java:1476)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
android.widget.GridView.arrowScroll(GridView.java:1729)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
android.widget.GridView.commonKey(GridView.java:1543)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
android.widget.GridView.onKeyDown(GridView.java:1494)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
android.view.KeyEvent.dispatch(KeyEvent.java:2551)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
android.view.View.dispatchKeyEvent(View.java:5500)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1242)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1246)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1246)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1246)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
com.android.internal.policy.impl.PhoneWindow
$DecorView.superDispatchKeyEvent(PhoneWindow.java:1879)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
com.android.internal.policy.impl.PhoneWindow.superDispatchKeyEvent(PhoneWindow.java:
1361)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
android.app.Activity.dispatchKeyEvent(Activity.java:2324)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
com.android.internal.policy.impl.PhoneWindow
$DecorView.dispatchKeyEvent(PhoneWindow.java:1806)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
android.view.ViewRootImpl.deliverKeyEventPostIme(ViewRootImpl.java:
3327)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
android.view.ViewRootImpl.handleFinishedEvent(ViewRootImpl.java:
3300)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2460)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
android.os.Handler.dispatchMessage(Handler.java:99)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
android.os.Looper.loop(Looper.java:137)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
android.app.ActivityThread.main(ActivityThread.java:4424)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
java.lang.reflect.Method.invokeNative(Native Method)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
java.lang.reflect.Method.invoke(Method.java:511)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:784)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
01-26 19:50:45.820: E/AndroidRuntime(963):  at
dalvik.system.NativeStart.main(Native Method)`
main.xml

`
?xml version=1.0 encoding=utf-8?
GridView xmlns:android=http://schemas.android.com/apk/res/android;
android:id=@+id/gridview
android:stretchMode=columnWidth
android:cacheColorHint=#
android:layout_width=fill_parent
android:layout_height=fill_parent
android:numColumns=1
android:clipChildren=true
android:horizontalSpacing=3dip
android:verticalSpacing=3dip /`


customgrid.xml
--
`
?xml version=1.0 encoding=utf-8?
LinearLayout
xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=fill_parent
android:layout_height=fill_parent
android:orientation=vertical
TableLayout
android:id=@+id/TableLayout01
android:layout_height=wrap_content
android:layout_width=fill_parent
TableRow
android:id=@+id/TableRow01
android:layout_height=wrap_content
android:layout_width=wrap_content
TextView
android:text=@string/hello
  

[android-developers] NfcAdapter.enableForegroundNdefPush(Activity, NdefMessage message) and Serial Number

2012-01-26 Thread snoopy
Hello!

When sharing a virtual tag using the enableForegroundNdefPush of an
NfcAdapter instance object, i try to read the so-shared ndef message
with my desktop reader (ID ISC CPR 40.30 USB).

Well, it won't work.

As I got by debugging, my reader works in addressed mode.
That is, I first run the inventory procedure, and get the Serial
(something like FE7CE608) and then, in addressed mode, i can read data
blocks from a tag by addressing it with it serial number.

I'd like to do the same with my android phone, but discovered that my
android phone's serial number changes at every inventory!!

Is there a way to make it fixed ??

p.s: some one else out there is using Feig ID CPR40.30 USB ?

-- 
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] AutoCompleteTextView suggestions select take user to the interface.

2012-01-26 Thread Kenneth Lor
So say i am tring to use the AutoCompleteTextView suggestions to be
able to bring user to the .xml i have created. If you cant understand
please have a look here 
http://stackoverflow.com/questions/8997684/autocompletetextview-or-searchdialog

Here are my codes, i marked errors in comment //

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;

public class Search extends Activity
{
public void onCreate(Bundle savedInstanceSate)
{
super.onCreate(savedInstanceSate);
setContentView(R.layout.searchshop);

AutoCompleteTextView autoComplete = (AutoCompleteTextView)
findViewById(R.id.autoCompleteTextView1);
ArrayAdapterString adapter = new ArrayAdapterString(this,
R.layout.list_item, shops);
autoComplete.setAdapter(adapter);
autoComplete.setThreshold(1);
autoComplete.setOnItemClickListener(new OnItemClickListener() {

@Override
public void onItemClick(AdapterView? arg0, View arg1, int
position,
long arg3) {

Intent intent;
int index=999;
for(int i=0;ishops.length;i++)
{
//Cannot refer to a non-final variable autoComplete
inside an inner class defined in a different method

if(shops[i].equals(autoComplete.getText().toString().trim()))
{
index=i;
break;
}
}
switch(index)
{
case 0:
//The constructor Intent(Search, int) is 
undefined
intent=new Intent(Search.this, R.layout.adidas);
startActivity(intent);
setContentView(R.layout.adidas);
break;
case 1:
//The constructor Intent(Search, int) is 
undefined
intent=new Intent(Search.this, R.layout.affin);
startActivity(intent);
setContentView(R.layout.affin);
break;
}
}
});


}
static final String[] shops = new String[]
{
Adidas,  Affin Bank, Alam Art, Al Amin

};
}

-- 
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] getting started

2012-01-26 Thread Android Developer
when did you guys get started working on android and why did you
start? Is it possible to be a serious Android developer and also hold
another non-related 9-5 job?

-- 
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] HorizontalScrollView with Scrolbar

2012-01-26 Thread chimouch
i have a horizontalscrollview but i want disable the scrolling when
touching on items, and the scroll will be done only by the
scrolbar,because i would like to use a multiselection.

-- 
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] Help please. nand renamed sdcard

2012-01-26 Thread pers348 pers348
I have a problem after climbing into androide 2.3. I renamed nand in
sdcard how is this possible? Can you help me get her back.

-- 
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] My First android programming

2012-01-26 Thread Mark Murphy
http://developer.android.com/guide/developing/device.html

On Thu, Jan 26, 2012 at 8:44 AM, Sahar Harati saharati2...@gmail.com wrote:
 Hi!

 I'm new in android programming.
 I've developed a program that works perfectly on android emulator but
 I don't know how can I install it on my android device.

 thank you in advanced :)

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

Android Training in DC: http://marakana.com/training/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] SDK for FM radio

2012-01-26 Thread Mark Murphy
No, sorry, there is no support for FM radio in the Android SDK. Not
all Android phones have FM radio tuners. Manufacturers who do offer a
tuner might have their own SDK add-ons for FM radio control, but you
would have to check with them.

On Thu, Jan 26, 2012 at 3:27 AM, LazyDeveloper lokesh.va...@gmail.com wrote:
 I am interested in building a FM radio app. Does Android SDK provides
 any related API?

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

Android Training in DC: http://marakana.com/training/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] How to pass information to motoprint.

2012-01-26 Thread Mark Murphy
For questions about MOTOPRINT, you are probably better served with the
MOTODEV support boards:

http://community.developer.motorola.com/

On Wed, Jan 25, 2012 at 11:13 PM, Matt Glover mattcglo...@gmail.com wrote:
 I am very new to coding for android. My senior project is a new
 android app and I am having an issue with part of the functionality.
 In its most basic form, I need to pass a sqllite New Entry to a
 wireless motoprint printer.

 A little deeper:
 I will be updating a database in the application. Every time a value
 is increased by 1 and a btnSubmit is clicked, I need to wirelessly
 print the change, time stamp, and who did it. I have no idea where to
 even start and have spend many hours googeling the issue. From what I
 have read I have gathered that you can pass an intent to other
 applications and also get responses from them. Such as; if You needed
 to read in a bar code, your application would start the activity bar
 code reader app. Then after a bar code has been entered pass that
 information into the application then destroy the bar code reader
 activity. Is this right? Can it be applied to moto print? Is there any
 sample code out there?

 Any advice will be helpful.

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

Android Training in DC: http://marakana.com/training/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] AlarmManager does not fire?

2012-01-26 Thread Mark Murphy
Nothing leaps out at me as being wrong, other than
getApplicationContext() (just use this instead of c). But that should
not cause a problem. Make sure that this section of code is being
executed, and make sure there are no warnings of note in LogCat.

On Thu, Jan 26, 2012 at 3:50 AM, Rudolf Polzer rudolf.pol...@i-r-p.de wrote:
 Please give me a hint why the AlarmManager does not fire.
 In my app, the AlarmManager is set after a user action:

   Context c = this.getApplicationContext();
   AlarmManager am =
 (AlarmManager)c.getSystemService(Context.ALARM_SERVICE);
   Intent i = new Intent(c, OnAlarmReceiver.class);
   PendingIntent pi = PendingIntent.getBroadcast(c, 0, i, 0);
   am.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() + 1,
 pi);

 The + 1 is for testing - this numer will be replaced by a bigger
 one.
 The manifest file contains

    receiver android:name=.OnAlarmReceiver/receiver

 And the alarm receiver code is never executed:

  public class OnAlarmReceiver extends BroadcastReceiver {
  @Override
  public void onReceive(Context context, Intent intent) {
  // ...code here is never executed
  }
  }

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

Android Training in DC: http://marakana.com/training/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] How to change the behaviour of an activity at runtime?

2012-01-26 Thread Mark Murphy
On Wed, Jan 25, 2012 at 1:41 AM, david wang davidwangc...@gmail.com wrote:
  I need to start a target activity at runtime, and disable some
 buttons (such as BACK and HOME button) for it, these button are
 enabled by default in the implementation of the target activity.

You cannot disable the HOME button.

  Since the target activity is configurable, I don't know which
 activity it is until runtime. And a requirement is that I can't change
 the source code of all the potential target activities.

  The only way I can think of is changing the method behaviour of the
 target activity when I know which target it is, such as onKeyDown()
 and onAttachedToWindow(). Anybody knows how to do this change at
 runtime?

That is not possible.

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

Android Training in DC: http://marakana.com/training/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] External Data Storage

2012-01-26 Thread Mark Murphy
On Tue, Jan 24, 2012 at 5:40 AM, Punam Mahajan punam.0...@gmail.com wrote:
 -How to create directory within directory on external storage? like
 directory MyFile in that different types of directory like
 songs,pictures,etc

Use Java file I/O:

http://exampledepot.com/egs/java.io/CreateDir.html

 -can I see It on Emulator?

Yes.

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

Android Training in DC: http://marakana.com/training/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] SQLiteDatabase.execSQL() not behaving as expected

2012-01-26 Thread Mark Murphy
I have never used MATCH in SQLite. The LIKE operator uses %, not *, as
the wildcard.

http://sqlite.org/lang_expr.html

On Tue, Jan 24, 2012 at 10:45 AM, Robert Hawkey rhaw...@gmail.com wrote:
 Hi everyone,

 I have an app I wrote for the iOS that makes extremely heavy use of a
 large database, I am now porting that app to the Android platform.

 I have a great deal of operations that follow this pattern:

 1    db.execSQL(CREATE TEMPORARY TABLE SearchResults(Name text););
 2    db.execSQL(INSERT INTO SearchResults (Name) SELECT Name FROM
 ProductNames WHERE NameLower MATCH ' + term + *';);
 3    db.execSQL(INSERT INTO SearchResults (Name) SELECT Name FROM
 BrandNames WHERE NameLower MATCH ' + term + *';);
 ...
 Cursor cursor = db.rawQuery(SELECT Name FROM SearchResults +
 myCount, null);
 cursor.moveToFirst();
 if (!cursor.isAfterLast())
 {
    Debug.log(DB, - Adding:  + cursor.getString(0));
    resultSet.add(cursor.getString(0));
    cursor.moveToNext();
 }
 cursor.close();

 On iOS using the SQLite3 C API and sqlite3_exec() all of these
 statements work perfectly fine.  However, on Android they are
 exhibiting strange behaviour.  I seem to only ever gets one row, it
 seems from the very first INSERT (the line that starts with 2 above).

 My goal here is to wrap all of the above commands in a begin and end
 transaction so that I can prevent multiple transactions from being
 created, also I use a temporary in memory table rather than a
 rawQuery() with just the selects because that prevents the bridge from
 the database layer to the Java layer from happening until the very end
 which seems to result in much better performance.

 When I rewrite the above logic to look like this:

 Cursor cursor = db.rawQuery(SELECT Name FROM Table1 WHERE NameLower
 MATCH ' + term + *', null);
 cursor.moveToFirst();
 while (!cursor.isAfterLast())
 {
    resultSet.add(cursor.getString(0));
    cursor.moveToNext();
 }
 cursor.close();
 cursor = db.rawQuery(SELECT Name FROM Table2 WHERE NameLower MATCH '
 + term + *', null);
 cursor.moveToFirst();
 while (!cursor.isAfterLast())
 {
    resultSet.add(cursor.getString(0));
    cursor.moveToNext();
 }
 cursor.close();
 ...

 It works perfectly returning all the proper results, however this is
 extremely slow.

 Could anyone explain to me why the execSQL() calls above would not
 work as I expect them too (and how they work on iOS)?

 Thanks!

 Rob

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

Android Training in DC: http://marakana.com/training/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] Adding new language support

2012-01-26 Thread Mark Murphy
This list is for developing applications with the Android SDK. You
cannot add a language to a device via the Android SDK. You have to
create custom firmware that contains the language support and apply
that firmware to your device.

To learn how to create custom firmware, visit
http://source.android.com, and for further questions on this topic,
click the Community tab on that site to find a more relevant Google
Group.

On Tue, Jan 24, 2012 at 3:50 AM, ModakS saikat.moda...@gmail.com wrote:
 Hi,

 I am using Android 4.0 and want to add new language support. How shall
 I start? Is there any good tutorial? I am not looking for language
 support for any particular app. I want my phone to be working in a new
 language totally.
 Please help me.

 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



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

Android Training in DC: http://marakana.com/training/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


  1   2   >