[android-developers] Re: How to insert special character into Database

2011-09-21 Thread Zsolt Vasvari
It's all Unicode, all characters are created equal.

On Sep 21, 1:38 pm, Bishan tvbis...@gmail.com wrote:
 How to insert ' character or special character into Database using sqlite ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] RMS article on Android

2011-09-21 Thread Greg Donald
http://www.guardian.co.uk/technology/2011/sep/19/android-free-software-stallman


Fairly interesting article..  I had never heard of Replicant before:

http://replicant.us/about/


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Frame Drop Management in Video Player

2011-09-21 Thread Doug
On Sep 19, 5:00 pm, Ganesh ganesh.vija...@gmail.com wrote:
 In these scenarios, shouldn't the system be able to resynchronize
 faster i.e. skip frames at parser level and start decoding from a key
 frame at the new position?

 Could someone explain why a similar strategy wasn't adopted?

Is there software that you know of that does this effectively?

The thing about A/V media is that the A packets are interleaved with
the V packets.  You can't count on an entire V frame to occur without
A possibly interrupting it in the sequence.  And tou are required to
read both in the sequence they appear in the stream.  If your A
decodes and renders in time, but your V does not, then there is no
incentive to skip ahead unless you want to disrupt BOTH A and V from
the users perspective.  Instead, you just keep rendering the available
A at the prescribed rate and skip the V that doesn't decode in time.
V takes a whole lot more processing power, so it will always fall
behind if there is not enough CPU to process both.

Doug

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 switch between ANDROID homescreen and our custom homescreen programmatically?

2011-09-21 Thread vishnu raj

 hai,

i have developed an android custom lock screen so that the default
launcher is replaced with my app.
I have done changes in android manifest file to make app as home
screen.
Now the problem is that i cannot control my app. That means whenever i
click the home , my lock screen is come. i wanted to set an option to
disable and enable  my app.

So i wanted to known whether there is no option programmatically(not
in manifest file) to make my app activity  as homescreen so that i can
disable the app when i don't need that.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] retrive values from database?

2011-09-21 Thread Devendran Raju
i want get the elements from database in array. can u guide me pls...



Regards,
Devendran

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] retrive values from database?

2011-09-21 Thread Ratheesh Valamchuzhy
use cursor adapter /array adapter to store he values retrieved  from
database

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: How to insert special character into Database

2011-09-21 Thread Bishan
@  Zsolt
no. i got this error.

09-21 12:07:26.876: INFO/Database(19855): sqlite returned: error code
= 1, msg = near S: syntax error

09-21 12:07:26.876: ERROR/Database(19855): Failure 1 (near S: syntax
error) on 0x2ae178 when preparing 'INSERT INTO Client VALUES
('110003', 'MITHUL'S ', 'R1', '3', '0', 'HOTEL', 'BRONZ', '4', '3',
'MAIN ROAD', 'AAA', 'SSS', '1091', 'weqwe', 'Y')'.

On 9/21/11, Zsolt Vasvari zvasv...@gmail.com wrote:
 It's all Unicode, all characters are created equal.

 On Sep 21, 1:38 pm, Bishan tvbis...@gmail.com wrote:
 How to insert ' character or special character into Database using sqlite
 ?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to set selected color effect when click on any image button or image view same as iphone?

2011-09-21 Thread Doug


On Sep 19, 7:57 am, Sam jain@gmail.com wrote:
 Anyone know any property of android to directly set select dark shadow
 effect without image ?
 Please anyone suggest how its possible ?

There is no property that does what you're asking for. You need to
either implement your own Drawable for that state or use an image.

Doug

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: How to set selected color effect when click on any image button or image view same as iphone?

2011-09-21 Thread GopalaKrishnan D
in that code replace @drawable/image into @color/color id

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] App closed but notification is visible

2011-09-21 Thread b_t
Hi,

My application creates an ongoing notification that displays battery
state and updates it when battery event occurs.

Very rarely I notice that this notification doesn't change, doesn't
display the correct value. When this happens my
application isn't running but the notification is visible.

This is very weird because when I force stop my app then the
notification disappears too.

I don't use any task killer apps so I think the system killed my app.

Do you know how can it happen that my app is not running but the
notification is visible and how to solve this problem?

Thanks,
Tamás

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 insert special character into Database

2011-09-21 Thread Zsolt Vasvari
Are you using the helper methods to create the insert statement, or
are you building it yourself?  If you do it yourself, you must escape
the single quote as double quoutes, so your statement should be:

INSERT INTO Client VALUES ('110003', 'MITHUL''S ', 'R1', '3', '0',
'HOTEL', 'BRONZ', '4', '3', 'MAIN ROAD', 'AAA', 'SSS', '1091',
'weqwe', 'Y')



On Sep 21, 2:44 pm, Bishan tvbis...@gmail.com wrote:
 @  Zsolt
 no. i got this error.

 09-21 12:07:26.876: INFO/Database(19855): sqlite returned: error code
 = 1, msg = near S: syntax error

 09-21 12:07:26.876: ERROR/Database(19855): Failure 1 (near S: syntax
 error) on 0x2ae178 when preparing 'INSERT INTO Client VALUES
 ('110003', 'MITHUL'S ', 'R1', '3', '0', 'HOTEL', 'BRONZ', '4', '3',
 'MAIN ROAD', 'AAA', 'SSS', '1091', 'weqwe', 'Y')'.

 On 9/21/11, Zsolt Vasvari zvasv...@gmail.com wrote:



  It's all Unicode, all characters are created equal.

  On Sep 21, 1:38 pm, Bishan tvbis...@gmail.com wrote:
  How to insert ' character or special character into Database using sqlite
  ?

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to insert special character into Database

2011-09-21 Thread Jens
One hint: MITHUL'S

http://www.sqlite.org/faq.html#q14

Or .. you know .. you could stop doing hardcoded queries and use the
supporting functionality present in Android.

On Sep 21, 8:44 am, Bishan tvbis...@gmail.com wrote:
 @  Zsolt
 no. i got this error.

 09-21 12:07:26.876: INFO/Database(19855): sqlite returned: error code
 = 1, msg = near S: syntax error

 09-21 12:07:26.876: ERROR/Database(19855): Failure 1 (near S: syntax
 error) on 0x2ae178 when preparing 'INSERT INTO Client VALUES
 ('110003', 'MITHUL'S ', 'R1', '3', '0', 'HOTEL', 'BRONZ', '4', '3',
 'MAIN ROAD', 'AAA', 'SSS', '1091', 'weqwe', 'Y')'.

 On 9/21/11, Zsolt Vasvari zvasv...@gmail.com wrote:

  It's all Unicode, all characters are created equal.

  On Sep 21, 1:38 pm, Bishan tvbis...@gmail.com wrote:
  How to insert ' character or special character into Database using sqlite
  ?

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, 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] Multiple dynamic repeating alarm in application.

2011-09-21 Thread jagtap.jj
Hi,

  I have Notes like application, for every note there is one repeating
alarm, notes can grow to any number. for every note user will set
repeating alarm.
  How to achieve this? Any suggestions?

Thanks  Regards
Jalandar Jagtap

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Switch to speakerphone when the headset is unplugged

2011-09-21 Thread Shri


My app uses the speakerphone if no headset is plugged in. If a headset is 
plugged in, Android automatically switches audio playback to the headset. 
However, when the headset is unplugged, the audio plays through the 
earpiece. Is there a way to switch to the speakerphone when the headset is 
unplugged? There does not seem to be any callback when the headset is 
unplugged. 

logcat shows that routing changes to 1 (AudioManager.ROUTE_EARPIECE). I 
could use a timer and keep checking for AudioManager#getRouting, but that 
method is deprecated.

V/HeadsetObserver(  107): Headset UEVENT: {SUBSYSTEM=switch, SWITCH_STATE=0, 
DEVPATH=/devices/virtual/switch/h2w, SEQNUM=6223, ACTION=change, 
SWITCH_NAME=h2w}

W/Vold(   71): Ignoring unknown switch 'h2w'

V/HeadsetObserver(  107): Intent.ACTION_HEADSET_PLUG: state: 0 name: h2w 
mic: 0

D/AudioHardware(   76): AudioStreamOutALSA::setParameters() routing=1

D/AudioHardware(   76): AudioHardware pcm playback is going to standby.

D/AudioHardware(   76): closePcmOut_l() mPcmOpenCnt: 1

D/AudioHardware(   76): AudioHardware pcm playback is exiting standby.

D/AudioHardware(   76): openPcmOut_l() mPcmOpenCnt: 0

Thanks
Shri

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 post My Twitts on Aurdino Screen Via Bluetooth In Android

2011-09-21 Thread parasnath
I have created an Twitter Application Now I want to post My Twitts On
Aurdino Screen via Bluetooth,through Programatically Can I do
this.Please help me


Thank you

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Is this a joke??

2011-09-21 Thread Al Sutton
http://developer.android.com/guide/developing/tools/monkey.html 

Monkeys can thrash test your app like nothing else :).

Al.
-- 
T: @alsutton W: www.funkyandroid.com

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Infinite loop in TextToSpeech.initTts

2011-09-21 Thread Nikolay Elenkov
On Tue, Sep 20, 2011 at 6:28 PM, BorisB boris.br...@gmail.com wrote:
 Hi all,

 The device is HTC Wildfire with locale set to Greek.
 NullPointer exception in SetLanguage generates infinite loop in
 initTtts . Relevant portion of log is

 V/TtsService( 7474): TtsService.onCreate()
 E/TtsService( 7474): Invalid TTS Engine Package: com.marvin.espeak
 V/TtsService( 7474): TtsService.setLanguage(ell, , )

