[android-developers] Preview Events

2011-12-11 Thread Y2i
Hello everyone,

Is there a place in Android to add a preview event handler, similar to 
GWT's 
Event.addNativePreviewHandlerhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/Event.html#addNativePreviewHandler(com.google.gwt.user.client.Event.NativePreviewHandler)?
 
 I'd like to intercept events like key down, key up, touch, trackball, 
etc., without modifying all activities/views.

Thanks in advance for your help.

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

Re: [android-developers] duplicate and rename package

2011-12-11 Thread Daniele Segato

On 12/08/2011 10:57 AM, Mukesh Srivastav wrote:

Pretty simple, if you use Eclipse as Development Enviorment.

You just have to select the project root in the Eclipse and  Rename
it,Eclipse will automatically update the reference of the package.


eclipse is not going to fix your package in layout files and/or class 
attribute when you use fragment in your layout files



I gave a way to do it which is independant of the development environment.

actually a single command could have been enough:

sed -i 's#old.package.name#new.package.name#g' `grep -Rl 
'old.package.name' *`



but if you have a very simple package or colliding packages that may 
have had issues.


Hopefully we are developer and are not scared of the command line and/or 
writing some regex.


Regards

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


[android-developers] Re: Should I buy my own apps?

2011-12-11 Thread b0b
I bought my own app using a separate account than my developer account.

That way I can experience exactly what users do, in particular LVL 
validation and updating apps.


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

2011-12-11 Thread Nikolay Elenkov
On Sun, Dec 11, 2011 at 3:39 PM, Peter Webb r.peter.w...@gmail.com wrote:
 I had always believed that not being able to download my own app was a
 bug. Now it looks like a much bigger bug, as it affects everybody.

If you think it's a bug, report it, or request a new feature, etc.

http://support.google.com/androidmarket/developer/bin/static.py?hl=enpage=suggestions.cs


 The problem I have is that how does it know that my phone is the
 developer's phone? Because I am using the same credit card number as
 my developer account, or some co-incidence of email addresses? If so,
 this can be easily bypassed by using a different credit card number or
 email address for purchases, which many people would do anyway.


AFAIK, it just checks if the Google account you use for the Market
app is not the same as your developer account.

 If the restriction is this ridiculously easy to bypass, why have it at
 all? It seems completely un-enforceable, and provides no benefit when
 it is enforced.


So bypass it, what's the big deal?

 Still looks like a bug to me.


Report it then. It's clear documented so it is actually
a feature :)

Why you need to buy your own app anyway?
You already have it. If you want to test LVL or in-app billing,
there are ways to do that (less than perfect, for sure).

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


[android-developers] Re: How can i Assign a id to view Programmatically?

2011-12-11 Thread Ali Chousein
Yazdığın kodun içinden view objelerini yaratınca, findViewById()
fonksiyonunu çağırmana gerek yok. Yarattığın objelere referanslar
elinde var zaten. Referansları saklayıp sonra kullanabilirsin. View
objelerini XML'den tanımlasaydın, findViewById() sana aynı
referansları döndürecekti.

-
Ali Chousein
Weather-Buddy
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com
https://marketplace.cisco.com/apphq/products/994

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

2011-12-11 Thread Duygu Kahraman
Selam Ali;

Asıl sormak istediğim şu;mesela  TextView tv=new TextView(this); diye bir
view yarattım.Eğer xmlde yaratmış olsaydım id sini de orada set edip
çağırabilecektim kodun içinden.Yada R dosyasında bir referans oluşturmuş
olacaktı.Ama program içinde yarattığımda R içinde tvye ait birşey
yok.Sadece setId() diye birşey var ama setId() bana ben extra bir referans
vermek istediğimde gerekli gibi geliyor.

Yani şöyle birtane scrollview yaptım içinde birsürü item ekledim.Bunlardan
3.sü yada 5.sini aldığımda birşey yapmak istiyorsam evet bunlara sıralı bir
id vermeliyim ki kaçıncısını aldığımı anlayayım.İşte burada sıralı id
vermek için setId() yi kullanırım.

Yanlış mı düşünüyorum anlamıyorum.Sanki tv default bir id ataması
gerekiyormuş gibi düşünüyorum.Yada veriyor ben ulaşmasını beceremedim.
Çok basit biliyorum ama kafama takıldı.

11 Aralık 2011 12:10 tarihinde Ali Chousein ali.chous...@gmail.com yazdı:

 Yazdığın kodun içinden view objelerini yaratınca, findViewById()
 fonksiyonunu çağırmana gerek yok. Yarattığın objelere referanslar
 elinde var zaten. Referansları saklayıp sonra kullanabilirsin. View
 objelerini XML'den tanımlasaydın, findViewById() sana aynı
 referansları döndürecekti.

 -
 Ali Chousein
 Weather-Buddy
 http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
 Geo-Filtered Assistant
 http://geo-filtered-assistant.blogspot.com
 https://marketplace.cisco.com/apphq/products/994

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




-- 
---
Duygu Kahraman

http://tr.linkedin.com/in/duygukahramann

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] subset of Android SDK running on an Android device-- possible?

2011-12-11 Thread CresCoJeff
Hey all,
I was wondering recently if it might be possible to get some or all of
the Android SDK running on an Android device, wrapped within an on-
device IDE app and running via JNI... any thoughts?  I know this would
probably make for too huge an app for most devices, but just speaking
strictly in theory for the moment would it even be possible to
leverage enough of the SDK tools to write some source on the device,
compile it to dex, package an apk, and install it for testing?

