[android-developers] Re: FCM + Nearby conflict.

2017-02-13 Thread Sergey Sorokin
I've solved it. 
You can use the same latest play-services and firebase versions. 
Perhaps it's a bug but for now to ensure that play-services plugin will 
check available versions correctly place line
apply plugin: 'com.google.gms.google-services'
*at the bottom* of your build.gradle file (below the dependencies block).

Check out https://firebase.google.com/docs/android/setup#add_the_sdk

>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/4c8045e1-495a-41ef-a4ad-352dd224cbfa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] FCM + Nearby conflict.

2017-02-12 Thread Sergey Sorokin
Hi,
I need both Firebase Cloud Messaging and Nearby support in my app.
*The latest allowed Nearby version is 9.0.0.* So, I have to use following 
dependencies:



*//Firebase *compile ‘com.google.firebase:firebase-core:9.0.0'
compile ‘com.google.firebase:firebase-messaging:9.0.0'

*//Nearby *compile ‘com.google.android.gms:play-services-nearby::9.0.0’


It compiles successfully but when I try to get Firebase instance app 
crashes with IllegalStateException:


java.lang.IllegalStateException: Fatal Exception thrown on Scheduler.Worker 
thread.

at 
rx.android.schedulers.LooperScheduler$ScheduledAction.run(LooperScheduler.java:114)

at android.os.Handler.handleCallback(Handler.java:746)

at android.os.Handler.dispatchMessage(Handler.java:95)

at android.os.Looper.loop(Looper.java:148)

at android.app.ActivityThread.main(ActivityThread.java:5443)

at java.lang.reflect.Method.invoke(Native Method)

at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)

Caused by: java.lang.IllegalAccessError: Method 'void 
android.support.v4.content.ContextCompat.()' is inaccessible to class 
'com.google.firebase.iid.zzg' (declaration of 'com.google.firebase.iid.zzg' 
appears in /data/app/com.obolus.poc.customer-1/base.apk)

at com.google.firebase.iid.zzg.zzeC(Unknown Source)

at com.google.firebase.iid.zzg.(Unknown Source)

at com.google.firebase.iid.zzg.(Unknown Source)

at com.google.firebase.iid.zzd.zzb(Unknown Source)

at com.google.firebase.iid.FirebaseInstanceId.getInstance(Unknown Source)


Using of different versions for these components causes compile error. 
Firebase 10.0.1 without Nearby works fine but I need both.


How can I solve this issue?


Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/634dbfe4-6b87-48ae-9990-8e6412063f0c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: 505 error when update(or in sometimes install) application from Google Play

2016-03-15 Thread Elizarov Sergey
I solved, answer in 
https://code.google.com/p/android/issues/detail?id=189079

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/507463e7-1a2f-46cf-af4d-f5a7992581d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] 505 error when update(or in sometimes install) application from Google Play

2016-03-15 Thread Elizarov Sergey
HI, developers!
There is a problem: some users (usually with *android 5.1.1*) can not update my 
app. Who can tell what needs to be done to solve this problem.
I noticed that these problems started when I updated *Android SDK to 
version 23*, if the downgrade android sdk to 22, the problem does not occur.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/e66c27ea-aef4-4653-ab0c-b166d4224920%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] deleteIntent not sent on NotificationManager.cancel method

2013-02-07 Thread Sergey Tolkachov
Hi,
From 
NotificationManagerService.cancelNotificationWithTaghttp://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.1.1_r1/android/app/INotificationManager.java#INotificationManager.cancelNotificationWithTag%28java.lang.String%2Cjava.lang.String%2Cint%29
 I 
can learn that deleteIntent is not sent when I clearing 
notification programmaticly by using NotificationManager cancel method.

It looks like api bug (or at least lack of functionality in 
NotificationManager class)
Is there any way to call it.

I am aware of option to get it via PendingIntent.getBroadcast , but I don't 
like it.

I am developing automation framework and I won't know correct parameters 
for deleteIntent.

Thank you in advance,
Sergey.

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Forum very slow

2012-11-08 Thread Sergey Ivanov
I think it's not a good idea to create sites as SO. It will be much better 
if a lot of information would be presented on 1 site (StackOverflow).
I not appreciate this.
Successful development requires reading the documentation which is written 
in English.
In addition, SO has already collected enough developers who want to help 
others. And it's not a good idea to invite them to other websites (I tried 
to use similiar site on my native language but I found it unuseful).

Sorry for my English. It's not good enough :(

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