Are you calling setEngineByPackageName()? If so, you should check
the return code, and not call setLanguage() if it returns ERROR. Also,
it seems it takes a bit of time to initialize after you call
setEngineByPackageName()
even if it returns 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


Re: [android-developers] In-app checkout interface is always in landscape mode on Honeycomb

2011-09-21 Thread Nikolay Elenkov
On Wed, Sep 21, 2011 at 6:55 AM, Speedy lostba...@gmail.com wrote:
 Hi,

 I'm building application on SKD 11+ (Android 3.x) and when I'm doing
 in-app billing request the checkout popup is always displaying in
 landscape mode - causing that my whole app rotates to landscape mode
 even though the app is locked to portrait.

Don't lock you app to portrait, or at least don't lock the activity responsible
for purchases.


 Is there any way to display purchase popup in portrait mode on
 Honeycomb?

Not that I know of. You get a PendingIntent from the Market app
and you have to launch that, I don't think you can customize 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] Re: Is this a joke??

2011-09-21 Thread Romain Guy
I hate the @!$ monkeys. So many extra hours spent at work because of them...
But that's good I guess :)

On Wed, Sep 21, 2011 at 12:29 AM, Al Sutton a...@funkyandroid.com wrote:

 http://developer.android.com/guide/developing/tools/monkey.html

 Monkeys can thrash test your app like nothing else :).

 Al.
 --
 T: @alsutton W: www.funkyandroid.com

 The views expressed in this email are those of the author and not
 necessarily those of Funky Android Limited, it's associates, or it's
 subsidiaries.

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Romain Guy
Android framework engineer
romain...@android.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Sending emails without user interaction - authentication issue

2011-09-21 Thread Nikolay Elenkov
On Wed, Sep 21, 2011 at 10:11 AM, Paul stuem...@gmail.com wrote:

 Is there any way to avoid having to specify the sending password,
 maybe by using AccountManager to authenticate with the phone's gmail
 account?

I haven't used it, but apparently GMail's IMAP/SMTP supports OAuth, you
might try it out:

http://code.google.com/apis/gmail/oauth/

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] can we know the phone no of the device.

2011-09-21 Thread krishna chaitanya
hi all,

I checked with one code like

  String ts = Context.TELEPHONY_SERVICE;

TelephonyManager telephonyManager = (TelephonyManager)
getSystemService(ts);


Toast.makeText(this, Phone
no:+telephonyManager.getLine1Number(), Toast.LENGTH_SHORT).show();

its showing the number in the emulator, but when ran on the device its
giving null..

thanks in advance

Krishna.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Emulator

2011-09-21 Thread Andi
Hi,

when my app is connecting to server (to another programm), the server
(the programm) is registring the device of the app. So when I do this
with the emulator the server(the programm) is registring the device
with the device-id: Simulator031128fc-5aad-433a-a10d-52bc88d6852c.
Where does this ID come from? For testing it would be good if i could
generate a new emulator with the same device-id. Is this possible??

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: NFC phone operated Mifare Classic

2011-09-21 Thread xiaoailsa
Hi,have anyone know how to increment \decrement\restore in the mifare
classic??
I'm very worry about this program.Could you help me ?


On 9月20日, 下午2时03分, xiaoailsa zsbitxiao...@163.com wrote:
 Hi,everyone!
 I have learn nfc phone how to read different card. For the Mifare
 Classic, i have a problem for value block.
 For the MifareClassic api , i can read and write with nfc phone. But i
 can't decrement,increment,restore, transfer.
 The api is :decrement(int blockIndex, int value) Decrement a value
 block, storing the result in the temporary block on the tag. How
 should I do in the program?
 I know value block have a fixed data format in the specification.Had
 the api take blockindex converted into value block automatically??Who
 can provide a code for my reference?

 Thank 's 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] Re: HOW TO USE ROCK PLAYER IN OUR OWN application.

2011-09-21 Thread B.Arunkumar
Hi,

   You can download it from the Android Market and use it like a
normal app. I don't think you can use rockplayer in your application,
though.

B.Arunkumar

On Sep 16, 8:34 pm, TreKing treking...@gmail.com wrote:
 On Fri, Sep 16, 2011 at 2:16 AM, NAVI NEW navi44...@gmail.com wrote:
  i am asking how to use , rock player in application not asking about
  contact.

 Is this rock player something in the SDK?

 -
 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: Is this a joke??

2011-09-21 Thread Daniel Drozdzewski
On 21 September 2011 08:38, Romain Guy romain...@android.com wrote:
 I hate the @!$ monkeys. So many extra hours spent at work because of them...
 But that's good I guess :)

http://familyguy.wikia.com/wiki/Evil_Monkey

d^_^b

-- 
Daniel Drozdzewski

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: HOW TO USE ROCK PLAYER IN OUR OWN application.

2011-09-21 Thread NAVI NEW
i want to run this type interface with my app. what to do for this one

On Wed, Sep 21, 2011 at 2:23 PM, B.Arunkumar
awsnetworkrecor...@gmail.comwrote:

 Hi,

   You can download it from the Android Market and use it like a
 normal app. I don't think you can use rockplayer in your application,
 though.

 B.Arunkumar

 On Sep 16, 8:34 pm, TreKing treking...@gmail.com wrote:
  On Fri, Sep 16, 2011 at 2:16 AM, NAVI NEW navi44...@gmail.com wrote:
   i am asking how to use , rock player in application not asking about
   contact.
 
  Is this rock player something in the SDK?
 
 
 -
  TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
  transit tracking app for Android-powered devices

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Publish and Debug

2011-09-21 Thread Jens


leonardomasc...@gmail.com wrote:
 I really have to unsintall the market downloaded apk to run the debug?

No.

 or there is another way to do this?

Yes.

Four easy steps to compromise security:
1. Whip out Portecle (http://portecle.sourceforge.net, no install
required).
2. MAKE A COPY OF YOUR SIGNING KEYSTORE.
3. Use Portecle to rename the key or create a new keystore that
contains your signing key - but now with the name androiddebug and
the password android.
4. Replace your debug keystore with this brand spanking new keystore
and presto - you are debug signing your apps with the same key.

This is of course a *horrifically* bad idea security wise - but fun
nonetheless.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 android native gallery app works in switching thumbnails into quality photos?

2011-09-21 Thread Lidia
Hello, please need help.

I can't find the source code for android gallery native application,
but i am trying to implement its feature, when a thumbnail photo
switches into a good quality photo, and zoom is available.

In my app i have a Gallery instance that uses thumbnail photos for
display. I want to know when scroll ends, or when the users stops on a
photo, i want to change thumbnail photo slowly/ animated  into a good
quality photo.

gallery.setOnItemSelectedListener() is not a good solutions, as it
shortens the speed of scroll.

Thanks in advance
Lidia

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Multiple dynamic repeating alarm in application.

2011-09-21 Thread jagtap.jj
It got resolved. Using pending intent with unique request code.

On Sep 21, 12:20 pm, jagtap.jj jagtap...@gmail.com wrote:
 Hi,

   I have Notes like application, for every note there is one repeating
 alarm, notes can grow to any number. for every note user will set
 repeating alarm.
   How to achieve this? Any suggestions?

 Thanks  Regards
 Jalandar Jagtap

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Custom Font For application

2011-09-21 Thread JOBZ

Hi All,

How to set custom font for whole  application. otherwise is there any
way to set  external fonts like FEASFBRG.TTF in Style.xml for the
attribute android:typeface.

 We can set it by Typeface.createFromAsset(getAssets(), fonts/
FEASFBRG .ttf);

But I want to know how to set in Style.xml for the attribute
android:typeface.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Get Auto Increment values from table 1 and insert in Table2

2011-09-21 Thread Krishna Prasad
Hi all,

Can anybody help me in inserting an auto increment value (primary key)
in one table as a foreign key in table 2 simultaneously.





thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Get Auto Increment values from table 1 and insert in Table2

2011-09-21 Thread Ratheesh Valamchuzhy
Go through the tutorial of  sqlite database

http://www.vogella.de/articles/AndroidSQLite/article.html

http://freshmeat.net/articles/sqlite-tutorial

http://zetcode.com/databases/sqlitetutorial/

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Get Auto Increment values from table 1 and insert in Table2

2011-09-21 Thread Krishna Prasad
I want to get the auto increment primary key as soon as it is inserted and
insert that auto increment value as a foreign key in another table.

On Wed, Sep 21, 2011 at 6:30 AM, Ratheesh Valamchuzhy
android...@gmail.comwrote:

 Go through the tutorial of  sqlite database

 http://www.vogella.de/articles/AndroidSQLite/article.html

 http://freshmeat.net/articles/sqlite-tutorial

 http://zetcode.com/databases/sqlitetutorial/

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Get Auto Increment values from table 1 and insert in Table2

2011-09-21 Thread Ratheesh Valamchuzhy
I didn't get your question correctly u want to get the primary key value
from the database ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Get Auto Increment values from table 1 and insert in Table2

2011-09-21 Thread Krishna Prasad
No .

My requirement is