thanks,
Jeff

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

2011-12-11 Thread B Lyon
FYI - Let me ditto Mark's original response (especially the crazy
weirdness with it mangling some things in the manifest after the last
step).  When I try to use the Rename package with adt in eclipse,
it's never worked yet, getting some kind of internal error.  This is
Windows 7.



On Sun, Dec 11, 2011 at 3:32 AM, Daniele Segato
daniele.seg...@gmail.com wrote:
 On 12/08/2011 10:57 AM, Mukesh Srivastav wrote:

 Pretty simple, if you use Eclipse as Development Enviorment.

 You just have to select the project root in the Eclipse and  Rename
 it,Eclipse will automatically update the reference of the package.


 eclipse is not going to fix your package in layout files and/or class
 attribute when you use fragment in your layout files


 I gave a way to do it which is independant of the development environment.

 actually a single command could have been enough:

 sed -i 's#old.package.name#new.package.name#g' `grep -Rl 'old.package.name'
 *`


 but if you have a very simple package or colliding packages that may have
 had issues.

 Hopefully we are developer and are not scared of the command line and/or
 writing some regex.

 Regards


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

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


[android-developers] Send SMS on specific application port

2011-12-11 Thread smoogli
Hi,
Sending an SMS is straightforward. However, I can't find a way to send
an SMS on a specific application port.

1. There is a way to send standard SMS in Android
2. There is a way to send Binary SMS in Android.
3. There is a way to send SMS to specific port, in JavaME i.e., String
smsUrl = sms:// + to + : + 99112;

Any idea on how to send standard SMS in Android?

thanks

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


[android-developers] Android app to send to C2DM server

2011-12-11 Thread smoogli
I bumped in C2DM which is, as far as I understand, the equivalent to
iPhone Push. See http://code.google.com/android/c2dm/

It is required that there is a 3rd party server that sends messages to
the C2DM server. I'm writing a server-less application.

1. Is it possible that an Android application will communicate with
the C2DM directly?
2. Can such solution work for pushing small messages to applications
installed on other devices?

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: Send SMS on specific application port

2011-12-11 Thread skink


smoogli wrote:
 Hi,
 Sending an SMS is straightforward. However, I can't find a way to send
 an SMS on a specific application port.

 1. There is a way to send standard SMS in Android
 2. There is a way to send Binary SMS in Android.
 3. There is a way to send SMS to specific port, in JavaME i.e., String
 smsUrl = sms:// + to + : + 99112;

 Any idea on how to send standard SMS in Android?

 thanks

Never tried it, but did you read carefully
http://developer.android.com/reference/android/telephony/SmsManager.html

pskink

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


[android-developers] How to install sqllite database browser in android emulator

2011-12-11 Thread Samuel
Hi,

I am developing android application using emulator  I need a tool to
browse the database.
What kind of tool that can work with android emulator  how to use it?

Many thanks,
Samuel

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

2011-12-11 Thread Stephan Wiesner
You can just pull the database file to your computer and open it with any
sqlite browser. Firefox has a nice extension.
personally i usually write some dump-methods for convenience sake so that i
can dump certain testdate to logcat on the device and only use a real tool
if I am really stuck .-)

Greetins from Lucerne,
Stephan

Am 11. Dezember 2011 16:54 schrieb Samuel jrl...@gmail.com:

 Hi,

 I am developing android application using emulator  I need a tool to
 browse the database.
 What kind of tool that can work with android emulator  how to use it?

 Many thanks,
 Samuel

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

2011-12-11 Thread smoogli
Correcting my question:

1. There is a way to send Standard SMS in Android
2. There is a way to send Binary SMS in Android i.e., using
SmsManager.sendDataMessage(...)
3. There is a way to send SMS to specific port, in JavaME i.e., String
smsUrl = sms:// + to + : + 99112;

Any idea on how to send *Standard SMS on specific port* in Android?

thanks

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


[android-developers] Re: Send SMS on specific application port

2011-12-11 Thread smoogli
Hi pskink,
thanks for your answer. yes, tried SmSManager.sendData(...short
destinationPort...).
But what I need is a SmSManager.sendTextMessage(... short PORT...).

any idea?

thanks again

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

2011-12-11 Thread satahippy
So it's possible if i modify android source? This is possible only for 
android 4? This is hard?

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

2011-12-11 Thread harsh chandel
you can do setid(any no) this will be your id
it is used to dynamically assign id to a view or a viewgroup