2012-08-19 Thread Sergey Mitugov
Uri number = Uri.parse(tel:#);
Intent callIntent = new Intent(Intent.ACTION_DIAL, number);
# is not transferred
What it is possible to make?

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

2012-08-19 Thread Sergey Mitugov


On Sunday, August 19, 2012 3:41:26 PM UTC+4, Sergey Mitugov wrote:

 Uri number = Uri.parse(tel:#);
 Intent callIntent = new Intent(Intent.ACTION_DIAL, number);
 # is not transferred
 What it is possible to make?


On Sunday, August 19, 2012 3:41:26 PM UTC+4, Sergey Mitugov wrote:

 Uri number = Uri.parse(tel:#);
 Intent callIntent = new Intent(Intent.ACTION_DIAL, number);
 # is not transferred
 What it is possible to make?


On Sunday, August 19, 2012 3:41:26 PM UTC+4, Sergey Mitugov wrote:

 Uri number = Uri.parse(tel:#);
 Intent callIntent = new Intent(Intent.ACTION_DIAL, number);
 # is not transferred
 What it is possible to make?


On Sunday, August 19, 2012 3:41:26 PM UTC+4, Sergey Mitugov wrote:

 Uri number = Uri.parse(tel:#);
 Intent callIntent = new Intent(Intent.ACTION_DIAL, number);
 # is not transferred
 What it is possible to make?


On Sunday, August 19, 2012 3:41:26 PM UTC+4, Sergey Mitugov wrote:

 Uri number = Uri.parse(tel:#);
 Intent callIntent = new Intent(Intent.ACTION_DIAL, number);
 # is not transferred
 What it is possible to make?


On Sunday, August 19, 2012 3:41:26 PM UTC+4, Sergey Mitugov wrote:

 Uri number = Uri.parse(tel:#);
 Intent callIntent = new Intent(Intent.ACTION_DIAL, number);
 # is not transferred
 What it is possible to make?


On Sunday, August 19, 2012 3:41:26 PM UTC+4, Sergey Mitugov wrote:

 Uri number = Uri.parse(tel:#);
 Intent callIntent = new Intent(Intent.ACTION_DIAL, number);
 # is not transferred
 What it is possible to make?


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

2012-08-19 Thread Sergey Mitugov
thank you very much, Has helped

On Sunday, August 19, 2012 3:53:41 PM UTC+4, Mark Murphy (a Commons Guy) 
wrote:

 # is a special character in URLs, so it would not surprise me if that 
 affects Uri values as well. You could try using hex notation: 

 Uri.parse(tel:%23) 

 and see if that works. 

 On Sun, Aug 19, 2012 at 7:41 AM, Sergey Mitugov 
 sergey...@gmail.comjavascript: 
 wrote: 
  Uri number = Uri.parse(tel:#); 
  Intent callIntent = new Intent(Intent.ACTION_DIAL, number); 
  # is not transferred 
  What it is possible to make? 
  
  -- 
  You received this message because you are subscribed to the Google 
  Groups Android Developers group. 
  To post to this group, send email to 
  android-d...@googlegroups.comjavascript: 
  To unsubscribe from this group, send email to 
  android-developers+unsubscr...@googlegroups.com javascript: 
  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 4.0 Available! 


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

[android-developers] How the contact chosen by the user to place in a textview

2012-08-17 Thread Sergey Mitugov
Begining

Intent pickIntent = new Intent(Intent.ACTION_PICK, 
android.provider.ContactsContract.Contacts.CONTENT_URI);
startActivityForResult(pickIntent, PICK_RESULT);

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

2012-07-05 Thread Sergey Tolkachov


 Why there is no read methods in NotificationManager? 

 Because an app can keep track of its own notifications, and an app 
 should not have access to other apps' notifications. 


Because an app can keep track of its own notifications...

It's not an answer. You can keep track of everything you did, but somehow 
you have get methods almost everywhere.
I don't want to have access to other apps notifications (in fact I want, 
but I understand why it's forbidden) 
But I don't really see any reason why 
NotificationManager.notify/cancel/cancelAll return void and not giving any 
indication my notifications.
It's looks like a poor design for me.


  Is it on purpose? 

 Most likely. 

  Will it be added in future releases? 

 You will find out when the rest of us find out, when future releases 
 are released. 

  If not, maybe somebody know how to get Intent object out of 
 PendingIntent? 

 There is no API for that, sorry. 

 -- 
 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] Re: NotificationManager, get methods

2012-07-05 Thread Sergey Tolkachov
Ok, then suggest a method how to verify that notification exists.
It's not so weird scenario to be able to check that some notification 
exists.

On Thursday, July 5, 2012 8:51:25 PM UTC+3, MagouyaWare wrote:

 It's not an answer.

 Yes it is.  Just because you don't like the answer doesn't mean it isn't 
 an answer.

 But I don't really see any reason why 
 NotificationManager.notify/cancel/cancelAll return void and not giving any 
 indication my notifications.
 It's looks like a poor design for me.

 Well, to me it would seem like a poor design to have it return something 
 that you obviously should already have a reference to...

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


 On Thu, Jul 5, 2012 at 11:39 AM, Sergey Tolkachov 
 sergey.tolkac...@gmail.com wrote:

 It's not an answer.




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

2012-07-05 Thread Sergey Tolkachov


 Supply both contentIntent and deleteIntent, and track it yourself, as 
 I originally described. 

 You can also try FLAG_NO_CREATE with the getActivity() (or whatever) 
 call to PendingIntent. In theory, if it returns null, there is no 
 existing PendingIntent to be used, and therefore the Notification that 
 had that PendingIntent in contentIntent is gone. Personally, I'm not 
 completely comfortable with this model, as I am unclear on the 
 behavior if your process goes away, but you are welcome to experiment 
 with it. 


As I wrote at my first post:
I can do it via PendingIntents (thought it require to ask application 
developers to make a couple of things in code)
I am doing exactly what you suggest here. The problem is that it's 
not straight forward approach and it require from developers to right 
special code (like giving action type to intent). Another problem that it 
will not give me opportunity to verify notification ticker (I am doing it 
right now by asking developers to add it to intent category)


  It's not so weird scenario to be able to check that some notification 
  exists. 

 IMHO, it is. 

 If you want the Notification to be gone, cancel() it. 

 If you want the Notification to be there, raise it again (with the 
 same ID), and it will replace the one that is there if it happens to 
 be there, or will create it anew if not. 


As I mentioned I am writing testing platform, so it's not about developer 
using this method.
 

 Most situations will fit one of the above two cases. Now, I won't deny 
 that it would be *handy* to have an isNotificationActive() method or 
 some such, but it is not there. Of course, you are welcome to add such 
 a method in a contribution to the AOSP, if you feel sufficiently 
 strongly about it. 


Good idea, probably I will do it.

Thanks for answering.
 

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

 Android Training in DC: http://marakana.com/training/android/ 


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

[android-developers] Re: NotificationManager, get methods

2012-07-03 Thread Sergey Tolkachov
No answer?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: may i declare uses-permission in the AndroidManifest.xml of the test project?

2012-06-29 Thread Sergey Tolkachov
Hi,
nothing, but declaring target package should be declared in test project.
You must declare it in app manifest.

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

2012-06-29 Thread Sergey Tolkachov
Hi,
I am developing testing platform based on google 
instrumentation architecture.
One of requirements from my customers was checking if some notification 
(type+ticker) are visible now.
I can do it via PendingIntents (thought it require to ask application 
developers to make a couple of things in code)

Why there is no read methods in NotificationManager? Is it on purpose? Will 
it be added in future releases?

If not, maybe somebody know how to get Intent object out of PendingIntent?

Thank you in advance.

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

[android-developers] Usb Accessory, receiver not receive USB_ACCESSORY_ATTACHED

2012-06-19 Thread Sergey Vakulenko
Hello

I have application, it use a usb accessory. One of my activity catch
USB_ACCESSORY_DETACHED and
USB_ACCESSORY_DETACHED  events, its works fine.

here is my AndroidManifest.xml
-
 activity
android:screenOrientation=portrait
android:name=.WSInstallatorActivity
android:exported=true
 
 intent-filter
action
android:name=android.intent.action.ACTION_POWER_CONNECTED /
action
android:name=android.hardware.usb.action.USB_ACCESSORY_ATTACHED /
action
android:name=android.hardware.usb.action.USB_ACCESSORY_DETACHED /
/intent-filter


meta-data
 
android:name=android.hardware.usb.action.USB_ACCESSORY_ATTACHED
android:resource=@xml/accessory_filter /

/activity
-

Nevertheless, i would like delegate this to my service or brodcast
receiver.

When i move intent-filter and meta-data to my broadcast receiver, i
not receive no more attach event. What is funny, i continue receive
detach event.
Its looks like USB_ACCESSORY_ATTACHED works only with activity,
despite Broadcast Action classification in documentation.

http://developer.android.com/reference/android/hardware/usb/UsbManager.html#ACTION_USB_ACCESSORY_ATTACHED



My conclusion is right? Maybe this is a bug ?



thanks in advance.
Sergey





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

2012-03-19 Thread Sergey Okhotny
Clear data option from application settings does not remove data from sd 
card located in getExternalStorageDirectory() 
It does compute it size but does not clear!

how to fix this?

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

[android-developers] Broken link at Tutorial

2011-11-21 Thread Sergey
http://developer.android.com/resources/tutorials/hello-world.html

The first link at page, Building and Running from the Command Line
leads to http://guide/developing/building/building-cmdline.html, must
be a 
http://developer.android.com/guide/developing/building/building-cmdline.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] Andoid: send messages from emulator to another emulator

2011-07-05 Thread Sergey Zagriychuk
Hi, I have started two emulators on 5554 and 5556 ports.
After it start terminal to the 5554 emulator:

1) Start telnet.
telnet

2) Open telnet connection to the emulator port. Type in telnet window

o localhost 5554

3) Send message from telnet to second emulator (5556)

sms send 5556 Test Message

I can see sent message in 5554 emulator but cannot see received
message on 5556.
What I should to do for receiving messages on 5556 emulator?
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] I want to compile libmedia.so and JNI libraries individually

2011-06-27 Thread Sergey Nilga
Are you shure that the files you modified are included into the  build
configuration that you use ? I mean that some real files might be excluded
from, say, simulator build and some stubs might be used instead. Changing of
such files then does not affect them to be rebuild.
 On Jun 27, 2011 9:59 AM, rinks24583 rinks24...@gmail.com wrote:
 Hi,

 Currently I am making changes to source files in frameworks/base/media/
 libmedia and frameworks/base/media/libstagefright of Android 2.3
 (Gingerbread). After making any change I am compiling the complete
 Gingerbread pacakge and SDK by giving following commands:

 make -j12
 make sdk

 This process take a lot of time. To avoid this I tried compiling just
 framework/base folder libraries by giving following command:
 source build/envsetup.sh
 mm frameworks/base

 Its says make: Nothing to be done for `frameworks/base/'.. I am sure
 that I have made changes to some files in frameworks/base/media/
 libmedia and frameworks/base/media/libstagefright folders. But I am
 not sure why it doesn't compile those libraries in frameworks/base
 folder.

 Please let me know if I am missing anything. Also please let me know
 if there is any other method to compile some part of Android 2.3
 individually to avoid time consuming process of compiling the complete
 Gingerbread repo.

 Regards,
 Rinkal

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: I want to compile libmedia.so and JNI libraries individually

2011-06-27 Thread Sergey Nilga
Where did you try to place your newly built library ? Note that /system
folder is mounted as read only in simulator. To ensure this run:
$ adb
$ su
# mount

/dev/block/mtdblock0 /system yaffs2 ro 0 0
...

You need to find out how to remount /system as read-write...

PS: as it was mentioned early this is not application development topic, but
firmware related...



On Mon, Jun 27, 2011 at 2:38 PM, rinks24583 rinks24...@gmail.com wrote:

 I am sure that files are included in build. Now I am able to build
 *.so individually. Its mandatory to run following commands before
 giving mm command:

 source build/envsetup.sh
 lunch 1
 cd frameworks/base
 mm

 But I have problem transferring them to emulator. Whenever I try to
 transfer newly build *.SO file, it says there is No space left on
 device and doesn't transfer that file.

 Can anybody through some light on this issue?

 -Rinkal

 On Jun 27, 1:19 pm, Sergey Nilga sni...@gmail.com wrote:
  Are you shure that the files you modified are included into the  build
  configuration that you use ? I mean that some real files might be
 excluded
  from, say, simulator build and some stubs might be used instead. Changing
 of
  such files then does not affect them to be rebuild.
   On Jun 27, 2011 9:59 AM, rinks24583 rinks24...@gmail.com wrote:
 
   Hi,
 
   Currently I am making changes to source files in frameworks/base/media/
   libmedia and frameworks/base/media/libstagefright of Android 2.3
   (Gingerbread). After making any change I am compiling the complete
   Gingerbread pacakge and SDK by giving following commands:
 
   make -j12
   make sdk
 
   This process take a lot of time. To avoid this I tried compiling just
   framework/base folder libraries by giving following command:
   source build/envsetup.sh
   mm frameworks/base
 
   Its says make: Nothing to be done for `frameworks/base/'.. I am sure
   that I have made changes to some files in frameworks/base/media/
   libmedia and frameworks/base/media/libstagefright folders. But I am
   not sure why it doesn't compile those libraries in frameworks/base
   folder.
 
   Please let me know if I am missing anything. Also please let me know
   if there is any other method to compile some part of Android 2.3
   individually to avoid time consuming process of compiling the complete
   Gingerbread repo.
 
   Regards,
   Rinkal
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


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

[android-developers] Honeycomb Bitmap.createBitmap

2011-04-27 Thread Sergey Okhotny
Was it changed where Bitmap.createBitmap stores bitmap data (dalvik heap or 
Native heap)?
Becuase I can successful create bitmap 2000x2000 on Android 2.2 and get 
OutOfMemoryException on 3.0?
 
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: Help me to realize preferences scheme to use it between activities

2011-04-12 Thread Sergey K
Thank you for your answers. I was able to use the preferences in one 
Activity, and between them could 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] Help me to realize preferences scheme to use it between activities

2011-03-31 Thread Sergey K
Hi, i want to create app that connect to site with auth (login + password) 
credentials. I want to place l+p in preferences (My first and main activitiy 
must be form with login + password) can u share some advices to realize this 
scheme? My currently code work only in one activity, if i want to use 
preferences in another activity. I can attach my code if it's necessary.

Maybe some of you can offer another way to store login and password for my 
app, with using in activities.

Thanks for your attention!

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

2011-03-25 Thread Sergey Okhotny
Now I have workaround like this

private void setSafeAdapter(AbsListView view, BaseAdapter adapter){
if(view instanceof ListView){
((ListView)view).setAdapter(adapter);
}else{
 view.setAdapter(adapter);
}
}

On Fri, Mar 25, 2011 at 5:14 PM, pawpaw17 georgefraz...@yahoo.com wrote:

 Sergey,

 I'm having the same problem, and it just started after I upgraded to
 API 11.

 Notice this:

 --
 void android.widget.AbsListView.setAdapter(ListAdapter adapter)

 public void setAdapter (ListAdapter adapter)
 Since: API Level 11
 Sets the adapter that provides the data and the views to represent the
 data in this widget.

 Parameters
 adapter  The adapter to use to create this view's content.
 -

 Note the API Level 11. Are you only seeing the crash on older phones?
 Why is this method limited to API 11 when it used
 to work fine with the older APIs ???

 Can anyone shed light? I guess our only solution is to work around.
 Any ideas? This causes a regression from past
 behavior for me, so I think this is and Android bug.



 On Mar 22, 11:56 am, TreKing treking...@gmail.com wrote:
  Yeah, that doesn't help much. Guess you'd have to look at the source to
 see
  what it's doing at that point.
 
 
 ---­--
  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




-- 
Sergey A. Okhotny
Skype:okhotny / G-Talk:okho...@gmail.com
Phone:+380 (68) 322-0338

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

2011-03-22 Thread Sergey Okhotny
E/AndroidRuntime(14762): FATAL EXCEPTION: main
E/AndroidRuntime(14762): java.lang.NoSuchMethodError:
android.widget.AbsListView.setAdapter
E/AndroidRuntime(14762):at
com.reader.android.LocalStore.bindAdapters(LocalStore.java:534)
E/AndroidRuntime(14762):at
com.reader.android.LocalStore.ReloadCatalogBind(LocalStore.java:438)
E/AndroidRuntime(14762):at
com.reader.android.LocalStore.access$32(LocalStore.java:437)
E/AndroidRuntime(14762):at
com.reader.android.LocalStore$8.onPostExecute(LocalStore.java:420)
E/AndroidRuntime(14762):at
com.reader.android.LocalStore$8.onPostExecute(LocalStore.java:1)
E/AndroidRuntime(14762):at
android.os.AsyncTask.finish(AsyncTask.java:417)
E/AndroidRuntime(14762):at
android.os.AsyncTask.access$300(AsyncTask.java:127)
E/AndroidRuntime(14762):at
android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429)
E/AndroidRuntime(14762):at
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(14762):at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(14762):at
android.app.ActivityThread.main(ActivityThread.java:4627)
E/AndroidRuntime(14762):at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(14762):at
java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(14762):at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
E/AndroidRuntime(14762):at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
E/AndroidRuntime(14762):at dalvik.system.NativeStart.main(Native
Method)
W/ActivityManager( 1997):   Force finishing activity
com.reader.android/.Main


On Fri, Mar 18, 2011 at 3:27 PM, TreKing treking...@gmail.com wrote:

 On Fri, Mar 18, 2011 at 3:56 AM, Sergey Okhotny okho...@gmail.com wrote:

 AbsListView mNewspapersView =
 (AbsListView)findViewById(R.id.localstore_newspapers);
 this fails
 mNewspapersView.setAdapter(new NewspapersListAdapter());
 but if I do
 ((ListView)mNewspapersView).setAdapter(new NewspapersListAdapter());
 this works ok


 And the callstack from the crash?



 -
 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




-- 
Sergey A. Okhotny
Skype:okhotny / G-Talk:okho...@gmail.com
Phone:+380 (68) 322-0338

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

2011-03-18 Thread Sergey Okhotny
Layout:
ListView
android:id=@+id/localstore_newspapers
android:layout_width=fill_parent
android:layout_height=fill_parent /

Java:
private class NewspapersListAdapter extends BaseAdapter {}

AbsListView mNewspapersView = 
(AbsListView)findViewById(R.id.localstore_newspapers);
this fails
mNewspapersView.setAdapter(new NewspapersListAdapter());
but if I do 
((ListView)mNewspapersView).setAdapter(new NewspapersListAdapter());
this works ok





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

2011-03-17 Thread Sergey Okhotny
I've two layouts for diferrent screen size.
Small uses ListView, for large - GridView. Both have same id 
On activity I cast the to AbsListView.
Then I set adapter using setAdapter(new myAdapter), myAdapter extends 
BaseAdapter.
And if my AbsListView is GridView, everything is fine, but if it is ListView 
- then I got exception NoSuchMethodError!
If I cast AbsListView to ListView - then it will work fine too.
How to make it working without injecting cast??

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

2011-01-20 Thread Sergey Glotov

On Wednesday, January 19, 2011 9:01:01 AM UTC+3, kypriakos wrote:


 (2) Does anyone have details on how this browser is implemented 
 or where I can find that? Is it a derivative of the WebKit? 


Source code of Android browser is here: 
http://android.git.kernel.org/?p=platform/packages/apps/Browser.git;a=tree

Regards
Sergey Glotov

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

2010-12-21 Thread Sergey
Hello.
I used method:
sendDataMessage (String destinationAddress, String scAddress, short
destinationPort, byte[] data, PendingIntent sentIntent, PendingIntent
deliveryIntent);

If data length more then 140 bytes I get NullPointerException. OS:
2.1.
How can I send a multipart binary sms?

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

2010-11-22 Thread Sergey Lappo
I think the 520mhz processor, 128 megabytes of RAM and video card
GoForce 5500 is a good performance for OS Android

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


[android-developers] How to promote my Android application on the Android market

2010-11-17 Thread Sergey
Hello All,

I have tried to find the way to promote my Android application. But
after some hours of searching the net I found out just a few BTL
(below-the-line) ways to promote.

- work with review sites. - it's a quite time consuming
- bestratingfor.me - quite easy and effective.

Are their any other ways to promote my application? Please do not
mention ATL methods such as context ads, banners, etc.

Thanks,
Sergey.

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

2010-11-08 Thread Sergey
I have the same problem.
I try to fix it and deleted 'exit' command from ndk-build file, but
then i have another error:
target pattern contains no '%' in 82 line of setup-toolchain.mk

I think it some bug of NDK or make.exe

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

2010-11-08 Thread Sergey
I have the same problem.
I try to fix it and deleted 'exit' command from ndk-build file, but
then i have another error:
target pattern contains no '%' in 82 line of setup-toolchain.mk

I think it some bug of NDK or make.exe

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

2010-08-24 Thread Sergey Timoshin
 android:text=TextView android:layout_x=76px
 android:layout_y=166px  /TextView /AbsoluteLayout

 then, strings.xml :
 view plaincopy to clipboardprint?

   1. ?xml version=1.0 encoding=utf-8?
   2. resources
   3.     string name=helloHello World, TestAppActiv!/string
   4.     string name=app_nameTestApp/string
   5. /resources

 ?xml version=1.0 encoding=utf-8? resources string
 name=helloHello World, TestAppActiv!/string string
 name=app_nameTestApp/string /resources

 AndroidManifest.xml :

 view plaincopy to clipboardprint?

   1. ?xml version=1.0 encoding=utf-8?
   2. manifest xmlns:android=http://schemas.android.com/apk/res/
 android
   3.       package=test.and
   4.       android:versionCode=1
   5.       android:versionName=1.0
   6.     application android:icon=@drawable/icon
 android:label=@string/app_name
   7.         activity android:name=.TestAppActiv
   8.                   android:label=@string/app_name
   9.             intent-filter
  10.                 action
 android:name=android.intent.action.MAIN /
  11.                 category
 android:name=android.intent.category.LAUNCHER /
  12.             /intent-filter
  13.         /activity
  14.
  15.     /application
  16.
  17.
  18. /manifest

 ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://
 schemas.android.com/apk/res/android package=test.and
 android:versionCode=1 android:versionName=1.0 application
 android:icon=@drawable/icon android:label=@string/app_name
 activity android:name=.TestAppActiv android:label=@string/
 app_name intent-filter action
 android:name=android.intent.action.MAIN / category
 android:name=android.intent.category.LAUNCHER / /intent-filter /
 activity /application /manifest

 and default.properties file :
 view plaincopy to clipboardprint?

   1. # This file is automatically generated by Android Tools.
   2. # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
   3. #
   4. # This file must be checked in Version Control Systems.
   5. #
   6. # To customize properties used by the Ant build system use,
   7. # build.properties, and override values to adapt the script to
 your
   8. # project structure.
   9.
  10. # Project target.
  11. target=android-3

 # This file is automatically generated by Android Tools. # Do not
 modify this file -- YOUR CHANGES WILL BE ERASED! # # This file must be
 checked in Version Control Systems. # # To customize properties used
 by the Ant build system use, # build.properties, and override values
 to adapt the script to your # project structure. # Project target.
 target=android-3

 Just as I said, I did install everything I needed (SDK, ADT plugin,
 etc...), but it still wont work
 I appreciate any help!
 Thanks

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

-- 
Sergey Timoshin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 write ContentProvider for content not stored in a file nor DB?

2010-08-19 Thread Sergey
Thanks a lot everyone!
It looks like the is no easy way.
I will try what Kostya suggested.
If I'll fail, I'll just wait for the future SDK versions to add the
missing APIs.
Or may be I'll develop my app for iPhone instead. (just kidding ;-)
Thanks,
--Sergey




On Aug 16, 6:54 am, Kostya Vasilyev kmans...@gmail.com wrote:
   Sereja  Pavel,

 It should be just a little bit more involved than writing a SQL-based one.

 For structured data, you'd need to create your own Cursor subclass, and
 return it from the provider's query method. If query results are small
 enough to fit in RAM, then it's easiest to use MatrixCursor.

 For stream-based data, ContentResolver.openStream seems to eventually
 call ContentProvidersubclass.openFile. This method returns a special
 helper class, ParcelFileDescriptor, which allows file descriptors to be
 passed across process boundaries.

 -- Kostya

 16.08.2010 17:18, Paul Turchenko пишет:



  They use Database! Sergey is asking about building content provider
  around non-db storage.

  On Aug 16, 4:29 am, Indicator Veritatismej1...@yahoo.com  wrote:
  Expect to override a lot more methods in ContentProvider and
  ContentResolver than other people do. You may want to look at the
  example WidgetExplorer from Unlocking Android. Go to the book's
  website, download the sample code and look in the code for chapter 5.

  I suggest this example because here too, the authors override more
  methods than usual because they are making their own ContentProvider.
  But of course, the example will not be exactly the same as what you
  want.

  On Aug 12, 2:45 pm, Sergeyserge...@gmail.com  wrote:

  Hi,
  I need to write a ContentProvider to provide a dynamically generated
  audio stream to be playable by MediaPlayer. That is MediaPlayer will
  use ContentResolver.openInputStream() to play it.
  I have read a lot of discussions about this problem but no one had a
  solution yet.
  The most recent one was in January 
  2010:http://groups.google.com/group/android-developers/browse_thread/threa...
  Have anyone found a solution yet?
  Any ideas are greatly appreciated.
  Thanks a lot,
  --Sergey

 --
 Kostya Vasilev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com

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


[android-developers] How to get click position in TextView?

2010-08-19 Thread Sergey
Hello,
I need to process words on which user clicked (touched) in the
TextView. But there seems to be no way to figure out which word was
clicked.
TextView.getSelectionStart() always returns 0 even if I use
setMovementMethod(ScrollingMovementMethod.getInstance());

I have also tried EditText, but it pops up the on-screen keyboard
every time user clicks the text. And I don't want the text to be
editable anyway, and the cursor should not be visible.

Also I have tried to use setInputMethod() to use my own InputMethod
class that overrides onTouchEvent() to get the coordinates of the
click point. But than there is no way to convert the coordinates to
character position in the text.

Is there any other way?
Any advice is greatly appreciated.
Thanks a lot,
--Sergey

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

2010-08-19 Thread Sergey
 Create one TextView per word.
This wouldn't work for me as the text is very large and also it would
create many other problems in my processing.

Are there any other options?

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

2010-08-19 Thread Sergey
 Override onTouchEvent(), find the coordinates of the screen tap,
 then run a bunch of text metric calculations to try to determine
 what word is at those coordinates. This is unlikely to be easy.

You are quite right this is unlikely to be easy, and actually I have
tried to go this way before posting the question here.
There must be a better way.
I am going to look into Android's sources to find out if I can
overwrite something in TextView to make it work.
Thanks for the ideas Mark.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 write ContentProvider for content not stored in a file nor DB?

2010-08-12 Thread Sergey
Hi,
I need to write a ContentProvider to provide a dynamically generated
audio stream to be playable by MediaPlayer. That is MediaPlayer will
use ContentResolver.openInputStream() to play it.
I have read a lot of discussions about this problem but no one had a
solution yet.
The most recent one was in January 2010:
http://groups.google.com/group/android-developers/browse_thread/thread/24086eafae4e0f3/901af5ecf65e5f67?hl=enlnk=gstq=contentresolver+openInputStream#901af5ecf65e5f67

Have anyone found a solution yet?
Any ideas are greatly appreciated.
Thanks a lot,
--Sergey

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

2010-08-02 Thread Sergey
Hello,

At first you have to translate strings from Android OS to your
language, to do so you have to find strings.xml files from
applications you would like to translate.
Try to search those files with your file manager.

You could try crowdin.net as localization platform to reach continuous
localization and involve other to help with translations.

On Jul 30, 11:11 am, hmdmph hmd...@gmail.com wrote:
 Hi ,
 I want to localize android os with my local (si_LK) Sri Lanka , How
 cant i work as contributer for localization.i have downloaded os
 source and recompile with ubuntu. I want to know how to do this.

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


[android-developers] Hi All

2010-04-28 Thread Sergey
I create new contact with new API (ContentProviderOperation)  see
samples from SDK:

 ArrayListContentProviderOperation ops = new
ArrayListContentProviderOperation();

 
ops.add(ContentProviderOperation.newInsert(ContactsContract.RawContacts.CONTENT_URI)
.withValue(ContactsContract.RawContacts.ACCOUNT_TYPE,
1)
.withValue(ContactsContract.RawContacts.ACCOUNT_NAME,
Super)
.build());
...

But this contact is UNVISIBLE.

How I can create contact with IN_VISIBLE_GROUP = 1?

Thanks,
Sergey

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Обсуждение на local izing-android-apps-draft

2010-03-09 Thread Sergey Pha[N]toM Mymrikov
How can I help to localize apps to Russian lang?

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

2010-01-30 Thread Sergey Ten
Should setOnItemClickListener 
http://developer.android.com/reference/android/widget/AdapterView.html#setOnItemClickListener%28android.widget.AdapterView.OnItemClickListener%29(AdapterView.OnItemClickListener 
http://developer.android.com/reference/android/widget/AdapterView.OnItemClickListener.html 
listener) be used instead? Also, should the activity implement 
AdapterView.OnItemClickListener and not View.OnClickListener?


David Fire wrote:

hi
i cant press any item on my listview nor in the emulator nor in a real 
phone.



item layout
?xml version=1.0 encoding=utf-8?
LinearLayout 
xmlns:android=http://schemas.android.com/apk/res/android; 
android:id=@+id/LinearLayout01 android:layout_width=wrap_content 
android:layout_height=wrap_content android:orientation=horizontal
  CheckBox android:id=@+id/RuleEnable android:text= 
android:layout_width=wrap_content 
android:layout_height=wrap_content /CheckBox
  TextView android:id=@+id/RuleName 
android:layout_width=wrap_content 
android:layout_height=wrap_content android:text= 
android:focusable=true /TextView
   
/LinearLayout


listview layout
ListView android:id=@+id/Listado android:layout_width=fill_parent 
android:layout_height=250px  android:isScrollContainer=true 
android:drawSelectorOnTop=false 
android:choiceMode=singleChoice/ListView


some code
public class GuiActivity extends Activity implements View.OnClickListener,
OnItemClickListener{
 //lista means list in spanish
lista = (ListView)findViewById(R.id.Listado);
RuleList = new ArrayListSMSRule();
loadRuleList();
adapter=new SMSRuleAdaptor(this,RuleList);
lista.setAdapter(adapter);
lista.setOnItemClickListener(this);


this method is never called
public void onItemClick(AdapterView? arg0, View arg1, int arg2, 
long id) {

enable.setText(id: +id);
   
}




--
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
()_()signature to help him gain world domination.

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

2010-01-30 Thread Sergey Ten
According to ListView class defintion (see 
http://developer.android.com/reference/android/widget/ListView.html), it 
is a subclass of AdapterView. The latter has a method 
setOnItemClickListener 
http://developer.android.com/reference/android/widget/AdapterView.html#setOnItemClickListener%28android.widget.AdapterView.OnItemClickListener%29(AdapterView.OnItemClickListener 
http://developer.android.com/reference/android/widget/AdapterView.OnItemClickListener.html 
listener). So, you should be able to declare that your activity is 
implementing an AdapterView.OnItemClickListener 
http://developer.android.com/reference/android/widget/AdapterView.OnItemClickListener.html 
interface and then you should be able to invoke 
lista.setOnItemClickListener(this);


Sergey

David Fire wrote:

my adapter hasnt any method to set a listner
the first problem is i cant click on any item.
i cant change the item.


2010/1/30 Sergey Ten sergeyte...@gmail.com 
mailto:sergeyte...@gmail.com


Should setOnItemClickListener

http://developer.android.com/reference/android/widget/AdapterView.html#setOnItemClickListener%28android.widget.AdapterView.OnItemClickListener%29(AdapterView.OnItemClickListener

http://developer.android.com/reference/android/widget/AdapterView.OnItemClickListener.html
listener) be used instead? Also, should the activity implement
AdapterView.OnItemClickListener and not View.OnClickListener?

David Fire wrote:

hi
i cant press any item on my listview nor in the emulator nor
in a real phone.


item layout
?xml version=1.0 encoding=utf-8?
LinearLayout
xmlns:android=http://schemas.android.com/apk/res/android;
android:id=@+id/LinearLayout01
android:layout_width=wrap_content
android:layout_height=wrap_content
android:orientation=horizontal
 CheckBox android:id=@+id/RuleEnable android:text=
android:layout_width=wrap_content
android:layout_height=wrap_content /CheckBox
 TextView android:id=@+id/RuleName
android:layout_width=wrap_content
android:layout_height=wrap_content android:text=
android:focusable=true /TextView
  /LinearLayout

listview layout
ListView android:id=@+id/Listado
android:layout_width=fill_parent
android:layout_height=250px
 android:isScrollContainer=true
android:drawSelectorOnTop=false
android:choiceMode=singleChoice/ListView

some code
public class GuiActivity extends Activity implements
View.OnClickListener,
OnItemClickListener{
 //lista means list in spanish
   lista = (ListView)findViewById(R.id.Listado);
   RuleList = new ArrayListSMSRule();
   loadRuleList();
   adapter=new SMSRuleAdaptor(this,RuleList);
   lista.setAdapter(adapter);
   lista.setOnItemClickListener(this);


this method is never called
   public void onItemClick(AdapterView? arg0, View arg1, int
arg2, long id) {
   enable.setText(id: +id);
 }



-- 
(\__/)

(='.'=)This is Bunny. Copy and paste bunny into your
()_()signature to help him gain world domination.

-- 
You received this message because you are subscribed to the Google

Groups Android Developers group.
To post to this group, send email to
android-developers@googlegroups.com
mailto:android-developers@googlegroups.com

To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
mailto:android-developers%2bunsubscr...@googlegroups.com

For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google

Groups Android Developers group.
To post to this group, send email to
android-developers@googlegroups.com
mailto:android-developers@googlegroups.com

To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
mailto:android-developers%2bunsubscr...@googlegroups.com

For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en




--
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
()_()signature to help him gain world domination.

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

[android-developers] Re: PACKAGE_ADDED, PACKAGE_REMOVED and PACKAGE_REPLACED...

2009-12-16 Thread sergey staskov
Hello, could you please advise how to get application info of
uninstalled application.
I try to use packageManager.getApplicationInfo - it throws exception.

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

2009-12-16 Thread sergey staskov
Thanks  a lot Patrick.
But I still have some problems.
How can I get application info if PACKAGE_REMOVED intent is received.
Exeption throws in this case..

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

2009-11-28 Thread Sergey Ten
As far as I know, there is no need to modify your phone's firmware or 
framework. It is sufficient to build your application as part of 
adnroid's build. neeloor2004, if you enlist into android's open source 
projects using repo (Mark provided you the link), add your project 
sources to the build, then from your sources you should be able to 
access telephony internals public classes. Be aware though, that 
whenever Google changes/refactors these internal classes, your app would 
have to be recompiled again. In my personal opinion, that could cause 
huge maintenance problems, which is why Google advises avoid taking 
dependencies on internals.

Sergey

 
Mark Murphy wrote:
 neeloor2004 wrote:
   
 Hi
 I am developing an app with needs to listen to telephony call events.
 But android SDK is only giving limited functionalities
 CALL_STATE_IDLE
 CALL_STATE_RINGING
 CALL_STATE_OFFHOOK

 I know how to get above events. What I am interested is to get the
 following events like
 CALL hold/ swap , CALL Connected, Disconnected (by called party or
 caller), answering etc..

 Could anybody give me an example code or is it a limitation on Android
 SDK. If it is SDK limitation how can I get access to telephony
 internals
 

 CALL Connected is when the device goes into CALL_STATE_OFFHOOK.

 CALL Disconnected is when the device goes into CALL_STATE_IDLE.

 CALL hold/ swap may or may not exist. It is not a supported concept in
 the SDK.

 To get access to telephony internals, you will need to modify the
 firmware for your own phone. You can access the source code and firmware
 build instructions at http://source.android.com. Questions on that
 process should go to the [android-porting] Google Group.

   

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

2009-11-17 Thread sergey staskov
Hi guys,
I need to know time, when application is installed, can you tell how
can i do it?
I will thankful to all, who get any info about it.

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


[android-developers] Using PluginStub for developing plugins

2009-11-16 Thread sergey staskov
Hi all,
If someone use PluginStub for developing plugins, could you please
tell how?

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


[android-developers] Re: ListView problem is back.

2009-11-15 Thread Sergey Vasilinets
A reference on the sample project is in my first post:
http://listexample.googlecode.com/   Don't be afraid, there is a just
few lines of code and nothing is unnecessary.

On 14 ноя, 16:52, Dan Dumont ddum...@gmail.com wrote:
 Can you post a sample?

 On Nov 14, 2009 4:23 AM, Sergey Vasilinets 

 sergey.vasilin...@googlemail.com wrote:

 Goog Morning Dan,
 Thank you for your reply.
 This project is very simple and there isn't such functions as delete
 and edit. That's why only action with the size of adapter is adding
 and it's in safe method of AsyncTask

 On 14 ноя, 06:52, Dan Dumont ddum...@gmail.com wrote:  I'm pretty sure
 that if the size of the a...

  sergey.vasilin...@googlemail.com wrote:   Hello,   I have a error

 11-14 01:23:23.204: ERROR/...  
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com

 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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...

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


[android-developers] Re: ListView problem is back.

2009-11-14 Thread Sergey Vasilinets
Goog Morning Dan,
Thank you for your reply.
This project is very simple and there isn't such functions as delete
and edit. That's why only action with the size of adapter is adding
and it's in safe method of AsyncTask

On 14 ноя, 06:52, Dan Dumont ddum...@gmail.com wrote:
 I'm pretty sure that if the size of the adapter changes while the layout is
 being calculated you will get this exception.

 All additions, deletions, and data updates should be done in the UI thread I
 think.
 Using an AsyncTask is one way to do this.   Make sure that each piece of
 data your background process produces is added to the adapter in the safe
 methods of the AsyncTask.

 On Fri, Nov 13, 2009 at 5:43 PM, Sergey Vasilinets 

 sergey.vasilin...@googlemail.com wrote:
  Hello,
  I have a error 11-14 01:23:23.204: ERROR/AndroidRuntime(730):
  java.lang.IllegalStateException: The content of the adapter has
  changed but ListView did not receive a notification. Make sure the
  content of your adapter is not modified from a background thread, but
  only from the UI thread.
  .  This error was discussed earlier here. I took the advices given
  there, but they didn't solve problem completely.
  My ListView fills in without exception. But if I've begun to click
  (frequently) on elements of listview , while it is filling in, i see
  that error.
  I'm  using the ListView + Cursor , and  I'm sure that the cursor is
  updated from the main thread (via AsyncTask, also I tried Handlers
  with post() , but it works the same)

  I wrote specially simple project to show my problem, and it's here :
 http://listexample.googlecode.com/

  I'm looking forward to your answers to know what I'm doing wrong.

  PS Sorry for my bad english.

  Sergey Vasilinets.

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

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


[android-developers] ListView problem is back.

2009-11-13 Thread Sergey Vasilinets
Hello,
I have a error 11-14 01:23:23.204: ERROR/AndroidRuntime(730):
java.lang.IllegalStateException: The content of the adapter has
changed but ListView did not receive a notification. Make sure the
content of your adapter is not modified from a background thread, but
only from the UI thread.
.  This error was discussed earlier here. I took the advices given
there, but they didn't solve problem completely.
My ListView fills in without exception. But if I've begun to click
(frequently) on elements of listview , while it is filling in, i see
that error.
I'm  using the ListView + Cursor , and  I'm sure that the cursor is
updated from the main thread (via AsyncTask, also I tried Handlers
with post() , but it works the same)

I wrote specially simple project to show my problem, and it's here :
http://listexample.googlecode.com/

I'm looking forward to your answers to know what I'm doing wrong.

PS Sorry for my bad english.

Sergey Vasilinets.

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

2009-11-02 Thread Sergey Ten
Hi,

Would someone please explain why sendRawPdu method (in
IccSmsInterfaceManager) is calling enforceCallingPermission and not
enforceCallingOrSelfPermission? Would this effectively bar the Phone
App from sending sms/mms messages?

Thanks,
Seregy

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


[android-developers] Re: ListView/Adapter Crash in 1.6 only: illegalStateException. 1.6 bug?

2009-10-16 Thread Sergey Vasilinets

Alexey,
ListView chashes in case of:
 if (mItemCount != mAdapter.getCount()) {
throw new IllegalStateException(The content of the
adapter has changed but 
+ ListView did not receive a notification.
Make sure the content of 
+ your adapter is not modified from a
background thread, but only 
+ from the UI thread.);
}
(it is a quote from sources ListView.java) and only in this case.
Thus,  if number of elements wasn't changed, everything is ok.
On 15 окт, 16:47, Alexey goalstu...@gmail.com wrote:
 Romain, one more question. Is this rule applicable for adding/removing
 elements from adapter (in other words - changing number of elements in
 ListView) or also when changing content of elements?

 On 15 окт, 16:31, Alexey goalstu...@gmail.com wrote:

  Romain, your answers are clear, but confusing. As I understood
  modifying adapter should be done in workerthreadand only
  notifyDataSetChanged in UIthread.
  Now as I see the concept is different, but what if we need to add
  several hundred items into adapter, won't UIthreadbe in freeze for
  this time?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ListView/Adapter Crash in 1.6 only: illegalStateException. 1.6 bug?

2009-10-12 Thread Sergey Vasilinets

That's a possibility. You could also just use a CursorAdapter
I had also this error, and I used SimpleCursorAdapter, that's why i
think, it isn't solution of the problem.
ccfrazier2,
Try to frequently select items, while list is adding new  elements,
error  may be repeated(may be not).  ( if you do this, you'll be
frequently call layoutChildren())

Sorry for my bad English.

On 12 окт, 18:16, Moto medicalsou...@gmail.com wrote:
 Same issue here!
 Thanks for the information!

 -Moto!

 On Oct 11, 3:11 pm, ccfrazier2 georgefraz...@yahoo.com wrote:

  Romain,

  Fantastic, thanks for the help! I've had customers contact me over the
  months about
  force closes that I can never get to the bottom of. This likely has
  fixed the lingering
  issues. Great news! Thanks,

  pawpaw17

  On Oct 11, 2:08 pm, Romain Guy romain...@google.com wrote:

In mybackgroundthread if I add  100 elements to the array,
everything works great. If
I add more than 300 though I get the crash. Is this capacity related.

   No, this is related to the use of threads. Even adding 1 element could
   cause the crash. You just cannot really predict the behavior. That's
   why this exception was added, to help you write your apps correctly.
   Otherwise your app would look like it's working except in some cases
   bad things would happen (crash in the UI toolkit, surprising behavior
   in the UI, etc.)

How are we supposed to populate an array list associated with an array
adapter when we are
grabbing stuff out of the database in abackgroundthread? Do we just
do the database read in
thebackgroundand then process the results from the cursors in the UI
thread?

   That's a possibility. You could also just use a CursorAdapter. You
   could also use an AsyncTask and add new elements to the array using
   publishProgress() every X elements processed.

Very best regards

pawpaw17

in OnCreate...
       if (aa == null){
               aa = new myArrayAdapter(this);
       }
       lList.setAdapter(aa);

               Thread thread = new Thread(null, doSearchDatabase,
Background);
               thread.start();
   }

   myArrayAdapter aa = null;
   final ArrayListMyStats myArrayList = new ArrayListMyStats();

   class myArrayAdapter extends ArrayAdapter {
       Activity context;
       myArrayAdapter(Activity context) {
           super(context, R.layout.caloriesrow, myArrayList);
           this.context=context;
       }

On Oct 11, 1:36 pm, Romain Guy romain...@google.com wrote:
-- myArrayList.add(i, new CalStats(name, extra, calories));

if that's the array list used by your adapter then you are modifying
it outside of the UI thread.

On Sun, Oct 11, 2009 at 11:07 AM, ccfrazier2 georgefraz...@yahoo.com 
wrote:

 Yeah, it's the main thread of my app, here's the stack:

 myApp [Android Application]
 myApp [Android Application]
        DalvikVM[localhost:8613]
                Thread [3 main] (Suspended (exception 
 IllegalStateException))
                Thread [15 Binder Thread #3] (Running)
                Thread [13 Binder Thread #2] (Running)
                Thread [11 Binder Thread #1] (Running)

 Thread [3 main] (Suspended (exception IllegalStateException))
        ListView.layoutChildren() line: 1596
        ListView(AbsListView).onLayout(boolean, int, int, int, int) 
 line:
 1112
        ListView(View).layout(int, int, int, int) line: 6569
        LinearLayout.setChildFrame(View, int, int, int, int) line: 
 1119
        LinearLayout.layoutVertical() line: 998
        LinearLayout.onLayout(boolean, int, int, int, int) line: 918
        LinearLayout(View).layout(int, int, int, int) line: 6569
        FrameLayout.onLayout(boolean, int, int, int, int) line: 333
        FrameLayout(View).layout(int, int, int, int) line: 6569
        LinearLayout.setChildFrame(View, int, int, int, int) line: 
 1119
        LinearLayout.layoutVertical() line: 998
        LinearLayout.onLayout(boolean, int, int, int, int) line: 918
        LinearLayout(View).layout(int, int, int, int) line: 6569
        PhoneWindow$DecorView(FrameLayout).onLayout(boolean, int, 
 int, int,
 int) line: 333
        PhoneWindow$DecorView(View).layout(int, int, int, int) line: 
 6569
        ViewRoot.performTraversals() line: 979
        ViewRoot.handleMessage(Message) line: 1613
        ViewRoot(Handler).dispatchMessage(Message) line: 99
        Looper.loop() line: 123
        ActivityThread.main(String[]) line: 4203
        Method.invokeNative(Object, Object[], Class, Class[], Class, 
 int,
 boolean) line: not available [native method]
        Method.invoke(Object, Object...) line: 521
        ZygoteInit$MethodAndArgsCaller.run() line: 791
        ZygoteInit.main(String[]) line: 

[android-developers] Re: ListView/Adapter Crash in 1.6 only: illegalStateException. 1.6 bug?

2009-10-12 Thread Sergey Vasilinets

That's a possibility. You could also just use a CursorAdapter

I also had  this error, and I used SimpleCursorAdapter, that's why i
think, it isn't solution of the problem.
ccfrazier2,
Try to frequently select items, while list is adding new  elements,
error  may be repeated(may be not).  ( if you do this, you'll be
frequently call layoutChildren())

Sorry for my bad English.

On 12 окт, 18:16, Moto medicalsou...@gmail.com wrote:
 Same issue here!
 Thanks for the information!

 -Moto!

 On Oct 11, 3:11 pm, ccfrazier2 georgefraz...@yahoo.com wrote:

  Romain,

  Fantastic, thanks for the help! I've had customers contact me over the
  months about
  force closes that I can never get to the bottom of. This likely has
  fixed the lingering
  issues. Great news! Thanks,

  pawpaw17

  On Oct 11, 2:08 pm, Romain Guy romain...@google.com wrote:

In mybackgroundthread if I add  100 elements to the array,
everything works great. If
I add more than 300 though I get the crash. Is this capacity related.

   No, this is related to the use of threads. Even adding 1 element could
   cause the crash. You just cannot really predict the behavior. That's
   why this exception was added, to help you write your apps correctly.
   Otherwise your app would look like it's working except in some cases
   bad things would happen (crash in the UI toolkit, surprising behavior
   in the UI, etc.)

How are we supposed to populate an array list associated with an array
adapter when we are
grabbing stuff out of the database in abackgroundthread? Do we just
do the database read in
thebackgroundand then process the results from the cursors in the UI
thread?

   That's a possibility. You could also just use a CursorAdapter. You
   could also use an AsyncTask and add new elements to the array using
   publishProgress() every X elements processed.

Very best regards

pawpaw17

in OnCreate...
       if (aa == null){
               aa = new myArrayAdapter(this);
       }
       lList.setAdapter(aa);

               Thread thread = new Thread(null, doSearchDatabase,
Background);
               thread.start();
   }

   myArrayAdapter aa = null;
   final ArrayListMyStats myArrayList = new ArrayListMyStats();

   class myArrayAdapter extends ArrayAdapter {
       Activity context;
       myArrayAdapter(Activity context) {
           super(context, R.layout.caloriesrow, myArrayList);
           this.context=context;
       }

On Oct 11, 1:36 pm, Romain Guy romain...@google.com wrote:
-- myArrayList.add(i, new CalStats(name, extra, calories));

if that's the array list used by your adapter then you are modifying
it outside of the UI thread.

On Sun, Oct 11, 2009 at 11:07 AM, ccfrazier2 georgefraz...@yahoo.com 
wrote:

 Yeah, it's the main thread of my app, here's the stack:

 myApp [Android Application]
 myApp [Android Application]
        DalvikVM[localhost:8613]
                Thread [3 main] (Suspended (exception 
 IllegalStateException))
                Thread [15 Binder Thread #3] (Running)
                Thread [13 Binder Thread #2] (Running)
                Thread [11 Binder Thread #1] (Running)

 Thread [3 main] (Suspended (exception IllegalStateException))
        ListView.layoutChildren() line: 1596
        ListView(AbsListView).onLayout(boolean, int, int, int, int) 
 line:
 1112
        ListView(View).layout(int, int, int, int) line: 6569
        LinearLayout.setChildFrame(View, int, int, int, int) line: 
 1119
        LinearLayout.layoutVertical() line: 998
        LinearLayout.onLayout(boolean, int, int, int, int) line: 918
        LinearLayout(View).layout(int, int, int, int) line: 6569
        FrameLayout.onLayout(boolean, int, int, int, int) line: 333
        FrameLayout(View).layout(int, int, int, int) line: 6569
        LinearLayout.setChildFrame(View, int, int, int, int) line: 
 1119
        LinearLayout.layoutVertical() line: 998
        LinearLayout.onLayout(boolean, int, int, int, int) line: 918
        LinearLayout(View).layout(int, int, int, int) line: 6569
        PhoneWindow$DecorView(FrameLayout).onLayout(boolean, int, 
 int, int,
 int) line: 333
        PhoneWindow$DecorView(View).layout(int, int, int, int) line: 
 6569
        ViewRoot.performTraversals() line: 979
        ViewRoot.handleMessage(Message) line: 1613
        ViewRoot(Handler).dispatchMessage(Message) line: 99
        Looper.loop() line: 123
        ActivityThread.main(String[]) line: 4203
        Method.invokeNative(Object, Object[], Class, Class[], Class, 
 int,
 boolean) line: not available [native method]
        Method.invoke(Object, Object...) line: 521
        ZygoteInit$MethodAndArgsCaller.run() line: 791
        ZygoteInit.main(String[]) line: 

[android-developers] Re: Accessing raw resource files with the filename as a String

2009-03-09 Thread Sergey Ten
One possible way of doing it would be to call AssetManager::open method,
which takes a String (relative path in assets folder).

On Sat, Mar 7, 2009 at 2:35 PM, Hayden hayden.stew...@gmail.com wrote:


 Is there  a way to access a raw resource file by having its filename
 in a String?  According Google's documentation, I need to use

 Resources.openRawResource (R.raw.myDataFile)

 This requires that I have the file name at compile time, but what if I
 have 20 or so files and want to do something to a specific file by
 passing its file name at runtime?

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: java.lang.RuntimeException: Binary XML file line #26: You must supply a layout_height attribute.

2009-02-15 Thread Sergey Ten

This error message means that the layout file for this particular 
activity does not specify the layout height attribute. I would guess 
that the LinearLayout height should be set to fill_parent, so that it 
would consume the entire screen (vertically).

Hope that makes sense,
Sergey

ying lcs wrote:
 I get the following error in logcat:

 java.lang.RuntimeException: Binary XML file line #26: You must supply
 a layout_height attribute.

 Can you please tell me which xml file that I am missing? And it said
 'binary xml', does it mean it is actually line 26 in my file?
 or it is line 26 in the file after it compiles to be a binary xml file?

 Thank you.


 02-15 17:19:58.873: WARN/WindowManager(50): Exception when adding
 starting window
 02-15 17:19:58.873: WARN/WindowManager(50):
 java.lang.RuntimeException: Binary XML file line #26: You must supply
 a layout_height attribute.
 02-15 17:19:58.873: WARN/WindowManager(50): at
 android.content.res.TypedArray.getLayoutDimension(TypedArray.java:438)
 02-15 17:19:58.873: WARN/WindowManager(50): at
 android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:3236)
 02-15 17:19:58.873: WARN/WindowManager(50): at
 android.view.ViewGroup$MarginLayoutParams.init(ViewGroup.java:3315)
 02-15 17:19:58.873: WARN/WindowManager(50): at
 android.widget.LinearLayout$LayoutParams.init(LinearLayout.java:1262)
 02-15 17:19:58.873: WARN/WindowManager(50): at
 android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:1188)
 02-15 17:19:58.873: WARN/WindowManager(50): at
 android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:45)
 02-15 17:19:58.873: WARN/WindowManager(50): at
 android.view.LayoutInflater.rInflate(LayoutInflater.java:619)
 02-15 17:19:58.873: WARN/WindowManager(50): at
 android.view.LayoutInflater.inflate(LayoutInflater.java:407)
 02-15 17:19:58.873: WARN/WindowManager(50): at
 android.view.LayoutInflater.inflate(LayoutInflater.java:320)
 02-15 17:19:58.873: WARN/WindowManager(50): at
 android.view.LayoutInflater.inflate(LayoutInflater.java:276)
 02-15 17:19:58.873: WARN/WindowManager(50): at
 com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:1989)
 02-15 17:19:58.873: WARN/WindowManager(50): at
 com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:2043)
 02-15 17:19:58.873: WARN/WindowManager(50): at
 com.android.internal.policy.impl.PhoneWindow.getDecorView(PhoneWindow.java:1291)
 02-15 17:19:58.873: WARN/WindowManager(50): at
 com.android.internal.policy.impl.PhoneWindowManager.addStartingWindow(PhoneWindowManager.java:541)
 02-15 17:19:58.873: WARN/WindowManager(50): at
 com.android.server.WindowManagerService$H.handleMessage(WindowManagerService.java:5905)
 02-15 17:19:58.873: WARN/WindowManager(50): at
 android.os.Handler.dispatchMessage(Handler.java:88)
 02-15 17:19:58.873: WARN/WindowManager(50): at
 android.os.Looper.loop(Looper.java:123)
 02-15 17:19:58.873: WARN/WindowManager(50): at
 com.android.server.WindowManagerService$WMThread.run(WindowManagerService.java:372)

 

   


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

2009-02-07 Thread Sergey Ten

Hi,

I am trying to figure out what is the best way to debug a mix of Java 
and native code? Please notice, that I am NOT trying to develop a native 
app. The app will be written entirely in Java, using Android SDK. 
However, I noticed that some pieces of the SDK use native methods (e.g. 
AssetManager, WebKit, etc). I wonder which tools Google developers use 
if/when they need to debug a mix of Java and C/C++ code? Eclipse/gdb or 
there are commercial tools which make the debugging experience less 
painful?

I googled on this topic and the results returned do not look very 
encouraging.

Thanks,
Sergey

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

2009-02-07 Thread Sergey Ten
Mark,

I think I had this problem myself and could solve it by using the following
code:

   webView.setOnTouchListener(new View.OnTouchListener() {
   public boolean onTouch(View v, MotionEvent event) {
   switch (event.getAction()) {
   case MotionEvent.ACTION_DOWN:
   case MotionEvent.ACTION_UP:
   if (!v.hasFocus()) {
   v.requestFocus();
   }
   break;
   }
   return false;
   }
   });

Hope this would help,
Sergey

On Sat, Feb 7, 2009 at 12:07 AM, Mariano Kamp mariano.k...@gmail.comwrote:

 Mark, maybe you should post some code?


 On Thu, Feb 5, 2009 at 4:36 PM, Mark Nuetzmann 
 mark.nuetzm...@gmail.comwrote:


 I have an Activity that has a WebView that contains some simple html
 that allows me to display a Terms  Conditions link that if touched or
 clicked calls another activity.  My problem is unless the link in the
 WebView has focus (ie, the text is wrapped with that little orange
 focus) I cannot touch the link and have it work.  If any other view on
 the activity has focus, touching the WebView with the link does
 nothing.  The other Views that had focus loose focus, but the WebView
 does not receive focus.  I have tried calling setFocusable(true) and
 setFocusableInTouchMode(true) but that does not do any good...

 I would really like to know what you have to do to get a WebView to
 respond to touch events without using the trackball to scroll to the
 view before touching it.

 thank you,
 Mark



 


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

2009-02-06 Thread Sergey Ten

Mark,

I think I had this problem myself and could solve it by using the 
following code:

webView.setOnTouchListener(new View.OnTouchListener() {
public boolean onTouch(View v, MotionEvent event) {
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN:
case MotionEvent.ACTION_UP:
if (!v.hasFocus()) {
v.requestFocus();
}
break;
}
return false;
}
});

Hope this would help,
Sergey

Fred Grott(shareme) wrote:
 Webview would have two touch events already as you would have the
 onClickListener which would have touch up touch down

 Were you getting those two events before adding OnTouchListener?



 On Feb 5, 9:46 am, Mark Nuetzmann mark.nuetzm...@gmail.com wrote:
   
 I just tried adding an OnTouchListener to the webview and I get ALL
 the touch events.  However, the links in the webview to not appear
 selected/focused...  This seems really weird to me.  Anyone have an
 idea why I would receive an OnTouch event for the view but the view
 itself does not seem to respond to those events?

 On Feb 5, 9:36 am, Mark Nuetzmann mark.nuetzm...@gmail.com wrote:

 
 I have an Activity that has a WebView that contains some simple html
 that allows me to display a Terms  Conditions link that if touched or
 clicked calls another activity.  My problem is unless the link in the
 WebView has focus (ie, the text is wrapped with that little orange
 focus) I cannot touch the link and have it work.  If any other view on
 the activity has focus, touching the WebView with the link does
 nothing.  The other Views that had focus loose focus, but the WebView
 does not receive focus.  I have tried calling setFocusable(true) and
 setFocusableInTouchMode(true) but that does not do any good...
   
 I would really like to know what you have to do to get a WebView to
 respond to touch events without using the trackball to scroll to the
 view before touching it.
   
 thank you,
 Mark
   
 
 

   


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

2009-02-05 Thread Sergey Ten

Hi,

I am trying to figure out what is the best way to debug a mix of Java 
and native code? Please notice, that I am NOT trying to develop a native 
app. The app will be written entirely in Java, using Android SDK. 
However, I noticed that some pieces of the SDK use native methods (e.g. 
AssetManager, WebKit, etc). I wonder which tools Google developers use 
if/when they need to debug a mix of Java and C/C++ code? Eclipse/gdb or 
there are commercial tools which make the debugging experience less painful?

I googled on this topic and the results returned do not look very 
encouraging.

Thanks,
Sergey

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

2009-01-12 Thread Sergey Ten

Timothy,

Here onCreate is declared as protected method, not public  in 1.0_r2. 
For instance, here is how onCreate is implemented by ActivityGroup 
(which is a parent class for TabActivity):

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Bundle states = savedInstanceState != null
? (Bundle) savedInstanceState.getBundle(STATES_KEY) : null;
mLocalActivityManager.dispatchCreate(states);
}

Sergey

Timothy DeWees wrote:
 Hello,

 I'm trying to use a TabActivity class to tab-ify my application.  I've
 found some walkthroughs online but I think they are a little dated.

 I want to use Activities inside the tab and just re-use the activities
 I wrote in the current version.

 It's telling me that there is no onCreate method so I'm hoping someone
 can help me correct the code or give me a substitute.

 Here is what my code looks like:

 package [...]

 import android.app.TabActivity;
 import android.content.Intent;
 import android.widget.TabHost;

 public class MyCollection extends TabActivity {

 @Override
 public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TabHost host=getTabHost();

host.addTab(host.newTabSpec(one)
.setIndicator(Test1)
.setContent(new Intent(this,
 test.class)));
host.addTab(host.newTabSpec(two)
  .setIndicator(Test2)
  .setContent(new Intent(this, test.class)));
host.addTab(host.newTabSpec(three)
   .setIndicator(Test3)
.setContent(new Intent(this,
 test.class)));
 }
 }
 

   


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