While Xml parsing,i need to save each value  to db.During saving each table
is related.Suppose i have a table which has field id,form name  in one
table.I need to save the that  id value in another table also.Since it is
parsing,i want to save it simultaneously.Can you help me?

On Wed, Sep 21, 2011 at 6:49 AM, Ratheesh Valamchuzhy
android...@gmail.comwrote:

 I didn't get your question correctly u want to get the primary key
 value from the database ?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How to switch between ANDROID homescreen and our custom homescreen programmatically?

2011-09-21 Thread Mark Murphy
You cannot force your activity to be the home screen.

You can force your activity to *not* be the home screen by calling
clearPackagePreferredActivities() on PackageManager. Then, the user
will get a chooser the next time the HOME screen is launched (e.g.,
pressing the HOME button).

On Wed, Sep 21, 2011 at 2:24 AM, vishnu raj android.vis...@gmail.com wrote:

  hai,

 i have developed an android custom lock screen so that the default
 launcher is replaced with my app.
 I have done changes in android manifest file to make app as home
 screen.
 Now the problem is that i cannot control my app. That means whenever i
 click the home , my lock screen is come. i wanted to set an option to
 disable and enable  my app.

 So i wanted to known whether there is no option programmatically(not
 in manifest file) to make my app activity  as homescreen so that i can
 disable the app when i don't need that.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




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

Android Training in NYC: 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 implement edittext inside listview

2011-09-21 Thread Ratheesh Valamchuzhy
Hi.

please clear the question.

i am implement listview and each view *(or row).*
having editlist box.

problem when i trying to get data from all editboxes its takes only first
screen view.(*means getting the value from the first row only  ie index=0*)
here show only 5 views. when scrolling* g=i* get the problem.
please help me?

:::  when clicking the ok button we get the value of edittext in  all  rows
...


public void onClick(View view)
 {
 for(int i=0;ieditTextList.size();i++)
{
String q=editTextList.get(i).getText().toString();
Toast.makeText(CustomListViewDemo.this, Value - + q,
Toast.LENGTH_SHORT).show();
Log.v( indela,indela);
}
 }
 });

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] SqlLite Database

2011-09-21 Thread New Developer
How can one go about creating an SQLLite  Database on a PC  then to 
transfer the database file to the tablet's

application data directory?

I have managed to create a database on a tablet copy it off, and then 
back on.

But Now I would like to be able to create it  and then just upload it.

Also  what are the differences between MySQL files and  SqlLite  files


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

Re: [android-developers] how to implement edittext inside listview

2011-09-21 Thread aparna rani
in each row...its take the values from how many rows display in a screen
at app launched only. and remaining below screen its nit getting the values
from edittext box.

On Wed, Sep 21, 2011 at 4:50 PM, Ratheesh Valamchuzhy
android...@gmail.comwrote:

 Hi.

 please clear the question.

 i am implement listview and each view *(or row).*
 having editlist box.

 problem when i trying to get data from all editboxes its takes only first
 screen view.(*means getting the value from the first row only  ie index=0*
 )
 here show only 5 views. when scrolling* g=i* get the problem.
 please help me?

 :::  when clicking the ok button we get the value of edittext in  all  rows
 ...



 public void onClick(View view)
  {
  for(int i=0;ieditTextList.size();i++)
 {
 String q=editTextList.get(i).getText().toString();
 Toast.makeText(CustomListViewDemo.this, Value - + q,
 Toast.LENGTH_SHORT).show();
 Log.v( indela,indela);
 }
  }
  });




  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: SqlLite Database

2011-09-21 Thread lbendlin
You can create databases with a number of tools. I use the mozilla Firefox 
browser and SQLite manager plugin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] video resolution trans-coding

2011-09-21 Thread John
Hello developers,


i have a many mp4 videos files in sdcard , that video file contains
different width,height resolution. i want give a single constant
resolution to that file by code.

Plz need 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] want talk with android-system level community

2011-09-21 Thread John
I want to ask some question regarding android framework  with android
sdk system level api community . how to post issue and interact with
android-system level developer

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 android native gallery app works in switching thumbnails into quality photos?

2011-09-21 Thread Speedy
Hi,

these are actually pretty tough questions. Gallery is really lacking
some important functinality like event when the image actually stopped
moving. I had the same problem and I faked it using
Gallery.drawChild method where I am checking if the position of the
image is in the middle and if the the gallery is touched or not (by
setting simple boolean in onTouchevent). This works for me.

As for zooming - you can use either WebView or implement something
like this:

http://www.zdnet.com/blog/burnette/how-to-use-multi-touch-in-android-2-part-6-implementing-the-pinch-zoom-gesture/1847?tag=content;siu-container

into this
http://blogs.sonyericsson.com/wp/2010/06/09/android-one-finger-zoom-tutorial-part-3/
(you can read also previous parts to help understand it)

BUT if you want to use gallery for sliding of fullscreen images (no an
ordinary carousel) I recommend reading this article
http://android-developers.blogspot.com/2011/08/horizontal-view-swiping-with-viewpager.html
I've used it and made it work like a charm :) I hope I would have time
to publish it someday.

And for progressive rendering of the image - I'm using small
thumbnail streched to the fullscreen (by maintaining original
resoultion ratio!) and then just loading full sized image into it.
It's not animated but animations are only causing more troubles and
are wasting users time.

I hope it would help you at least a bit.
Good luck.

On Sep 21, 11:16 am, Lidia lidyp...@yahoo.com wrote:
 Hello, please need help.

 I can't find the source code for android gallery native application,
 but i am trying to implement its feature, when a thumbnail photo
 switches into a good quality photo, and zoom is available.

 In my app i have a Gallery instance that uses thumbnail photos for
 display. I want to know when scroll ends, or when the users stops on a
 photo, i want to change thumbnail photo slowly/ animated  into a good
 quality photo.

 gallery.setOnItemSelectedListener() is not a good solutions, as it
 shortens the speed of scroll.

 Thanks in advance
 Lidia

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 connect android device with local network

2011-09-21 Thread Gold
Hi all,

I am using android 2.2 for application development..!

Now I want to communicate with Webservice. The webservice running on
My laptop and ip is 192.168.1.15..!

But device not communicate.it..

How to communicate with local network..!



Thanks in advance,
A. Thangadurai

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] want talk with android-system level community

2011-09-21 Thread John
I want to ask some question regarding android framework  with android
sdk system level api community . how to post issue and interact with
android-system level developer

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: want talk with android-system level community

2011-09-21 Thread Drunczyk
https://groups.google.com/forum/#!forum/android-platform

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Get Auto Increment values from table 1 and insert in Table2

2011-09-21 Thread Daniel Drozdzewski
On 21 September 2011 12:02, Krishna Prasad
krishnaprasadrs.1...@gmail.com wrote:
 No .

 My requirement is

 While Xml parsing,i need to save each value  to db.During saving each table
 is related.Suppose i have a table which has field id,form name  in one
 table.I need to save the that  id value in another table also.Since it is
 parsing,i want to save it simultaneously.Can you help me?


SQLiteStatement.insert() returns ID of newly inserted row.

All you have to do is to wrap both inserts into a transaction.



 On Wed, Sep 21, 2011 at 6:49 AM, Ratheesh Valamchuzhy android...@gmail.com
 wrote:

 I didn't get your question correctly u want to get the primary key
 value from the database ?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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



-- 
Daniel Drozdzewski

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 connect android device with local network

2011-09-21 Thread ashok chakravarthy
run some webserver like tomcat on your local machine, then you can able to
connect to your machine provided both your machine and phone are in same
network

On Wed, Sep 21, 2011 at 5:48 PM, Gold thangadura...@gmail.com wrote:

 Hi all,

 I am using android 2.2 for application development..!

 Now I want to communicate with Webservice. The webservice running on
 My laptop and ip is 192.168.1.15..!

 But device not communicate.it..

 How to communicate with local network..!



 Thanks in advance,
 A. Thangadurai

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] how to implement edittext inside listview

2011-09-21 Thread Ratheesh Valamchuzhy
Hi

As per your code there is 5 tedittext in you app ..

we can get the values of each edittext(5 nos)  in that pgm...
see the code ...
===
public View getView(final int position, View convertView, ViewGroup parent)
{
ViewHolder holder;
if (convertView == null)
{
convertView = mInflater.inflate(R.layout.adaptor_content, null);
holder = new ViewHolder();
holder.textLine = (TextView) convertView.findViewById(R.id.textLine);
holder.textLine2 =(TextView) convertView.findViewById(R.id.textLine2);
holder.Edittext = (EditText) convertView.findViewById(R.id.edittext_qty);
editTextList.add(holder.Edittext);
convertView.setOnClickListener(new OnClickListener()
{
private int pos = position;
@Override
public void onClick(View v)
{

String q=editTextList.get(position).getText().toString();
Toast.makeText(context, data-+ q, Toast.LENGTH_SHORT).show();

}
});
convertView.setTag(holder);
}
else
{
holder = (ViewHolder) convertView.getTag();
}
holder.textLine.setText(TitleString[position] + String.valueOf(position));
holder.textLine2.setText(DetailString[position] + String.valueOf(position));
return convertView;
}
=

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Block the upgrade

2011-09-21 Thread Perry168
Hi,
How can I block the user to upgrade the Apps if who isn't downloaded
from google market?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] how to implement edittext inside listview

2011-09-21 Thread aparna rani
ya but increase the more no. of rows then it is not getting the data from
edittext. the means increase up to to 12 row,