On Dec 11, 3:44 pm, Duygu Kahraman duygu.kahram...@gmail.com wrote:
 Selam Ali;

 Asıl sormak istediğim şu;mesela  TextView tv=new TextView(this); diye bir
 view yarattım.Eğer xmlde yaratmış olsaydım id sini de orada set edip
 çağırabilecektim kodun içinden.Yada R dosyasında bir referans oluşturmuş
 olacaktı.Ama program içinde yarattığımda R içinde tvye ait birşey
 yok.Sadece setId() diye birşey var ama setId() bana ben extra bir referans
 vermek istediğimde gerekli gibi geliyor.

 Yani şöyle birtane scrollview yaptım içinde birsürü item ekledim.Bunlardan
 3.sü yada 5.sini aldığımda birşey yapmak istiyorsam evet bunlara sıralı bir
 id vermeliyim ki kaçıncısını aldığımı anlayayım.İşte burada sıralı id
 vermek için setId() yi kullanırım.

 Yanlış mı düşünüyorum anlamıyorum.Sanki tv default bir id ataması
 gerekiyormuş gibi düşünüyorum.Yada veriyor ben ulaşmasını beceremedim.
 Çok basit biliyorum ama kafama takıldı.

 11 Aralık 2011 12:10 tarihinde Ali Chousein ali.chous...@gmail.com yazdı:









  Yazdığın kodun içinden view objelerini yaratınca, findViewById()
  fonksiyonunu çağırmana gerek yok. Yarattığın objelere referanslar
  elinde var zaten. Referansları saklayıp sonra kullanabilirsin. View
  objelerini XML'den tanımlasaydın, findViewById() sana aynı
  referansları döndürecekti.

  -
  Ali Chousein
  Weather-Buddy
 http://weatherbuddy.blogspot.com|http://twitter.com/weather_buddy
  Geo-Filtered Assistant
 http://geo-filtered-assistant.blogspot.com
 https://marketplace.cisco.com/apphq/products/994

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

 --
 ---
 Duygu Kahraman

 http://tr.linkedin.com/in/duygukahramann

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

2011-12-11 Thread James Black
Look at  http://source.android.com/  for all the information on how to
modify it, but then you will need to distribute your own OS for this
functionality to work.

On Sun, Dec 11, 2011 at 11:09 AM, satahippy satahi...@gmail.com wrote:

 So it's possible if i modify android source? This is possible only for
 android 4? This is hard?

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




-- 
I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

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

2011-12-11 Thread varad
Hi,

Is it possible to hook my own custom menu/screens at default system
level functions.

1. On my motorola MB05 [android 2.1] has no feature at call log where
I can delete logs selectively. The default functionality either allows
to delete entire call log else one-by-one no multiple selection is
available. Im thinking of creating some app which will override system
screen and somehow will take user to my screen where I can provide
multiple selection, another approach can be hooking system menu and
adding new additional menu to it.

This is applicable for many screens like gallery files [delete
multiple], messaging screen...

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

2011-12-11 Thread Kristopher Micinski
On Sun, Dec 11, 2011 at 11:09 AM, satahippy satahi...@gmail.com wrote:
 So it's possible if i modify android source? This is possible only for
 android 4? This is hard?


No, it's not only possible on Android 4.

Yes, it's quite hard.

Even if you do it nobody will download your firmware and run it on
their device, so no, this is impossible.

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


[android-developers] Re: Problems reading/writing to SQLite db on SD card.

2011-12-11 Thread MarkG123
adding NO_LOCALIZED_COLLATORS allowed me to open the database, but it
was still opening it as readonly (despite me asking for read.write),
it now blows up much later.

Is it even possible to open non Android databases on the SD card?  Am
I wasting my time with this?

Thanks.,


On Dec 10, 12:52 pm, MarkG123 mark.gilles...@gmail.com wrote:
 On Dec 9, 1:53 am, Nikolay Elenkov nikolay.elen...@gmail.com wrote:

  Try on a different device, to check if you are hitting some firmware bug.
  Have you tired creating the android metadata table manually (with sqlite3,
  before you try to use it in Android)?

  create table android_metadata(locale TEXT)
  insert into android_metadata values('en_US')

 The problem occurs on my Xperia Arc S, but it also does the same in
 the Android emulator (Gingerbread and Froyo images).,

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

2011-12-11 Thread Narendra Singh Rathore
 Hi,

 I am developing android application using emulator  I need a tool to
 browse the database.
 What kind of tool that can work with android emulator  how to use it?

 Many thanks,
 Samuel


Hi Samuel, even I tried to do the same-- installing sqlite browser to
emulator directly from the android market, but that was of no avail.
Another option is to use the sqlite browser externally, and to push/pull it
later using file explorer in DDMS. That will surely work.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Problems reading/writing to SQLite db on SD card.

2011-12-11 Thread skink


MarkG123 wrote:
 adding NO_LOCALIZED_COLLATORS allowed me to open the database, but it
 was still opening it as readonly (despite me asking for read.write),
 it now blows up much later.

 Is it even possible to open non Android databases on the SD card?  Am
 I wasting my time with this?

 Thanks.,



did you try flags:

OPEN_READWRITE | NO_LOCALIZED_COLLATORS

it worked for me and the dbase was read-write

pskink

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


[android-developers] Re: Problems reading/writing to SQLite db on SD card.

2011-12-11 Thread MarkG123
Yes, tried that, its stopped blowing up on when trying to access the
database initially, but it was still actually a read-only database
that would blow up later when I eventually tried a write operation on
it. (by calling DeleteOperation() )


My code is here:

http://pastebin.com/H8wbyLS1




On Dec 11, 6:52 pm, skink psk...@gmail.com wrote:
 MarkG123 wrote:
  adding NO_LOCALIZED_COLLATORS allowed me to open the database, but it
  was still opening it as readonly (despite me asking for read.write),
  it now blows up much later.

  Is it even possible to open non Android databases on the SD card?  Am
  I wasting my time with this?

  Thanks.,

 did you try flags:

 OPEN_READWRITE | NO_LOCALIZED_COLLATORS

 it worked for me and the dbase was read-write

 pskink

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


RE: [android-developers] Re: How to reduce the size of image in (kb) from Camera onpreviewframe???

2011-12-11 Thread Muhammad UMER