[android-developers] Re: Slide Views ( like Google Scoreboard app )

2009-01-08 Thread Sergey Ten

What is described looks very similar to me to what the Gallery class is 
doing. You may to check if the class is working for you.

Sergey

Kavi wrote:
 I tried creating something similar like a home screen a while back and
 ended up using the View Flipper.
 As you pointed out, you cannot view the next view while dragging the
 screen. and thts why, i started writing
 my own layout. I wasn't able to finish it but it can be done by
 writing your own layout.
 For example, If the width of the screen is 320, u can have three or
 however many  linear layouts of 320px each in a horizontal linear
 layout.
 Then, all you need to do is implement the onToucListener and the
 OnGestureListener . overwrite the ondown, onfling, onup , ontouch
 methods to handle when the user starts to scroll left/right. do some
 math to find out which view is the user on, and then perform the
 necessary view transitions.

 On Jan 8, 9:03 am, Al alcapw...@googlemail.com wrote:
   
 Does anyone know how they implemented the part where you can drag the
 current screen left/right and also view part of the next screen at the
 same time? Was it the same way as the Home screen or is there another
 method for it?
 

 
   


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



[android-developers] Re: Problem saving canvas to file

2009-01-04 Thread Sergey Ten

I have not tried it myself, but looks like you can use Picture class.
E.g:

   @Override protected void onDraw(Canvas canvas) {

FileInputStream in = null;
try {
in = new FileInputStream(myimage.jpg);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

Bitmap bitmapOrg = BitmapFactory.decodeStream(in);

int wd = bitmapOrg.getWidth();
int hd = bitmapOrg.getHeight();

Picture newPicture = Picture.createFromStream(in);
Canvas newCanvas = newPicture.beginRecording(wd, hd);
newCanvas.drawBitmap(bitmapOrg, 0, 0, null);
newCanvas.drawBitmap(bitmapOrg, wd, 0, null);
newCanvas.drawBitmap(bitmapOrg, 0, hd, null);
newCanvas.drawBitmap(bitmapOrg, wd, hd, null);
newPicture.endRecording();

FileOutputStream fos = null;
try {
fos = new FileOutputStream(/sdcard/test.png);
} catch (FileNotFoundException e) {
e.printStackTrace();
}
newPicture.writeToStream(fos);

BTW, since you are accessing in and fos outside of try blocks, the app
can throw NPE.

Sergey


-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of Protocol-X
Sent: Sunday, January 04, 2009 5:27 AM
To: Android Developers
Subject: [android-developers] Problem saving canvas to file


Ive been searching all ove on how to edit a image and save it. The
only way i have come accross other than just changing the size or
orientation is to use canvas.  Now canvas works fine but i cannot seem
to save the newley created image.. the image always returns the
original image.


   @Override protected void onDraw(Canvas canvas) {

FileInputStream in = null;
try {
in = new FileInputStream(myimage.jpg);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

Bitmap bitmapOrg = BitmapFactory.decodeStream(in);

int wd = bitmapOrg.getWidth();
int hd = bitmapOrg.getHeight();

canvas.drawBitmap(bitmapOrg, 0, 0, null);
canvas.drawBitmap(bitmapOrg, wd, 0, null);
canvas.drawBitmap(bitmapOrg, 0, hd, null);
canvas.drawBitmap(bitmapOrg, wd, hd, null);

canvas.save();

  FileOutputStream fos = null;
  try {
fos = new
FileOutputStream(/sdcard/test.png);
} catch (FileNotFoundException e) {

e.printStackTrace();
}
bitmapOrg.compress(Bitmap.CompressFormat.PNG,
50, fos);

 try {
fos.close();
} catch (IOException e) {

e.printStackTrace();
}
}



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

2009-01-03 Thread Sergey Ten
It may be easier to use animation set, wwhich combines out and in animations 
together and runs them simultaneously. 

I am typing from G1, so I can't provide any examples right away. Please let me 
know if you are interested and I will try to find some.

Sergey

Moto medicalsou...@gmail.com wrote:


I've been trying to now tackle animations on Android and well I'm a
little lost.

I'm trying to slide on Activity as the older Activity slides out...
you could say iPhone's way...
I read this isn't possible but maybe I have a good idea on how to
approach this:

Activity 1: Layout A
Activity 2: Layout B

On Activity 1:
Animate from Layout A sliding out as Layout B slides in.
then proceed to Activity 2 which already would have Layout B.

Is this possible?
How do I animate a Layout?

Thanks!
Moto!


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

2009-01-03 Thread sergey

Hello Thrusty,

This can be solved by using Spans. Here is a piece of code which
demonstrates how it can be done:

SpannableString ss = new 
SpannableString(getResources
().getString(R.string.link));
ss.setSpan(new 
URLSpan(getResources().getString
(R.string.url)), 0, ss.length(), Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
SpannableStringBuilder ssb = 
new SpannableStringBuilder
(getResources().getString(R.string.mail_text))
.append(' ')
.append(ss);
Intent i = new 
Intent(Intent.ACTION_SEND)

.putExtra(Intent.EXTRA_TEXT, ssb)

.putExtra(Intent.EXTRA_SUBJECT,

getString(R.string.mail_subject))

.setType(message/rfc822); //$NON-NLS-1$

startActivity(Intent.createChooser(i, Title:)); //$NON-NLS-1$

What this code does is is sending email composed of

R.string.mail_subject
R.string.mail_text R.string.link.

Upon clicking on the link, the mail recipient will be navigated to a
site, which address is specified by R.string.url.

Sergey

On Nov 11 2008, 9:11 pm, thrusty tcstellan...@gmail.com wrote:
 Hello,

 I'm trying to send HTML email using the GMail package installed on the
 T-Mobile G1.  What I'm finding is that regardless of the content-type
 I specify, the message body is always translated into both text/plain
 and text/html ; however, the html is escaped (e.g.  becomes lt;)
 so it does not display as html in the receiving email client.

 Here's how I'm setting up the Intent:

 String[] addresses = {aAddress};

 Intent intent = new Intent(Intent.ACTION_SEND);
 intent.putExtra(Intent.EXTRA_EMAIL, addresses);
 intent.putExtra(Intent.EXTRA_SUBJECT, aSubject);
 intent.putExtra(Intent.EXTRA_TEXT, aBody);
 intent.setType(text/html);
 startActivity(newIntent);

 The email I receive looks something like this:

 MIME-Version: 1.0
 Content-Type: multipart/alternative;
         boundary==_Part_494_24247511.1226466478922

 --=_Part_494_24247511.1226466478922
 Content-Type: text/plain; charset=UTF-8
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline

 htmlpHere's a property you might want to look at:ulli149
 Ashbury,
 San Francisco, CA, 94117br/View in Puluwai | a 
 href=http://www.agencylogic.com/googlebase/149Ashbury-com
 Browser/a/li/ul/html

 --=_Part_494_24247511.1226466478922
 Content-Type: text/html; charset=UTF-8
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline

 plt;htmlgt;lt;pgt;Here#39;s a property you might want to look
 at:lt;ulgt;lt;ligt;149 Ashbury, San Francisco, CA, 94117lt;br/
 gt;View in Puluwai | lt;a href=quot;a 
 href=http://www.agencylogic.com/googlebase/149Ashbury-com;http://www.agencylogic.com/googlebase/149Ashbury-com/aquot;gt;Browserlt;/agt;lt;/ligt;lt;/ulgt;lt;/htmlgt;/p

 --=_Part_494_24247511.1226466478922--
 As you can see, the html is modified by gmail.  The text/plain
 version is basically correct except for its mime type.

 I've tried setting various other content types, e.g.:

 text/xhtml
 message/rfc822
 message/rfc2822
 text/plain
 multipart/mixed

 No luck so far-- anyone have any ideas?

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