On Wed, Sep 21, 2011 at 6:13 PM, Ratheesh Valamchuzhy
android...@gmail.comwrote:


 Hi

 As per your code there is 5 tedittext in you app ..

 we can get the values of each edittext(5 nos)  in that pgm...
 see the code ...
 ===

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

 {
 ViewHolder holder;
 if (convertView == null)
 {
 convertView = mInflater.inflate(R.layout.adaptor_content, null);
 holder = new ViewHolder();
 holder.textLine = (TextView) convertView.findViewById(R.id.textLine);
 holder.textLine2 =(TextView) convertView.findViewById(R.id.textLine2);
 holder.Edittext = (EditText) convertView.findViewById(R.id.edittext_qty);
 editTextList.add(holder.Edittext);
 convertView.setOnClickListener(new OnClickListener()
 {
 private int pos = position;
 @Override
 public void onClick(View v)
 {

 String q=editTextList.get(position).getText().toString();
 Toast.makeText(context, data-+ q, Toast.LENGTH_SHORT).show();

 }
 });
 convertView.setTag(holder);
 }
 else
 {
 holder = (ViewHolder) convertView.getTag();
 }
 holder.textLine.setText(TitleString[position] + String.valueOf(position));
 holder.textLine2.setText(DetailString[position] +
 String.valueOf(position));
 return convertView;
 }
 =


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: Cavnas's pattern to bitmap

2011-09-21 Thread Perry168
ar. Which method is my need?

On 9月19日, 上午10時11分, gjs garyjamessi...@gmail.com wrote:
 Hi,

 Seehttp://developer.android.com/reference/android/graphics/Canvas.html#s...)

 Regards

 On Sep 17, 11:55 am,Perry168perry...@netvigator.com wrote:



  Hi all,
  If I draw some graphic on the cavnas, How can I convert the cavnas's
  pattern to a bitmap format?
  Thanks!- 隱藏被引用文字 -

 - 顯示被引用文字 -

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Publish and Debug

2011-09-21 Thread Leonardo Martins Scaramel
If I keep installing and unstalling my apk from market, it will change my
statistics. (like installs and active installs) won't it?

2011/9/21 Jens dunkingbikk...@gmail.com



 leonardomasc...@gmail.com wrote:
  I really have to unsintall the market downloaded apk to run the debug?

 No.

  or there is another way to do this?

 Yes.

 Four easy steps to compromise security:
 1. Whip out Portecle (http://portecle.sourceforge.net, no install
 required).
 2. MAKE A COPY OF YOUR SIGNING KEYSTORE.
 3. Use Portecle to rename the key or create a new keystore that
 contains your signing key - but now with the name androiddebug and
 the password android.
 4. Replace your debug keystore with this brand spanking new keystore
 and presto - you are debug signing your apps with the same key.

 This is of course a *horrifically* bad idea security wise - but fun
 nonetheless.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Leonardo Martins Scaramel
MSN: xx11_leona...@hotmail.com
Fone Cel: 5475-9955

Até Mais e Obrigado pelos Peixes

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 implement edittext inside listview

2011-09-21 Thread Ratheesh Valamchuzhy
Are  you dynamically increasing the rows or specifying it static in the code

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Importing a project using com.android.internal.* packages

2011-09-21 Thread MarKco
I answer to myself. I found a branch in the directory tree where the 
previous developer had been copying the used part of com.android.internal 
that is used into the project.
Importing that branch I solved my dependancy issued. I just hope that this 
won't bring the app to have mismatches with future Android versions...

Cheers

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 implement edittext inside listview

2011-09-21 Thread aparna rani
specifying the static in the code

On Wed, Sep 21, 2011 at 6:36 PM, Ratheesh Valamchuzhy
android...@gmail.comwrote:

 Are  you dynamically increasing the rows or specifying it static in the
 code

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: bluez- control psm - condition G_IO_HUP error.

2011-09-21 Thread arun_satya3
Adding some more info.
During the second execution time, mcl fd is set to poll error G_IO_HUP
after mdl gets created.


On Sep 20, 9:44 pm, arun_satya3 arun.sat...@gmail.com wrote:
 Hi,

 I am writing an application to receive data from health devices an
 able to success fully receive data when the device is connected for
 the first time.
 The device is disconnected mcl and mdl is closed properly.
 When the device is connected for the second time G_IO_HUP is getting
 set and am unable to get the fd from the health device.

 Can anybody help me to resolve the issue.

 Rgds,
 Arun S.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] video resolution trans-coding

2011-09-21 Thread NAVI NEW
Is any one reviewing my issue or not?

On Wed, Sep 21, 2011 at 5:37 PM, John navi44...@gmail.com wrote:

 Hello developers,


 i have a many mp4 videos files in sdcard , that video file contains
 different width,height resolution. i want give a single constant
 resolution to that file by code.

 Plz need help,

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How to connect android device with local network

2011-09-21 Thread Thangadurai .A
Hi Ashok,

Greetings to you..!

I tried that  option but still i getting the error
server not found..! for emulator its working fine..!




Thanks  Warm Regards,
A. Thangadurai

On Sep 21, 5:43 pm, ashok chakravarthy ashoki...@gmail.com wrote:
 run some webserver like tomcat on your local machine, then you can able to
 connect to your machine provided both your machine and phone are in same
 network

 On Wed, Sep 21, 2011 at 5:48 PM, Gold thangadura...@gmail.com wrote:
  Hi all,

  I am using android 2.2 for application development..!

  Now I want to communicate with Webservice. The webservice running on
  My laptop and ip is 192.168.1.15..!

  But device not communicate.it..

  How to communicate with local network..!

  Thanks in advance,
  A. Thangadurai

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Get Auto Increment values from table 1 and insert in Table2

2011-09-21 Thread Krishna Prasad
ok thanks...

On Wed, Sep 21, 2011 at 8:35 AM, Daniel Drozdzewski 
daniel.drozdzew...@gmail.com wrote:

 On 21 September 2011 12:02, Krishna Prasad
 krishnaprasadrs.1...@gmail.com wrote:
  No .
 
  My requirement is
 
  While Xml parsing,i need to save each value  to db.During saving each
 table
  is related.Suppose i have a table which has field id,form name  in
 one
  table.I need to save the that  id value in another table also.Since it
 is
  parsing,i want to save it simultaneously.Can you help me?


 SQLiteStatement.insert() returns ID of newly inserted row.

 All you have to do is to wrap both inserts into a transaction.


 
  On Wed, Sep 21, 2011 at 6:49 AM, Ratheesh Valamchuzhy 
 android...@gmail.com
  wrote:
 
  I didn't get your question correctly u want to get the primary key
  value from the database ?
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, 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



 --
 Daniel Drozdzewski

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] video resolution trans-coding

2011-09-21 Thread Daniel Drozdzewski
On 21 September 2011 14:26, NAVI NEW navi44...@gmail.com wrote:
 Is any one reviewing my issue or not?

not

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 implement ffmpeg video codec for video player +android

2011-09-21 Thread John
how to implement ffmpeg video codec for video player +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 connect android device with local network

2011-09-21 Thread MComputing Lab
Try usb tethering
On 21 Sep 2011 17:49, Gold thangadura...@gmail.com wrote:
 Hi all,

 I am using android 2.2 for application development..!

 Now I want to communicate with Webservice. The webservice running on
 My laptop and ip is 192.168.1.15..!

 But device not communicate.it..

 How to communicate with local network..!



 Thanks in advance,
 A. Thangadurai

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: Google Development phones

2011-09-21 Thread kypriakos

Hi all,

the Market lists only one phone, the Nexus One and it says it is not
longer
available. Does that mean that Google is out of stock or does it mean
that
they are simply switching to a new phone and so this was off their
pages?

Thanks

On Aug 18, 1:26 pm, Mark Ayers markthe...@gmail.com wrote:
 The Nexus phones will always get updates quickest, though I'd be willing to
 bet that after the Nexus Prime, they will all be made by Motoogle.
 On Aug 18, 2011 6:06 AM, ColorTheorist colortheorydevelo...@gmail.com
 wrote:







  Sorry, that was just a throwaway comment. Eventually Motorola will
  become the gold standard for Android phones due to their proximity to
  the software, but in the short term they're no different than any
  other
  device. If whoever it was needs a phone today any of the phones that
  are
  out there should be fine.

  That's not entirely true. Motorola phones are still on top of their
  updates faster than most other devices, while other cheaper phones
  might not receive updates at all, or take quite an extensive amount of
  time to get the newest releases. As a developer it is useful to get
  the newest updates in a timely manner if you plan on using them
  anywhere near the newest OS release.

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, 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] Combining flex code and Android in Eclipse

2011-09-21 Thread s.rawat
Hi ,
Is it possible to combine the Flex code(mxml) with the android code in
Eclipse.I want to passs the values from the android code to the flex code (
written in mxml ).Also if it is possible how can we pass the values to and
from them.
I have a .swf component created from the mxml files in the Adobe Flash
Builder and I am able to integrate it with the android code.But now I want
the mxml files to be included in the android eclipse project and pass the
values from android code to mxml files.

Plz suggest if it is possible.
Rgds,
Saurabh

..pain is temporary.quitting lasts forever..

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 android native gallery app works in switching thumbnails into quality photos?

2011-09-21 Thread Lidia
Thank you very much Speedy, I will try all your advices.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 connect android device with local network