Hi,
thanks for reply, i am using this code snippet to save files on SD Card but 
the image size is to much e.g above 100 kb . but i want to reduce this size to 
1kb, is it possible and if it is possible then what i change in my code. 
basically i want to combine these images and  make a video with these images. 
thanks in advance 


camera.setPreviewCallback(new PreviewCallback() { // 10
// Called for each frame previewed
public void onPreviewFrame(byte[] data, Camera camera) {  // 11

Camera.Parameters parameters = camera.getParameters();
int format = parameters.getPreviewFormat();

 //YUV formats require more conversion
if (format == ImageFormat.NV21 /*|| format == ImageFormat.YUY2 || 
format == ImageFormat.NV16*/)
{
int w = parameters.getPreviewSize().width;
int h = parameters.getPreviewSize().height;
// Get the YuV image
YuvImage yuv_image = new YuvImage(data, format, w, h, null);
// Convert YuV to Jpeg
Rect rect = new Rect(0, 0, w, h);
ByteArrayOutputStream output_stream = new 
ByteArrayOutputStream();
yuv_image.compressToJpeg(rect, 100, output_stream);
byte[] byt=output_stream.toByteArray();

FileOutputStream outStream = null;
try {
outStream = new FileOutputStream(String.format(
/sdcard/%d.jpg, System.currentTimeMillis()));
outStream.write(byt);
outStream.close();
   
 Log.d(TAG, onPreviewFrame - wrote bytes: 
+ data.length);
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally {
}
Preview.this.invalidate();

}
}
  });
thanks and regards
umer

Date: Sat, 10 Dec 2011 06:28:25 -0800
From: l...@bendlin.us
To: android-developers@googlegroups.com
Subject: [android-developers] Re: How to reduce the size of image in (kb) from 
Camera onpreviewframe???

take the picture, then transform it to the required size and save as jpeg with 
the appropriate level of compression.  What have you tried?



-- 

You received this message because you are subscribed to the Google

Groups Android Developers group.

To post to this group, send email to android-developers@googlegroups.com

To unsubscribe from this group, 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] Json Error “org.json.JSONException: End of input at character 0 of ”

2011-12-11 Thread Duygu Kahraman
I get some information facebook api and i will parse with Json.But
when run the program i am getting org.json.JSONException: End of
input at character 0 of  error.When i debug i see Bad Request to
response.

Do you have any idea?

THX.

Duygu Kahraman

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

2011-12-11 Thread bob
I was reading the book Beginning Android Games, and the author says in
chapter six that the Model View Controller design is basically the
same as the Observer pattern in the 1994 book Design Patterns by the
Gang of Four.  I don't think MVC is the same as Observer.  What do
you guys think?

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

2011-12-11 Thread Latimerius
On Sun, Dec 11, 2011 at 8:54 PM, bob b...@coolgroups.com wrote:
 I was reading the book Beginning Android Games, and the author says in
 chapter six that the Model View Controller design is basically the
 same as the Observer pattern in the 1994 book Design Patterns by the
 Gang of Four.  I don't think MVC is the same as Observer.  What do
 you guys think?

No, MVC is definitely not the same as Observer.  I was puzzled by that
statement too.  The Observer pattern is used as part of MVC (depending
on the MVC flavour, View typically observes Model) but MVC means much
more than Observer.

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

2011-12-11 Thread String
There ya go then. I had a notion it was in there somewhere, but I had 
better things to do than trawl through the various docs looking for it - 
which is why I suggested the OP do so.

String

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

2011-12-11 Thread Jacob Nordfalk


On Dec 11, 3:38 pm, smoogli roy.ben.ha...@gmail.com wrote:
 I bumped in C2DM which is, as far as I understand, the equivalent to
 iPhone Push. Seehttp://code.google.com/android/c2dm/

 It is required that there is a 3rd party server that sends messages to
 the C2DM server.

In theory: No.

But 'the C2DM server' is Google (https://android.apis.google.com/c2dm/
send), which routes the messages to the phone (actually its the
Android Market app that does the routing) and  the C2DM server
requires a Google login authtoken (which you get by logging into the
Google account used for C2DM).

So, in practice: Yes, as the sender needs the authtoken (the login
credentials for the Google account used for C2DM).
So unless you keep them safe on a server, you'll have to hard code
these credentials into your app, exposing them and making any skilled
hacker able to log into the account (and, for example, disable
C2DM :-)



 I'm writing a server-less application.

 1. Is it possible that an Android application will communicate with
 the C2DM directly?

C2DM works like this: You App gets a registration_id  (actually from
the Android Market app that does the routing)

Those that wants to send a message to the device needs to know that
registration_id + authtoken (login credentials for the Google account
used for C2DM).


 2. Can such solution work for pushing small messages to applications
 installed on other devices?

Thats the idea of C2DM

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

2011-12-11 Thread Mark Murphy
There is no place that I am aware of to accomplish this, sorry.

On Sun, Dec 11, 2011 at 3:09 AM, Y2i yur...@gmail.com wrote:
 Hello everyone,

 Is there a place in Android to add a preview event handler, similar to
 GWT's Event.addNativePreviewHandler?  I'd like to intercept events like key
 down, key up, touch, trackball, etc., without modifying all
 activities/views.

 Thanks in advance for your help.

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



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

_The Busy Coder's Guide to Android Development_ Version 3.7 Available!

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


Re: [android-developers] Hooking my custom menu on phone log screen