2011-09-21 Thread Ravi Sharma
If Emulator is working that means uc ode is code..
may be you should troubleshoot ur network
1) Confirm that both device computer and android definitely in same network
2) find out ip address of both
3) See if you have added permission in ur android config file to use
Internet(i assume its there as emulator is working(
4) try to ping android phone from computer

On Wed, Sep 21, 2011 at 2:46 PM, MComputing Lab 
mobilecomputing...@gmail.com wrote:

 Try usb tethering
 On 21 Sep 2011 17:49, Gold thangadura...@gmail.com wrote:
  Hi all,
 
  I am using android 2.2 for application development..!
 
  Now I want to communicate with Webservice. The webservice running on
  My laptop and ip is 192.168.1.15..!
 
  But device not communicate.it..
 
  How to communicate with local network..!
 
 
 
  Thanks in advance,
  A. Thangadurai
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] how to implement ffmpeg video codec for video player +android

2011-09-21 Thread NAVI NEW
Please give me  a guideline for implementing ffmpeg on android app.

On Wed, Sep 21, 2011 at 7:05 PM, John navi44...@gmail.com wrote:

 how to implement ffmpeg video codec for video player +android

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] video resolution trans-coding

2011-09-21 Thread Jim Graham
On Wed, Sep 21, 2011 at 05:07:02AM -0700, John wrote:

 i have a many mp4 videos files in sdcard , that video file contains
 different width,height resolution. i want give a single constant
 resolution to that file by code.

Different width:height resolutions (in computer video, NOT necessarily
in TV formats[1]) mean different aspect ratios.  If you know enough about
video to know how badly you are going to screw up your video by fscking
around with its aspect ratios, you know enough to know to leave it alone.
You cannot convert 4:3 (fullscreen) to widescreen; you CAN convert
widescreen formats (and there are a few of these) to 4:3, but you have to
do some cropping, either pan  scan or just a direct crop, both of which
are highly annoying even when done by a pro, and I gather you are not a
pro.

Later,
   --jim

[1] In TV, the aspect ratio and resolution have nothing to do
with each other.  For example, a typical DVD's resolution
is 720x480, but its aspect ratio may be 4:3, 16:9, etc.
SVCD is 480x480, but again 

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

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Problems in application upgrade when changing louncher activity

2011-09-21 Thread carlo
Hi all,

I've found that on some customized devices (e.g. with HTC Sense and
others) when you change the louncher activity and, for example you
change the app icon or name, after the upgrade there are some
issues... on a HTC Legend I see that the application still has the old
nameicon and points to the old louncher activity... on a LG Optimus
the application is duplicated so that I have the older application
which doesn't start if you click on it (it points to a non-existing
activity) and the new one with the correct nameicon

There is any chance to solve this?

thanks in advance
Carlo

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] video resolution trans-coding

2011-09-21 Thread NAVI NEW
Sure i am not a pro for crop the video resolution, but if you give me some
way guideline then i can be able to do that one.

On Wed, Sep 21, 2011 at 8:22 PM, Jim Graham spooky1...@gmail.com wrote:

 On Wed, Sep 21, 2011 at 05:07:02AM -0700, John wrote:

  i have a many mp4 videos files in sdcard , that video file contains
  different width,height resolution. i want give a single constant
  resolution to that file by code.

 Different width:height resolutions (in computer video, NOT necessarily
 in TV formats[1]) mean different aspect ratios.  If you know enough about
 video to know how badly you are going to screw up your video by fscking
 around with its aspect ratios, you know enough to know to leave it alone.
 You cannot convert 4:3 (fullscreen) to widescreen; you CAN convert
 widescreen formats (and there are a few of these) to 4:3, but you have to
 do some cropping, either pan  scan or just a direct crop, both of which
 are highly annoying even when done by a pro, and I gather you are not a
 pro.

 Later,
   --jim

 [1] In TV, the aspect ratio and resolution have nothing to do
with each other.  For example, a typical DVD's resolution
is 720x480, but its aspect ratio may be 4:3, 16:9, etc.
SVCD is 480x480, but again

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

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

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] video resolution trans-coding

2011-09-21 Thread NAVI NEW
Thanks a lot for reply .

On Wed, Sep 21, 2011 at 8:50 PM, NAVI NEW navi44...@gmail.com wrote:

 Sure i am not a pro for crop the video resolution, but if you give me some
 way guideline then i can be able to do that one.


 On Wed, Sep 21, 2011 at 8:22 PM, Jim Graham spooky1...@gmail.com wrote:

 On Wed, Sep 21, 2011 at 05:07:02AM -0700, John wrote:

  i have a many mp4 videos files in sdcard , that video file contains
  different width,height resolution. i want give a single constant
  resolution to that file by code.

 Different width:height resolutions (in computer video, NOT necessarily
 in TV formats[1]) mean different aspect ratios.  If you know enough about
 video to know how badly you are going to screw up your video by fscking
 around with its aspect ratios, you know enough to know to leave it alone.
 You cannot convert 4:3 (fullscreen) to widescreen; you CAN convert
 widescreen formats (and there are a few of these) to 4:3, but you have to
 do some cropping, either pan  scan or just a direct crop, both of which
 are highly annoying even when done by a pro, and I gather you are not a
 pro.

 Later,
   --jim

 [1] In TV, the aspect ratio and resolution have nothing to do
with each other.  For example, a typical DVD's resolution
is 720x480, but its aspect ratio may be 4:3, 16:9, etc.
SVCD is 480x480, but again

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

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

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Curved Gallery view

2011-09-21 Thread Abhi
Hi all,

I would like to know if it is possible to create a curved gallery view
from the default horizontal one that Android offers? I don't know if
that entails changing the Gallery code in Android framework which I
want to avoid. Is there any other way to make a custom Gallery view
from scratch? Again, how to go about doing that?

Thanks. Any help would be appreciated.

Abi

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: InputMethod crashing with NullPointerException

2011-09-21 Thread Mudhalvan
I have solved this issue myself... Its all because of the extarcted
view (or) fullscreenmode view being enabled by default in my IME.
Though its strange that it crashes only in 2.3.3 and not in 2.3.1
platform. Overriding onEvaluateFullScreenMode() of inputmethod and
always returning false(ie. never show my SIP in FullScreenMode) fixes
the crash.

But I believe that it will be better if a platform side fix is also
made after investigating this issue. My application currently targets
only tablets and removing fullscreen option shudn't be a big problem
in terms of text input on editors, where as for mobile phones some
IMEs might prefer to show their SIP in fullscreen mode(especially in
landscape orientation) on editors for facilitating the users to type 
view their content and this crash issue will be a big problem for
them.

On Sep 19, 7:33 pm, Mudhalvan prasankuma...@gmail.com wrote:
 Hi,

 Currently I'm encountering a weird issue in which myIMEprocess is
 getting crashed even though its not the defaultIME. The following
 thread which was posted earlier nearly talks about the same issue.

 http://groups.google.com/group/android-developers/browse_thread/threa...

 I'm assuming that its not the issue with myIMEalone as the above
 thread speaks aboutLatinIME. Following are the steps to reproduce
 the issue:

 1) After installing yourIME, make it the default one such that your
 SIP appears on the editor( say for example GMail ) application. close
 this editor and open another editor.

 2) After typing some words, keep the cursor in between a word and long
 press on the editor to bring up the options with Add word to
 dictionary. Select that option, which will open the Add word editor
 separately.

 3) There again type (or) add some words from candidate bar and then
 switch theIMEfrom yours to Android defaultIME. After the
 switching is done, tap on the back key twice.

 4) On the second tapping of back key, the Null Pointer 
 Exceptioncrashappears on the screen with myIME'sprocess mentioned(not the
 Android default one).

 Here is the exact piece ofcrashlog which I took out the device( I'm
 actually using a tablet which is running on 2.3.3 ).

 09-15 14:23:11.720: WARN/InputManagerService(113): Window already
 focused, ignoring focus gain of:
 com.android.internal.view.IInputMethodClient$Stub$Proxy@40864a00
 09-15 14:23:17.190: DEBUG/AndroidRuntime(24837): Shutting down VM
 09-15 14:23:17.190: WARN/dalvikvm(24837): threadid=1: thread exiting
 with uncaught exception (group=0x40150560)
 09-15 14:23:17.190: ERROR/AndroidRuntime(24837): FATAL EXCEPTION: main
 09-15 14:23:17.190: ERROR/AndroidRuntime(24837):
 java.lang.NullPointerException
 09-15 14:23:17.190: ERROR/AndroidRuntime(24837):     at
 android.inputmethodservice.IInputMethodSessionWrapper.executeMessage(IInputMethodSessionWrapper.java:
 88)
 09-15 14:23:17.190: ERROR/AndroidRuntime(24837):     at
 com.android.internal.os.HandlerCaller
 $MyHandler.handleMessage(HandlerCaller.java:61)
 09-15 14:23:17.190: ERROR/AndroidRuntime(24837):     at
 android.os.Handler.dispatchMessage(Handler.java:99)
 09-15 14:23:17.190: ERROR/AndroidRuntime(24837):     at
 android.os.Looper.loop(Looper.java:123)
 09-15 14:23:17.190: ERROR/AndroidRuntime(24837):     at
 android.app.ActivityThread.main(ActivityThread.java:3683)
 09-15 14:23:17.190: ERROR/AndroidRuntime(24837):     at
 java.lang.reflect.Method.invokeNative(Native Method)
 09-15 14:23:17.190: ERROR/AndroidRuntime(24837):     at
 java.lang.reflect.Method.invoke(Method.java:507)
 09-15 14:23:17.190: ERROR/AndroidRuntime(24837):     at
 com.android.internal.os.ZygoteInit
 $MethodAndArgsCaller.run(ZygoteInit.java:839)
 09-15 14:23:17.190: ERROR/AndroidRuntime(24837):     at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
 09-15 14:23:17.190: ERROR/AndroidRuntime(24837):     at
 dalvik.system.NativeStart.main(Native Method)

 I browsed the net and found from sources that the
 InputMethodSessionWrapper in its handler is still trying to use the
 old(invalid) InputMethodSession and calls UpdateExtractedText() with
 out a null check. My question is after theIMEis swicthed from mine
 to Android default one, why the InputMethodSessionWrapper is still
 trying to use the old inputmethodsession object ?
 Am I missing something from my onDestroy() call which is causing this
 issue ?(I double checked and found that all required resources like
 registered receivers are unregistered  things like that. Moreover if
 I swap the positions of IMEs and follow above same steps, Android
 defaultIMEis not crashing) (or) am I missing any vital interface
 methods from being overridden in myIME?( I even tried keeping dummy
 implementation of onbindInput() and onUnbindInput() and called the
 super class method, without success in this regard) (or)  is this a
 issue which needs to be addressed from the platform end ?

 Thanks,

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To 