2011-12-11 Thread Mark Murphy
You can create your own separate CallLog client with the features you seek.

Or, you can create your own custom firmware with modified versions of
the standard apps.

On Sun, Dec 11, 2011 at 11:28 AM, varad varad.tha...@gmail.com wrote:
 Hi,

 Is it possible to hook my own custom menu/screens at default system
 level functions.

 1. On my motorola MB05 [android 2.1] has no feature at call log where
 I can delete logs selectively. The default functionality either allows
 to delete entire call log else one-by-one no multiple selection is
 available. Im thinking of creating some app which will override system
 screen and somehow will take user to my screen where I can provide
 multiple selection, another approach can be hooking system menu and
 adding new additional menu to it.

 This is applicable for many screens like gallery files [delete
 multiple], messaging screen...

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



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

_The Busy Coder's Guide to Android Development_ Version 3.7 Available!

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


Re: [android-developers] How to block other android functions?

2011-12-11 Thread satahippy
I have no purpose to develop most downloading app. It would be app for 
limited number of people.
thnx for answers!)

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

2011-12-11 Thread Kristopher Micinski
On Sun, Dec 11, 2011 at 6:11 PM, satahippy satahi...@gmail.com wrote:
 I have no purpose to develop most downloading app. It would be app for
 limited number of people.
 thnx for answers!)

You can look at the details of the ActivityManager, which fires up
apps and loads them off into memory forking form a zygote, etc... But
these questions belong on an Android source list such as
android-platform.  In general, if you are asking this question and
don't already have an idea how to accomplish this, then it will
probably be extremely difficult for you to accomplish this, as it
requires building a custom version of the Android system, which you
will then have to load onto the devices which you want to control...

What is your problem?  What are you trying to prevent happening?
There are perhaps better ways...

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] Re: How to reduce the size of image in (kb) from Camera onpreviewframe???

2011-12-11 Thread lbendlin
what do you expect?  You keep the size and ask for 100% JPEG quality.

yuv_image.compressToJpeg(rect, 100, output_stream);


Reduce the size, and ask for something like 25% quality.

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

2011-12-11 Thread satahippy
First, i need autorun app.
And block many android functions, if you don't have permissions.

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

2011-12-11 Thread Kristopher Micinski
On Sun, Dec 11, 2011 at 6:34 PM, satahippy satahi...@gmail.com wrote:
 First, i need autorun app.
 And block many android functions, if you don't have permissions.


What are functions? Are they sdk calls?

You need to autorun your app, why don't you replace the home screen?
Or catch the boot broadcast event?

You sound like you're trying to do something security related, is it
because you're trying to keep your users from doing something because
you don't want them to realize they're on an android system? Or
because you're trying to make android more secure.  The first is not
easy but done (badly often) quite a bit... The second is a losing
battle, unless you've got a lot to dedicate to it..

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] How to block other android functions?

2011-12-11 Thread Kristopher Micinski
On Sun, Dec 11, 2011 at 6:39 PM, Kristopher Micinski
krismicin...@gmail.com wrote:
 On Sun, Dec 11, 2011 at 6:34 PM, satahippy satahi...@gmail.com wrote:
 First, i need autorun app.
 And block many android functions, if you don't have permissions.


 What are functions? Are they sdk calls?

*System

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

2011-12-11 Thread satahippy
Rather, neither the first and second. This is like a test for a students on 
Windows. That is, they cannot minimize or close the application etc. But 
with permissions they can all of 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

Re: [android-developers] How to block other android functions?

2011-12-11 Thread Kristopher Micinski
On Sun, Dec 11, 2011 at 7:06 PM, satahippy satahi...@gmail.com wrote:
 Rather, neither the first and second. This is like a test for a students on
 Windows. That is, they cannot minimize or close the application etc. But
 with permissions they can all of that.

This has nothing to do with permissions:  it's a basic functionality
of the Android that you can use more than one app in the system.  What
you really want to do is probably block all events that would take the
user out of the test application.  That means the home button, back
button, etc...

By the way, modifying the system isn't worth it for this, that is just
a huge amount of difficult systems programming (for someone who's
never done it before) for this simple thing.

I think that what you probably want to do is to replace the home
screen, that way if the user goes back to the home screen, you have
control over it..

There is an example home app in the SDK demos..

Basically, your problem is that you're writing a test program which
will run on Android devices, and you don't want people to be able to
go out and actually use the device for anything other than your test
system?

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] How to block other android functions?

2011-12-11 Thread satahippy
Yes

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

2011-12-11 Thread Samuel
Thanks guys,

God bless u all.

On Dec 12, 1:36 am, Narendra Singh Rathore nsr.curi...@gmail.com
wrote:
  Hi,

  I am developing android application using emulator  I need a tool to
  browse the database.
  What kind of tool that can work with android emulator  how to use it?

  Many thanks,
  Samuel

 Hi Samuel, even I tried to do the same-- installing sqlite browser to
 emulator directly from the android market, but that was of no avail.
 Another option is to use the sqlite browser externally, and to push/pull it
 later using file explorer in DDMS. That will surely work.

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

2011-12-11 Thread port443
Hello, I'm developing an app which plays MP3 streams over HTTP.

MediaPlayer seems to suit this task great, except one thing: pre-
buffering delay.
It takes 2-3 minutes from setting up to actual audio being output.
The stream is narrow: 16kbps; if I use wider stream, delay becomes
shorter, so this looks like a fixed-set buffering.