[android-developers] Re: Android is worst os mobile is this true

2011-09-21 Thread Lew Bloch
Android is the worst form of mobile OS except for all those other forms that 
have been tried from time to time ...
-- Apologies to unknown source as cited by Winston Churchill.
http://richardlangworth.com/democracy-is-the-worst-form-of-government

-- 
Lew

blake wrote:

 Oh man.  This is such a bummer.  I'd been thinking it was pretty 
 cool... 

 wanyce ashoura wrote: 

 [Android is worst os mobile is this true]

  Yes i should say that 
  Why because of more then one reason 
  1- not support Arabic language at all meaning you need long time to 
  get Arabic support 
  in any kind of android Mobile's 
  2- alot of futures not founded in android like what 
  * redial . 
  *voice mail . 
  *gps navigator offline . 
  * voice command offline . 
  *proxy . 
  * a lot of security issues . 
  *suck in browsing web site's 
  *crazy market request any program will some times downloaded and may 
  will not or pause download . 
  3- is android real free software and  open source i do not think so is 
  near to windows mobile 
  just android use linux kernel and java but is not cool at all 
  4-blue tooth is crazy to used in android 
  5-not support any thing we dream about it 
  about me i am waiting for the best came from android from long time 
  before 
  and now i have no hope about this os because is just another low level 
  mobile os like symbian or badi or windows 
  low level meaning is not reach what we as user's wanted not is 
  programing 
  5- release 1.5 and 2.0 2.1 2.2 2.3 and jump to 3.0 3.1 3.2 
  but what about other version's is them not deserve some of update's 
  and improvement 
  just jump like this .. 
  
 == 
  i hope this e-mail reach real developer behind android and them start 
  moving up and 
  give us some hope to we can have mobile's can do what almost we 
  wanted

 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 is worst os mobile is this true

2011-09-21 Thread Jim Graham
On Wed, Sep 21, 2011 at 08:49:31AM -0700, Lew Bloch wrote:
 Android is the worst form of mobile OS except for all those other forms that 
 have been tried from time to time ...
 -- Apologies to unknown source as cited by Winston Churchill.
 http://richardlangworth.com/democracy-is-the-worst-form-of-government

Borrowed from the Mutt site (http://www.mutt.org):  All [mobile OSs]
suck...[Android] just sucks less.

:-)

Later,
   --jim

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

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Google Development phones

2011-09-21 Thread Kristopher Micinski
The original development phone was the nexus one, however the concept
of an official development phone hasn't been around for a long time,
and people just generally use their own devices for development these
days.  As long as you buy a nice device (for what you want to do with
it) you should be fine, optionally one that you think you can quickly
root.

Kris

On Wed, Sep 21, 2011 at 9:55 AM, kypriakos demet...@ece.neu.edu wrote:

 Hi all,

 the Market lists only one phone, the Nexus One and it says it is not
 longer
 available. Does that mean that Google is out of stock or does it mean
 that
 they are simply switching to a new phone and so this was off their
 pages?

 Thanks

 On Aug 18, 1:26 pm, Mark Ayers markthe...@gmail.com wrote:
 The Nexus phones will always get updates quickest, though I'd be willing to
 bet that after the Nexus Prime, they will all be made by Motoogle.
 On Aug 18, 2011 6:06 AM, ColorTheorist colortheorydevelo...@gmail.com
 wrote:







  Sorry, that was just a throwaway comment. Eventually Motorola will
  become the gold standard for Android phones due to their proximity to
  the software, but in the short term they're no different than any
  other
  device. If whoever it was needs a phone today any of the phones that
  are
  out there should be fine.

  That's not entirely true. Motorola phones are still on top of their
  updates faster than most other devices, while other cheaper phones
  might not receive updates at all, or take quite an extensive amount of
  time to get the newest releases. As a developer it is useful to get
  the newest updates in a timely manner if you plan on using them
  anywhere near the newest OS release.

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Publish and Debug

2011-09-21 Thread TreKing
On Wed, Sep 21, 2011 at 7:59 AM, Leonardo Martins Scaramel 
leonardomasc...@gmail.com wrote:

 If I keep installing and unstalling my apk from market, it will change my
 statistics. (like installs and active installs) won't it?


Not in any meaningful way, assuming those stats worked - which they don't,
so your concern is moot anyway.

-
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: HOW TO USE ROCK PLAYER IN OUR OWN application.

2011-09-21 Thread TreKing
On Wed, Sep 21, 2011 at 4:04 AM, NAVI NEW navi44...@gmail.com wrote:

 i want to run this type interface with my app. what to do for this one


Create that type of interface in your application.

-
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] parcelable again: passing object BACK through activity stack

2011-09-21 Thread TreKing
On Tue, Sep 20, 2011 at 5:38 PM, John Goche johngoch...@googlemail.comwrote:

 I think I'm gonna go for serialization and write the serialized object to a
 database in one row of text.
 That's the quick and dirty way of doing things I guess.

 Also, I'm done with Parcelable since I need to pass data back and forth.
 I've already reverted to
 passing a parameter in a global variable: it's the quickest and easiest
 way.


I predict regret =) Good luck.

-
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] Question about integrating Facebook/Twitter

2011-09-21 Thread TreKing
On Tue, Sep 20, 2011 at 1:28 AM, Randy 
roostertailproductionsandr...@gmail.com wrote:

 1)  Allow my application to provide a list of recent updates to a Facebook
 Group and follow Tweets in a similar fashion?


Seems like this would depend on each service's API, which has nothing to do
with this list.


 2)  Provide buttons that are direct links to the Facebook Group and Twitter
 Page.


You can provide buttons that are direct links to any site on the internet.
If these pages are accessible via the web, then why not?

-
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] Question about integrating Facebook/Twitter

2011-09-21 Thread Kristopher Micinski
On Wed, Sep 21, 2011 at 12:46 PM, TreKing treking...@gmail.com wrote:
 On Tue, Sep 20, 2011 at 1:28 AM, Randy
 roostertailproductionsandr...@gmail.com wrote:

 1)  Allow my application to provide a list of recent updates to a Facebook
 Group and follow Tweets in a similar fashion?

 Seems like this would depend on each service's API, which has nothing to do
 with this list.


 2)  Provide buttons that are direct links to the Facebook Group
 and Twitter Page.

 You can provide buttons that are direct links to any site on the internet.
 If these pages are accessible via the web, then why not?


Except to your own app's paid download page :o)...

Kris

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] App closed but notification is visible

2011-09-21 Thread TreKing
On Wed, Sep 21, 2011 at 2:03 AM, b_t bartata...@gmail.com wrote:

 Do you know how can it happen that my app is not running but
 the notification is visible and how to solve this problem?


You didn't provide much information, but if you set the notification and
never cancel it, well, it's not going away.
This could happen if you set the notification in an Activity and then it's
finished() or if you set it in a Service and it completes and exits.

-
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: Google Development phones

2011-09-21 Thread Christopher Van Kirk

The original developer phone was the G1.

Then came the Magic/G2.

Then came the Nexus One.

The current developer phone is the Nexus S, but it's an open question 
whether you really want to get one. The Nexus S is always closest to the 
bleeding edge of the phone operating system. The rest of the market, 
however, is still pretty far behind (I think something like 60% still 
runs Android 2.2, and if you look at Verizon's stable of phones, very 
few are  2.2). So if you're developing for mass consumption it might be 
better to get something a bit more retro.



On 9/22/2011 12:17 AM, Kristopher Micinski wrote:

The original development phone was the nexus one, however the concept
of an official development phone hasn't been around for a long time,
and people just generally use their own devices for development these
days.  As long as you buy a nice device (for what you want to do with
it) you should be fine, optionally one that you think you can quickly
root.

Kris

On Wed, Sep 21, 2011 at 9:55 AM, kypriakosdemet...@ece.neu.edu  wrote:

Hi all,

the Market lists only one phone, the Nexus One and it says it is not
longer
available. Does that mean that Google is out of stock or does it mean
that
they are simply switching to a new phone and so this was off their
pages?