I also managed to make WinAmp working with same stream at ~5-10
seconds delay: 32kB buffer; 50% pre-buffer.

Is there any way to control how MediaPlayer is buffering?


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] Rendering the html file content in Webview

2011-12-11 Thread Jebarlin Robertson
Hi mark.

Thanks for the valuable reply Mark,

Yeah I am doing that.. but I have seen some other android applications
using the same, it was good and it was updating html content without
affecting the active content of the UI. I think they might have customized
the web view and the progress bar.

So I though it will be great, if anyone know some better way to do this.

Thanks.



On Wed, Dec 7, 2011 at 6:48 PM, Mark Murphy mmur...@commonsware.com wrote:

 On Wed, Dec 7, 2011 at 1:48 AM, Jebarlin Robertson
 jebarlin.andr...@gmail.com wrote:
  I am developing an android application with WebView. I am writing a html
  file and displaying it in webview,
 
  My requirement is to update the webview whenever I write new content to
 the
  html file.
 
  As of now I am just displaying the html file in webview initially and
 after
  that for every new content I am just calling webview.reload(uri).
  But when I do this, the webview is blinking for every reload and some
 times
  it is going to the top of the HTML content, if you were scrolled down.

 Of course. This is not significantly different than any other Web browser.

  Can any one please tell me some suggestion how to do it?

 You already are doing it.

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

 Android App Developer Books: http://commonsware.com/books

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

2011-12-11 Thread Brijesh
I want to know if there is any broadcast or other way in which we can
Identify that the application is now installed.

I tried intent.action_package_install and intent.action_package_added
but I am not able to receive the Broadcast.

Thanks,
Brijesh

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

2011-12-11 Thread SH
Hi all.

I have an app and fixing errors/bugs. But I have problem when
NewPictureNote.java calls PhotoTaker.java using
startActivityForResult() to take a photo and save. My code uses
callback and put binary data into Intent to return to previous
activity. Here is the code:


//PhotoTaker.java
public class PhotoTaker extends BetterDefaultActivity implements
SurfaceHolder.Callback{

//..

   public void clickHandler(view v){
//.
Intent returningIntent = new Intent();
returningIntent.putExtra(EXTRA_IMAGE_DATA, jpegPictureData);
setResult(RESULT_OK,returningIntent);
finish();
break;
}

}

//NewPictureNote.java
public class NewPictureNote extends BetterDefaultActivity {
//

protected void onActivityResult(int requestCode, int resultCode,
Intent data) {
super.onActivityResult(requestCode, resultCode, data);

try
{
//If we are getting a response from our picture taking 
activity
if(requestCode ==REQUEST_CODE_TAKE_IMAGE)
{
//If it was successful
if(resultCode == Activity.RESULT_OK)
{
//do something
}
else
{
//The user cancelled or an error occured
setResult(Activity.RESULT_CANCELED);
finish();
}
} else {
  //...
}
}
catch (Throwable e) {
  //...
}

}

When I debug code, clickHandler() method in  PhotoTaker.java works
well. It calls till the end of the clickHanlder() but the Activity
won't close and onActivityResult() does not work. Please let me know
what problem is? Thanks in advance.

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


[android-developers] How can i read cache.WiFi and cache.cell Files for cache locations data?

2011-12-11 Thread Saurabh Patel
Hi ALL

My android Device is Already root and i want to develop application like
Android Location Cache and etc. which get locations from cache.wifi and
cache.cell.

So how can i read this files from Android device. i have root access on my
android device.

Thanks And BR

Saurabh Patel

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

2011-12-11 Thread Aki
I am getting a crash with this in the stacktrace : 

12-09 10:26:19.761: ERROR/InputDispatcher(124): Key Dispatching ANR, 
currentTime=3061115876319
12-09 10:26:19.761: ERROR/InputDispatcher(124): ANR Window: Window{4083cbb8 
com.aki.something/com.aki.something.activity.ListingsActivity paused=false}
12-09 10:26:19.761: ERROR/InputDispatcher(124): ANR Reason: Touched window 
is processing previous input
12-09 10:26:19.761: ERROR/InputDispatcher(124): ANR Event Type: MotionEvent 
[eventTime=3046113007663]
12-09 10:26:19.761: ERROR/InputDispatcher(124): ANR Event Action: Down
12-09 10:26:19.761: ERROR/InputDispatcher(124): DUMP OF DISPATCH STATE:
12-09 10:26:19.761: ERROR/InputDispatcher(124):   DispatchEnabled: 1
12-09 10:26:19.761: ERROR/InputDispatcher(124):   DispatchFrozen: 0
12-09 10:26:19.761: ERROR/InputDispatcher(124):   FocusedApplication: 
name='AppWindowToken{40beafc0 token=HistoryRecord{408a64a0 
com.aki.something/.activity.ListingsActivity}}', 
dispatchingTimeout=15000.000ms
12-09 10:26:19.761: ERROR/InputDispatcher(124):   FocusedWindow: 
name='Window{4083cbb8 
com.aki.something/com.aki.something.activity.ListingsActivity paused=false}'
12-09 10:26:19.761: ERROR/InputDispatcher(124):   TouchDown: false
12-09 10:26:19.761: ERROR/InputDispatcher(124):   TouchSplit: false
12-09 10:26:19.761: ERROR/InputDispatcher(124):   TouchedWindows: none
12-09 10:26:19.761: ERROR/InputDispatcher(124):   Windows:
12-09 10:26:19.761: ERROR/InputDispatcher(124): 0: 
name='Window{4086fd18 Keyguard paused=false}', paused=false, 
hasFocus=false, hasWallpaper=false, visible=false, canReceiveKeys=false, 
flags=0x10120800, extraFlags=0x, type=0x07d4, layer=141000, 
frame=[0,25][320,480], visibleFrame=[0,25][320,480], 
touchableArea=[0,25][320,480], ownerPid=124, ownerUid=1000, 
dispatchingTimeout=15000.000ms
12-09 10:26:19.761: ERROR/InputDispatcher(124): 1: 
name='Window{409b9ec8 StatusBar paused=false}', paused=false, 
hasFocus=false, hasWallpaper=false, visible=true, canReceiveKeys=false, 
flags=0x0048, extraFlags=0x, type=0x07d0, layer=81000, 
frame=[0,0][320,25], visibleFrame=[0,0][320,25], 
touchableArea=[0,0][320,25], ownerPid=187, ownerUid=1000, 
dispatchingTimeout=15000.000ms
12-09 10:26:19.761: ERROR/InputDispatcher(124): 2: 
name='Window{40889ee0 StatusBarExpanded paused=false}', paused=false, 
hasFocus=false, hasWallpaper=false, visible=true, canReceiveKeys=false, 
flags=0x00011328, extraFlags=0x, type=0x07de, layer=51005, 
frame=[0,-480][320,-100], visibleFrame=[0,-480][320,-100], 
touchableArea=[0,-480][320,-100], ownerPid=187, ownerUid=1000, 
dispatchingTimeout=15000.000ms
12-09 10:26:19.761: ERROR/InputDispatcher(124): 3: 
name='Window{409c4750 TrackingView paused=false}', paused=false, 
hasFocus=false, hasWallpaper=false, visible=false, canReceiveKeys=false, 
flags=0x00020300, extraFlags=0x, type=0x07de, layer=51000, 
frame=[0,-397][320,58], visibleFrame=[0,-397][320,58], 
touchableArea=[0,-397][320,58], ownerPid=187, ownerUid=1000, 
dispatchingTimeout=15000.000ms
12-09 10:26:19.761: ERROR/InputDispatcher(124): 4: 
name='Window{409d5370 InputMethod paused=false}', paused=false, 
hasFocus=false, hasWallpaper=false, visible=false, canReceiveKeys=false, 
flags=0x0108, extraFlags=0x, type=0x07db, layer=21030, 
frame=[0,480][320,480], visibleFrame=[0,480][320,480], 
touchableArea=[0,480][320,480], ownerPid=217, ownerUid=10010, 
dispatchingTimeout=15000.000ms
12-09 10:26:19.761: ERROR/InputDispatcher(124): 5: 
name='Window{4083cbb8 
com.aki.something/com.aki.something.activity.ListingsActivity 
paused=false}', paused=false, hasFocus=true, hasWallpaper=false, 
visible=true, canReceiveKeys=true, flags=0x00010100, extraFlags=0x, 
type=0x0001, layer=21025, frame=[0,0][320,480], 
visibleFrame=[0,25][320,480], touchableArea=[0,0][320,480], ownerPid=2004, 
ownerUid=10074, dispatchingTimeout=15000.000ms
12-09 10:26:19.761: ERROR/InputDispatcher(124): 6: 
name='Window{4082b6e8 
com.aki.something/com.aki.something.activity.HomeActivity paused=false}', 
paused=false, hasFocus=false, hasWallpaper=false, visible=false, 
canReceiveKeys=false, flags=0x00010100, extraFlags=0x, 
type=0x0001, layer=21020, frame=[0,0][320,480], 
visibleFrame=[0,25][320,480], touchableArea=[0,0][320,480], ownerPid=2004, 
ownerUid=10074, dispatchingTimeout=15000.000ms
12-09 10:26:19.761: ERROR/InputDispatcher(124): 7: 
name='Window{408c9100 
com.dropbox.android/com.dropbox.android.activity.DropboxBrowser 
paused=false}', paused=false, hasFocus=false, hasWallpaper=false, 
visible=false, canReceiveKeys=false, flags=0x00010100, 
extraFlags=0x, type=0x0001, layer=21015, frame=[0,0][320,480], 
visibleFrame=[0,25][320,480], touchableArea=[0,0][320,480], ownerPid=1505, 
ownerUid=10091, dispatchingTimeout=15000.000ms
12-09 10:26:19.761: ERROR/InputDispatcher(124): 8: 
name='Window{408490a0 

Re: [android-developers] need a trigger when application is installed

2011-12-11 Thread TreKing
On Sun, Dec 11, 2011 at 10:47 PM, Brijesh masrani.brij...@gmail.com wrote:

 I want to know if there is any broadcast or other way in which we
 can Identify that the application is now installed.


If you're talking about starting your own application when it is installed,
you can't - the user has to explicitly start your app.

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

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

[android-developers] Re: Andrlid ListView focus mess up with two focusable items in each row

2011-12-11 Thread yanguoc...@gmail.com
Thanks for the tip. But since the new data is coming back from server,
I need to update the UI instead of just updating some of the data set,
since now the data in the listview is more when some new data is
coming back from server.