Thanks

On Aug 18, 1:26 pm, Mark Ayersmarkthe...@gmail.com  wrote:

The Nexus phones will always get updates quickest, though I'd be willing to
bet that after the Nexus Prime, they will all be made by Motoogle.
On Aug 18, 2011 6:06 AM, ColorTheoristcolortheorydevelo...@gmail.com
wrote:








Sorry, that was just a throwaway comment. Eventually Motorola will
become the gold standard for Android phones due to their proximity to
the software, but in the short term they're no different than any
other
device. If whoever it was needs a phone today any of the phones that
are
out there should be fine.
That's not entirely true. Motorola phones are still on top of their
updates faster than most other devices, while other cheaper phones
might not receive updates at all, or take quite an extensive amount of
time to get the newest releases. As a developer it is useful to get
the newest updates in a timely manner if you plan on using them
anywhere near the newest OS release.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en



--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] can we know the phone no of the device.

2011-09-21 Thread TreKing
On Wed, Sep 21, 2011 at 2:46 AM, krishna chaitanya 
chaitanya.ju...@gmail.com wrote:

 its showing the number in the emulator, but when ran on the device
 its giving null..


http://developer.android.com/reference/android/telephony/TelephonyManager.html#getLine1Number()

-
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] Block the upgrade

2011-09-21 Thread TreKing
On Wed, Sep 21, 2011 at 7:47 AM, Perry168 perry...@netvigator.com wrote:

 How can I block the user to upgrade the Apps if who isn't downloaded from
 google market?


Your question makes no sense.

-
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] Problems in application upgrade when changing louncher activity

2011-09-21 Thread TreKing
On Wed, Sep 21, 2011 at 10:00 AM, carlo sazi...@gmail.com wrote:

 There is any chance to solve this?


If this is on customized devices, you'd have to talk to those customizers.

-
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] When is onSurfaceCreated called??

2011-09-21 Thread ruchira
I am asking this question as I have been stuck with this issue for
almost a month that the surface created function of my app is never
called and I am stuck with 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] Curved Gallery view

2011-09-21 Thread TreKing
On Wed, Sep 21, 2011 at 10:34 AM, Abhi abhishek.r.sha...@gmail.com wrote:

 Is there any other way to make a custom Gallery view from scratch? Again,
 how to go about doing that?


Extend the existing one? Or make your own by extending ViewGroup?

-
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] Question about integrating Facebook/Twitter

2011-09-21 Thread TreKing
On Wed, Sep 21, 2011 at 11:49 AM, Kristopher Micinski 
krismicin...@gmail.com wrote:

 Except to your own app's paid download page :o)...


LOL - oh yeah - wouldn't want to get sued for stealing that incredibly
original concept!

-
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] Flash and Air and the marketplace

2011-09-21 Thread Josh
Im curious if Flash android apps are getting accepted into the market
place.

Do they perform just as well as the apps designed in java?

Just getting started not sure what direction to travel in.

Josh

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] smoothScrollBy don't work on top and bottom of the list

2011-09-21 Thread Israel Fonseca
Hi guys,

I have the following situation, two buttons control programatically
the scrolling of a ListView. Everthing works fine. The only problem
is, when the list get scrolled to the bottom or the top it get's
stuck and the buttons that control It can't move it anymore. The
only fix, is to scroll the list normally with the finger touch and
after that the buttons will work again.

Is it a bug or am I doing something wrong? (Android 2.2.1)

Here it is the XML and Java code in the pastebin:

http://pastebin.com/3CDJRFg1
http://pastebin.com/TF7q2EuK

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 add a ViewFlipper to the layout?

2011-09-21 Thread MobileVisuals
Thanks for the info. I have redesigned the app now and it worked.

On Sep 20, 6:37 pm, Mark Murphy mmur...@commonsware.com wrote:
 Use startActivity(), with FLAG_ACTIVITY_REORDER_TO_FRONT, to bring an
 existing activity back into the foreground (or create it if it does
 not exist).

 On Tue, Sep 20, 2011 at 12:32 PM, MobileVisuals



 eyv...@astralvisuals.com wrote:
  I see, then I would have to use one SurfaceView for the first activity
  and a GLSurfaceView for the other activity. I searched for information
  about how to switch between 2 activities on the forum and found one of
  your threads:

 http://groups.google.com/group/android-developers/browse_thread/threa...

  You recommend using a viewflipper here, so I can not use that
  approach. I found another thread

 http://groups.google.com/group/android-developers/browse_thread/threa...

   where they used the StartActivityForResult method. How would you
  recommend that I should swith between the activites without using a
  ViewFlipper?

  On Sep 20, 4:43 pm, Mark Murphy mmur...@commonsware.com wrote:
  Use two activities.

  On Tue, Sep 20, 2011 at 9:54 AM, MobileVisuals eyv...@astralvisuals.com 
  wrote:
   I got the viewflipper to work, but I found that it is not possible to
   use a GLSurfaceView in a viewflipper, like this thread describes:

  http://groups.google.com/group/android-developers/browse_thread/threa...

   How can I then switch between 2d and 3d rendering?

   On Jul 27, 2:53 pm, Mark Murphy mmur...@commonsware.com wrote:
   On Wed, Jul 27, 2011 at 8:49 AM, MobileVisuals 
   eyv...@astralvisuals.com wrote:
I try to add 2 views to a Viewflipper, but I get

java.lang.IllegalStateException: The specified child already has a
parent.
You must call removeView() on the child's parent first.

when I try to add the view. I don't know why this happens. I try to
remove the view from the ViewFlipper, but I still get the same
message. How can I add a ViewFlipper to the layout? You can view my
code and XML layout below:
---
setContentView(R.layout.lunar_layout);
mLunarView = (LunarView) findViewById(R.id.lunar);
ViewFlipper vf=(ViewFlipper) findViewById(R.id.flip);
vf.addView(mLunarView, 0);

   The error should be self-explanatory. You already have R.id.lunar as a
   child of the LinearLayout.

 layout:
--
?xml version=1.0 encoding=utf-8?

LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
   android:layout_width=wrap_content
   android:layout_height=wrap_content

    ViewFlipper
     android:id=@+id/flip
     android:layout_width=fill_parent
     android:layout_height=fill_parent/

   astral.effectsf.LunarView
     android:id=@+id/lunar
     android:layout_width=fill_parent
     android:layout_height=fill_parent/

/LinearLayout

   Make the LunarView be a child element of your ViewFlipper, and get rid
   of the Java code to try adding it to the ViewFlipper, and you will be
   set.

   Here are some projects demonstrating the use of a ViewFlipper:

  https://github.com/commonsguy/cw-android/tree/master/Fancy/Flipper1ht...

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

   Android Training in NYC: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

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

  Android Training...At Your Office:http://commonsware.com/training

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, 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/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 Android Training...At Your Office:http://commonsware.com/training

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this 

[android-developers] Re: ViewFlipper class does not support SurfaceView like it should

2011-09-21 Thread MobileVisuals
I got this to work no without the ViewFlipper.  I think that there
should be information in the ViewFlipper class
that it doesn't support SurfaceView. I lost many hours of work because
of this. The reason I used the ViewFlipper class for SurfaceView was
that other threads on this forum recommended it, like this one:

https://groups.google.com/group/android-developers/browse_thread/thread/6e40d73d0883d150/e6da11407f5ac488?lnk=gstq=switch+between+GLSurfaceView#e6da11407f5ac488

So there are other developers who have made the same mistake.

On Sep 20, 3:51 pm, MobileVisuals eyv...@astralvisuals.com wrote:
 How can I then switch between a view with 2d rendering and a view with
 3d rendering?

 I suppose I have to use GLSurfaceView for 3d rendering with OpenGL?

 On Sep 20, 3:00 pm, Jens dunkingbikk...@gmail.com wrote:

  That would be the gist of what both Dianne  Romain Guy said yes.

  On Sep 20, 2:13 pm, MobileVisuals eyv...@astralvisuals.com wrote:

   GLSurfaceView extends SurfaceView. Does that mean that it is not
   possible to animate GLSurfaceView with a viewflipper?

   On Sep 20, 9:54 am, Romain Guy romain...@android.com wrote:

You can animate another view on top of a SurfaceView, you just cannot
animate the SurfaceView itself.

On Tue, Sep 20, 2011 at 12:51 AM, MobileVisuals 
eyv...@astralvisuals.comwrote:

 Thanks for the info, I have spent many hours investigating this issue
 and now I finally know what the problem is. My app has a standard 2d
 menu. It is possible to view different 3d visual effects from the
 menu. The 3d visual effects are rendered in a GLSurfaceView. That
 class extends SurfaceView.

 You say that SurfaceView should not be used in a ViewFlipper. How can
 I implement my app if I can't use SurfaceView or GLSurfaceView? Which
 type of view should I use for the ViewFlipper? Can I render the 3d
 visual effects with other views than GLSurfaceView?

 Or shouldn't I use a ViewFlipper at all? If not, how can I then switch
 between the 2d and the 3d rendering?

 On Sep 19, 7:37 pm, Dianne Hackborn hack...@android.com wrote:
  Don't use a SurfaceView in a ViewFlipper.

  Nor a ListView.

  SurfaceView is a *very* *special* view.  As it says, what it does is
 create
  a completely separate surface (a.k.a. window) that is associated 
  with
 your
  main window.  This window is positioned behind the main window, and 
  a
 hole
  punched through your main window to see the surface behind.

  By its nature, this makes the interaction between the surface of the
 surface
  view and the main view hierarchy limited.

  The purpose of SurfaceView is to present static things like video
 playback
  or a game playfield in its own surface so that it can draw outside 
  of the
  normal view hierarchy update model (and use OpenGL drawing, 
  different
 color
  spaces, etc).  It is not to give a tight integration with the rest 
  of the
  view hierarchy.

  You should essentially think of it as an overlay, because really 
  that is
  what it is.

  On Mon, Sep 19, 2011 at 10:29 AM, MobileVisuals 
 eyv...@astralvisuals.comwrote:

   My app uses a ViewFlipper. It is possible to flip between the 
   views
   without problems at first.But after switching to another app and 
   then
   switching back to the ViewFlipper app, it is not possible to flip
   between the views. One of the views is always displayed as just a
   black screen.

   I have investigated the reason for this, using the simplest 
   possible
   SurfaceView. It is still the same problem.
   It is not a thread problem, I see that the onDraw method is called
   like it should. What is the reason for this? Doesn't the 
   ViewFlipper
   class support SurfaceView like it should?

    I got the code for the SurfaceView from the basic tuturial:

  http://www.edu4java.com/androidgame/androidgame2.html

   and the code for the View flipper from Mark Murphys View flipper
   tutorial:

  https://github.com/commonsguy/cw-android/tree/master/Fancy/Flipper1

   This is my code:
   -

   public class FlipperDemo2 extends Activity {

   ViewFlipper flipper;

   @Override
   public void onCreate(Bundle icicle) {
   super.onCreate(icicle);
   setContentView(R.layout.main);

   flipper=(ViewFlipper)findViewById(R.id.details);
   GameView lv=new GameView(this.getApplicationContext(),true);
   flipper.addView(lv,
                  new ViewGroup.LayoutParams(
                  ViewGroup.LayoutParams.FILL_PARENT,
                  ViewGroup.LayoutParams.FILL_PARENT));
   GameView lv2=new GameView(this.getApplicationContext(),false);
   flipper.addView(lv2,
                  new ViewGroup.LayoutParams(
           

Re: [android-developers] parcelable again: passing object BACK through activity stack

2011-09-21 Thread Streets Of Boston
1. Try to avoid Serializable. It is very slow compared to Parcelable.
2. Take a look at startActivityForResult and onActivityResult.
3. If you reeeaaally need to update activity A about events from activity B, 
consider putting your own subclass of ResultReceiver in the Intent's 
'extras'. Then activity B can call 'send(...)' on that ResultReceiver and 
this will be received in activity A as an 'onReceiveResult(...)' call-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

[android-developers] Does it possible to use multiple jni(.so) library in one SDK project?

2011-09-21 Thread Build account
Hello gurus.


At first, I can build single 'jni' library in one SDK project with the
directory name 'jni' and make file under eclipse.


But, I'm looking for
- how to build multiple jni in eclipse with the setting 'property 
builder  add cmd line'. I expect that possible. Does it possible?
- and how to package multiple shared library in one apk? possible?


Please any comment to save one engineer..

Thanks!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: ListView: responding to item clicks via a listener

2011-09-21 Thread Streets Of Boston
Try not to do this. It will break the UI model that Android users expect on 
their phones.
However, if you really need it:

1. Modify the data items that are handled by your ListView's adapter. Add an 
field that could tell how many times a list-item has been clicked (e.g. 
numberOfClicks).

2. Handle the onItemClick(...) (or in your case 'onClick(...)') as follows:
MyDataItem item = adapter.getItem(position);
Increase the item.numberOfClicks. 
If it becomes 1: do nothing.
If it becomes 2: go to the other screen and re-set item.numberOfClicks to 0.
(Be sure to call adapter.notifyDatatSetChanged()).

3. Change the 'getView()' method of your ListView's adapter:
MyDataItem item = getItem(position);
If the corresponding's item.numberOfClicks is 1, then color the background 
of that item in a particular color (that would indicate a 'highlight').
If the corresponding's item.numberOfClicks is not 1, then make the 
background of that item transparent (android.R.color.transparent).


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] TabWidget font size

2011-09-21 Thread bob
Is there an easy way to change the font size of a TabWidget?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: TabWidget font size

2011-09-21 Thread Streets Of Boston
You can either use the TabSpec.setIndicator(View view) method to put your 
own views in the TabWidget.

Or you can override the theme to set the font-size:

style name=YourTheme parent=@android:style/Theme
  item name=android:tabWidgetStyle@style/Widget.TabWidget/item
/style

style name=Widget.TabWidget parent=@android:style/Widget.TabWidget
  item name=android:textSize20sp/item
/style

And then assign 'YourTheme' as your Activity's theme.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] App appears to be missing for a number of devices on Android Market

2011-09-21 Thread dan raaka
I have seen similar issues mainly due to the market app trying to infer
android.hardware.screen.portrait
even though you may not have declared it in your manifest.

workaround : add this uses-feature name=android.hardware.screen.portrait
required=false / to your manifest

-Dan


On Sun, Sep 18, 2011 at 9:48 AM, cpick cp...@vmenu.com wrote:

 Our app seems to be disappearing from the Market for a number of
 devices. For example, my Samsung Galaxy Tab 10.1 shows up in the
 market when I upgrade, but each time I download it crashes the
 market.  I have users w/ a Samsung Galaxy Mini GT-S5570 which can't
 even see it in the market. I am trying to figure out what is wrong in
 my Manifest :/  The Galaxy Mini user was able to side load the app,
 and works fine.. So not sure why it is being excluded. Also had a
 report that it was not working on Motorola Xoom (not visible in
 market). Is the Xoom at 3.2 already? That would be explained my my max
 SDK @ 12 instead of 13.

 Device search results
 Samsung
 Unsupported devices due to your manifest settings
 GT-S5570B(GT-S5570B)
 GT-S5570L(GT-S5570L)
 Design name search results
 Samsung
 Unsupported devices due to your manifest settings
 Galaxy Mini(GT-S5570)
 GT-S5570B(GT-S5570B)

 Not sure why.

   uses-sdk android:minSdkVersion=4 android:maxSdkVersion=12
 android:targetSdkVersion=8/
  supports-screens
  android:smallScreens=true
  android:normalScreens=true
  android:largeScreens=true
  android:anyDensity=true android:resizeable=true/

 Now I realize that maxSdkVersion=12 is not the highest currently,
 but if I put 13 then the market says that 13 is not currently
 supported (too high).

 My permissions from manifest are below.

 uses-permission android:name=android.permission.CAMERA/uses-
 permission
 uses-permission
 android:name=android.permission.ACCESS_FINE_LOCATION/uses-
 permission
 uses-permission
 android:name=android.permission.ACCESS_COARSE_LOCATION/uses-
 permission
 uses-permission android:name=android.permission.INTERNET/uses-
 permission
 uses-permission android:name=android.permission.FLASHLIGHT/uses-
 permission
 uses-permission
 android:name=android.permission.ACCESS_LOCATION_EXTRA_COMMANDS/
 uses-permission
 uses-permission android:name=android.permission.VIBRATE/
 uses-permission
 android:name=android.permission.WRITE_EXTERNAL_STORAGE /
 uses-permission
 android:name=android.permission.READ_EXTERNAL_STORAGE/

 From the market I see this :
 Supported Devices
 This application is only available to devices with these features, as
 defined in your application manifest.
 Screen layouts: SMALL NORMAL LARGE XLARGE
 Required device features
 android.hardware.camera
 android.hardware.location.network
 android.hardware.location
 android.hardware.location.gps
 android.hardware.camera.autofocus
 android.hardware.screen.landscape
 android.hardware.touchscreen
 android.hardware.screen.portrait

 Here is a list of unsuported devices.

 Unsupported devices due to your manifest settings
 ALM-001J(smdkv210)
 Archos 101 Internet Tablet(A101S)
 Dell Streak 10 Pro(Streak10Pro)
 unknown(magic)
 unknown(XT319)
 unknown(hws7300u)
 unknown(A101IT)
 unknown(VENUS)
 unknown(SCH-I589)
 unknown(p7901a)
 unknown(ASP320Q_GSM)
 unknown(u8150)
 unknown(nbx02)
 unknown(GT-B5510)
 unknown(harmony)
 unknown(LIFETAB_P9514)
 unknown(viewpad7x)
 unknown(ASP320Q)
 unknown(hwc8511)
 unknown(TB07STA)
 unknown(tostab04)
 unknown(hwm860)
 unknown(TB07FTA)
 unknown(SH8158U)
 unknown(huashan)
 unknown(mi_350)
 unknown(zt180)
 unknown(X500)
 unknown(msm7627_ntls)
 unknown(one_touch_918N_umts)
 unknown(one_touch_908A_gsm)
 unknown(mangrove7)
 unknown(GT-S5360L)
 unknown(CAP8)
 unknown(CAP6)
 unknown(anydata16_a10y)
 unknown(YPY)
 unknown(A80S)
 unknown(pasteur)
 unknown(AMD120)
 unknown(goldfish)
 unknown(icx1216)
 unknown(A70S)
 unknown(A70H)
 unknown(generic)
 unknown(fleming)
 unknown(utv210)
 unknown(OP070)

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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

  1   2   >