On Dec 9, 6:45 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 You don't really have to go through notifyDataSetChanged to update the UI.

 If you know that the set of items stays the same (i.e. only their data
 changed), you can iterate the listview's children and update them
 bypassing the adapter.

 -- Kostya

 09.12.2011 14:10, yanguoc...@gmail.com пишет:

  Thanks. But seems hard to maintain focus in a listview before and
  after the latyout pass. I check the source code of listview, it did
  something that may broke the focus in layout pass.

  On Dec 9, 5:46 am, lbendlinl...@bendlin.us  wrote:
  you will need to remember (per row) which item has focus, and when the list
  adapter reloads you will have to apply that knowledge and set
  requestFocus() to the appropriate item.

 --
 Kostya Vasilyev

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

2011-12-11 Thread Miles
Hi,

If I develop a plugin for the DEFAULT Android web browser, do I need
to have it signed with a proper signature?  Currently I've heard that
only the Adobe FLASH package signature is supported by the browser.
Indeed I cannot load my test plugin in an actual 2.3 device, but I am
able to load it in the emulator

Has anybody been successful in running their browser plugin on an
Android device?  Is this signature limitation true?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Json Error “org.json.JSONException: End of input at character 0 of ”

2011-12-11 Thread Ratheesh Valamchuzhy
paste the error log..

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

2011-12-11 Thread Brijesh
Yes I want to start my application when it is installed.

Is there any way that any other application can monitor for this and
once it get the trigger it can start the service.

On Dec 12, 9:59 am, TreKing treking...@gmail.com wrote:
 On Sun, Dec 11, 2011 at 10:47 PM, Brijesh masrani.brij...@gmail.com wrote:
  I want to know if there is any broadcast or other way in which we
  can Identify that the application is now installed.

 If you're talking about starting your own application when it is installed,
 you can't - the user has to explicitly start your app.

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

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


[android-developers] Re: need a trigger when application is installed

2011-12-11 Thread Zsolt Vasvari
No.  This is so spammy/virues apps cannot run without the user's
explicit instructions.

On Dec 12, 2:24 pm, Brijesh masrani.brij...@gmail.com wrote:
 Yes I want to start my application when it is installed.

 Is there any way that any other application can monitor for this and
 once it get the trigger it can start the service.

 On Dec 12, 9:59 am, TreKing treking...@gmail.com wrote:



  On Sun, Dec 11, 2011 at 10:47 PM, Brijesh masrani.brij...@gmail.com wrote:
   I want to know if there is any broadcast or other way in which we
   can Identify that the application is now installed.

  If you're talking about starting your own application when it is installed,
  you can't - the user has to explicitly start your app.

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

 - Show quoted text -

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


Re: [android-developers] Preview Events

2011-12-11 Thread Y2i
Thanks for your response Mark!  Your answer saddened me :(

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

[android-developers] Re: Eclipse and the ADT 15.0.1 Install

2011-12-11 Thread Mitul Patel
I would say that you could tryout with Eclipse Galileo. I have one uploaded 
file. You could check at 
http://hotfile.com/dl/135169076/1b6608a/android_eclipse.rar.html 

It contain the Eclipse Galileo with ADT Plugin Install.  Just you have to 
get Eclipse Galileo and get install the Android SDK only.


You can checkout my blog if you dont know how to install it.
http://becomeandroiddeveloper.blogspot.com/

Hope these would helpful to you.
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: need a trigger when application is installed

2011-12-11 Thread Brijesh
This is nothing spammy/virues in this Problem. Anyway we can start the
application on BOOT_COMPLETE so i want to start it when installation
completes.

On Dec 12, 11:32 am, Zsolt Vasvari zvasv...@gmail.com wrote:
 No.  This is so spammy/virues apps cannot run without the user's
 explicit instructions.

 On Dec 12, 2:24 pm, Brijesh masrani.brij...@gmail.com wrote:







  Yes I want to start my application when it is installed.

  Is there any way that any other application can monitor for this and
  once it get the trigger it can start the service.

  On Dec 12, 9:59 am, TreKing treking...@gmail.com wrote:

   On Sun, Dec 11, 2011 at 10:47 PM, Brijesh masrani.brij...@gmail.com 
   wrote:
I want to know if there is any broadcast or other way in which we
can Identify that the application is now installed.

   If you're talking about starting your own application when it is 
   installed,
   you can't - the user has to explicitly start your app.

   ---
--
   TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
   transit tracking app for Android-powered devices- 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: need a trigger when application is installed

2011-12-11 Thread Brijesh
Hi,

Any one tried android.intent.action.PACKAGE_ADDED intent ? can it
receive information about other application.

i.e Application A can monitor when application B is re-installed? I
tried but i didn't find any solution.

On Dec 12, 11:32 am, Zsolt Vasvari zvasv...@gmail.com wrote:
 No.  This is so spammy/virues apps cannot run without the user's
 explicit instructions.

 On Dec 12, 2:24 pm, Brijesh masrani.brij...@gmail.com wrote:







  Yes I want to start my application when it is installed.

  Is there any way that any other application can monitor for this and
  once it get the trigger it can start the service.

  On Dec 12, 9:59 am, TreKing treking...@gmail.com wrote:

   On Sun, Dec 11, 2011 at 10:47 PM, Brijesh masrani.brij...@gmail.com 
   wrote:
I want to know if there is any broadcast or other way in which we
can Identify that the application is now installed.

   If you're talking about starting your own application when it is 
   installed,
   you can't - the user has to explicitly start your app.

   ---
--
   TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
   transit tracking app for Android-powered devices- 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