[android-developers] Lazy loading in HorizontalScrollView to prevent Out of Memory issue

2011-08-26 Thread himanshu jain
I want to add lazy loading feature to HorizontalScrollView, It has linearlayout as a child and i am addding to linearlayout, I am interested in listening to the event when the child view is out of the visibility area, I see in linearlayout implementation it does not call either

[android-developers] Re: Lazy loading in HorizontalScrollView to prevent Out of Memory issue

2011-08-26 Thread himanshu jain
,options); On Aug 26, 1:00 am, himanshu jain himanshu@gmail.com wrote: I want to add lazy loading feature to HorizontalScrollView, It has linearlayout as a child and i am addding to linearlayout, I am interested in listening to the event when the child view is out of the visibility

[android-developers] Android bug/issue on IPv6

2011-05-04 Thread himanshu jain
Hi all, I am not sure as Google mentioned IPv6 support is available on Android 1.6 or up , but i checked with 2.2 it even does not have link local IPv6 address whereas 3.0 has that. I tried to set up an environment to generate gloabal IPv6 but DHCP can assign IPv6 to other client except 3.0

[android-developers] Re: Java layer on Android SDK supports connection through IPv6 link local address???

2011-05-03 Thread himanshu jain
HoneyComb which may have bug in native code ?. When i got gloabal IPv6 address from server i still not able to connect it says network unreachable ?. Any suggestion On May 2, 3:28 pm, himanshu jain himanshu@gmail.com wrote: Hi, I am not able to connect Android client running on 3.0 HoneyComb

[android-developers] Java layer on Android SDK supports connection through IPv6 link local address???

2011-05-02 Thread himanshu jain
Hi, I am not able to connect Android client running on 3.0 HoneyComb to server sending IPv6 packet having Link-local IPv6 address. Does JAVA layer on android supports connection using link-local address for IPv6?. -- You received this message because you are subscribed to the Google Groups

[android-developers] java.net.SocketException: The socket level is invalid when trying to connect using IPV6

2011-04-29 Thread himanshu jain
Getting this exception when client trying to connect server using ipv6 address , server supports ipv6 and client is android 2.2 os 04-29 10:14:38.630: WARN/System.err(22896): java.net.SocketException: The socket level is invalid 04-29 10:14:38.630: WARN/System.err(22896): at

[android-developers] Re: DalvikVm issue

2011-04-28 Thread himanshu jain
, but I have to admit I did not check that thoroughly. I did at least check that MessageDigest is supported: it is in the android.security package in Android Java. On Apr 26, 1:32 pm, Mark Murphy mmur...@commonsware.com wrote: On Tue, Apr 26, 2011 at 4:22 PM, himanshu jain himanshu

[android-developers] DalvikVm issue

2011-04-26 Thread himanshu jain
04-26 12:38:09.003: WARN/dalvikvm(13579): VFY: unable to resolve exception class 347 (Lorg/bouncycastle/operator/ OperatorCreationException;) 04-26 12:38:09.003: WARN/dalvikvm(13579): VFY: unable to find exception handler at addr 0x15f 04-26 12:38:09.003: WARN/dalvikvm(13579): VFY: rejected Lcom/

[android-developers] Re: DalvikVm issue

2011-04-26 Thread himanshu jain
if i use deprecated methods once i change to specified method like generate method in X509V3CertificateGenerator it complains any idea ? thanks a lot On Apr 26, 12:54 pm, Mark Murphy mmur...@commonsware.com wrote: On Tue, Apr 26, 2011 at 3:40 PM, himanshu jain himanshu@gmail.com wrote: 04

[android-developers] Re: Questions about Two Way Sync Using SyncAdapter and SyncService in android

2011-02-03 Thread himanshu jain
, Feb 1, 2011 at 10:56 AM, himanshu jain himanshu@gmail.comwrote: here is the log accord according to Plan A and Plan B when i have SampleSyncAdapater running on Device A-OS 2.2 01-31 21:02:06.105: VERBOSE/SyncManager(206): [SyncManager.java: 653:sendCheckAlarmsMessage()] sending

[android-developers] Re: Questions about Two Way Sync Using SyncAdapter and SyncService in android

2011-02-03 Thread himanshu jain
?. thanks Dmitri On Feb 3, 1:07 pm, himanshu jain himanshu@gmail.com wrote: Hi Dmitri, right now i am doing iterative development on emulator , i will later deploy it on actual device. I come across one issue if i call addAccount() from account manager as per the documentation my

[android-developers] Re: Questions about Two Way Sync Using SyncAdapter and SyncService in android

2011-02-01 Thread himanshu jain
, you can read Java. I hope this helps, - Dmitri On Mon, Jan 31, 2011 at 5:19 PM, himanshu jain himanshu@gmail.comwrote: this is my manifest file manifest xmlns:android=http://schemas.android.com/apk/res/android;      package=org.c99.SyncProviderDemo      android:versionCode=1

[android-developers] Re: Questions about Two Way Sync Using SyncAdapter and SyncService in android

2011-02-01 Thread himanshu jain
it will take you a few minutes to figure out.  But in the end it's just Java.  If you can write Java, you can read Java. I hope this helps, - Dmitri On Mon, Jan 31, 2011 at 5:19 PM, himanshu jain himanshu@gmail.comwrote: this is my manifest file manifest xmlns:android=http

[android-developers] Re: Questions about Two Way Sync Using SyncAdapter and SyncService in android

2011-01-31 Thread himanshu jain
sophisticated scheduling and you want to take advantage of it. Cheers, - Dmitri On Fri, Jan 28, 2011 at 4:22 PM, himanshu jain himanshu@gmail.comwrote: Hi All, I am trying to implement two way sync. 1) I tried using SampleSyncAdapter Code first it works on emulator

[android-developers] Re: Questions about Two Way Sync Using SyncAdapter and SyncService in android

2011-01-31 Thread himanshu jain
won't work. Cheers, - Dmitri On Mon, Jan 31, 2011 at 1:37 PM, himanshu jain himanshu@gmail.comwrote: @Dmitri Thanks a lot for spending time to answer my questions at least some doubts are faded off. 1) I understand to use own activity for editing and creating new contacts

[android-developers] Re: Questions about Two Way Sync Using SyncAdapter and SyncService in android

2011-01-31 Thread himanshu jain
and also i dont reach to onPerformSync immediately when i explicitly call requestSync. thanks On Jan 31, 4:11 pm, Dmitri Plotnikov dplotni...@google.com wrote: Do you see your account in Settings/Accounts?   Does it have contact syncing enabled? On Mon, Jan 31, 2011 at 2:44 PM, himanshu jain

[android-developers] Re: Questions about Two Way Sync Using SyncAdapter and SyncService in android

2011-01-31 Thread himanshu jain
at 4:26 PM, himanshu jain himanshu@gmail.comwrote: @Dmitri Yes i created my account when i go to Account sync section through settings and after adding my account , sync gets enabled in DDMS i can see SyncManager gets called twice once on setIsSyncable and on setSyncAutomatically

[android-developers] Questions about Two Way Sync Using SyncAdapter and SyncService in android

2011-01-28 Thread himanshu jain
Hi All, I am trying to implement two way sync. 1) I tried using SampleSyncAdapter Code first it works on emulator but not on Device , then i tried to write SyncAdapter with SyncService as a demo app with AccountAuthenticator, as per Documentation for SampleSyncAdapter SyncService gets called on

[android-developers] Re: Grab phonebook-contacts via ContactsContract-API

2011-01-21 Thread himanshu jain
Hi Dmitri ,@LordAli3n I have couple of questions please spare some time or guide me direction 1) Can we use syncAdapter to get data of a row of raw_contact table if that row has been affected (i.e added/deleted/edited). I know ContentObserver notify whenever raw_content table changes in

[android-developers] How Sync Adapter works

2011-01-19 Thread himanshu jain
Can Anyone gives a little bit more explanation like who initiate the the sync adapter if it is sync manager how it does that and what make it to do that. Is the sync adapter run periodically or when it gets notification that raw-contacts has been changed ?, can we customize the sync adapter

[android-developers] Android Sync Adapter and ContentObserver , how to get contact info from content provider when raw_contacts db changes

2011-01-19 Thread himanshu jain
Can Anyone gives a little bit more explanation like who initiate the the sync adapter if it is sync manager how it does that and what make it to do that. Is the sync adapter run periodically or when it gets notification that raw-contacts has been changed ?, can we customize the sync adapter

[android-developers] Re: Question For All Android Developer

2010-10-12 Thread himanshu jain
@kumar bibek What i am trying to do is simple i want to embed using any video or other tag mp4 file in android webview and want to paly it similarly to facebook does allow with flash player to play video , i want similar thing . i tried it but once i pass the intent android player show up on

[android-developers] Question For All Android Developer

2010-10-11 Thread himanshu jain
Hi All, My Question is can we embed mp4 file in android webview client.? Second, is can we embed apk file in WebViewClient?. 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] How To Set Abstract Class Object as an instance of Another class From Native Code using JNI in Android

2010-07-08 Thread himanshu jain
Hi All, I have Class in having an abstract class object as a field in JAVA layer . I want to set this field From Native code C++.I am Trying to use SetObjectField() to set , but it does not work out .Does anyone try this before or know who to do it please shed some light on it

[android-developers] How To Set Abstract Class Object as an instance of Another class From Native Code using JNI in Android

2010-07-08 Thread himanshu jain
Hi All, I have Class in having an abstract class object as a field in JAVA layer . I want to set this field From Native code C++.I am Trying to use SetObjectField() to set , but it does not work out .Does anyone try this before or know who to do it please shed some light on it.

[android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-12 Thread himanshu jain
 am, himanshu jain himanshu@gmail.com wrote: @andrew Tell me one thing some people have wifi ON whereas most of them depend upon 2g and 3g because of battery issue. So if wifi is not there i should still expect this kind of error or issue???. I mean i can not consistently poll to any

[android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-11 Thread himanshu jain
@andrew Tell me one thing some people has wifi on most of them depend upon 2g and 3g because of battery issue. So if wifi is not there i should still expect this kind of error or issue???. I mean i can not consistently poll to any website for news , if yes how even when most does not have wifi ?

[android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-11 Thread himanshu jain
@andrew Tell me one thing some people have wifi on most of them depend upon 2g and 3g because of battery issue. So if wifi is not there i should still expect this kind of error or issue???. I mean i can not consistently poll to any website for news , if yes how even when most does not have wifi ?

[android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-11 Thread himanshu jain
not have wifi ? is there any generic solution to my problem.? On Feb 11, 12:22 am, himanshu jain himanshu@gmail.com wrote: @andrew Tell me one thing some people has wifi on most of them depend upon 2g and 3g because of battery issue. So if wifi is not there i should still expect this kind

[android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-07 Thread himanshu jain
Thanks Anthoni and Frank @Anthoni and @Frank I checked this code , actually i had already implemented in this way instead of on BOOT i used Alarm Manager that repeatedly wake up the phone after 5 minutes and then i start my service. But the problem is background service works fine for 15

[android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-07 Thread himanshu jain
@frank Service does not crash completely , it consistently throwing Socket.net Exception Netwrok unreachable after five minutes. If phone is not always connected to network then what is the way of implementing , i dont get this point . Yeah i am assuming phone is connected with network and i

[android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-07 Thread himanshu jain
@frank I already tried in different network at home and at office , I have been trying this on G1 at home i try on WIFI and at office at tried when WIFI is OFF and i am using ip address not host name. I am using Alarm manager which call service repeatedly after 5 minutes so once it throws

[android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-07 Thread himanshu jain
@prunicki You application was connecting with internet repeatedly?? if yes did you face this same issue and how did you work out that ? On Feb 7, 8:43 pm, himanshu jain himanshu@gmail.com wrote: @frank I already tried in different network at home and at office , I have been trying

[android-developers] Network Unreachable (Socket.net Exception)

2010-02-06 Thread himanshu jain
Hi , I am trying to connect to server through HttpUrlConnection, but after sometimes it throws Socket.Net Exception :Network Unreachable. I tired alarm manager to wake up the phone and get the wifi lock but none seems to work . Tell me what to do what should i check and alternative

[android-developers] Network Unreachable (Socket.net Exception)

2010-02-06 Thread himanshu jain
Hi , I am trying to connect to server through HttpUrlConnection, but after sometimes it throws Socket.Net Exception :Network Unreachable. I tired alarm manager to wake up the phone and get the wifi lock but none seems to work . Tell me what to do what should i check and alternative

[android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-06 Thread himanshu jain
@bob I think i used connect to another website that sends news in order to check whether it is wrong at network side or in my code. Also my question is , can we really implement a service that runs in background indefinitely and give us update if it is available .If yes, then what parameters we

[android-developers] Re: How to keep WiFi from going to sleep?

2010-02-06 Thread himanshu jain
You Can do it by acquiring wifilock but for this you need to wake up the phone using Alarm manager. I suggest you to see Alarm Manager and wifilick On Feb 6, 5:01 pm, Moto medicalsou...@gmail.com wrote: I'm seeing that some users are downloading data via my application and their connection is

[android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-06 Thread himanshu jain
@frank Thank you very much let me look at those sample then i will let you know. once again thanx On Feb 6, 7:14 pm, Frank Weiss fewe...@gmail.com wrote: Re your question about implementing a service that polls for updates, please look at some of the sample code. For example, Romain Guy's

[android-developers] Re: Network Unreachable (Socket.net Exception)

2010-02-06 Thread himanshu jain
@frank Can you please tell me where i can find that sample code. thanks On Feb 6, 9:28 pm, himanshu jain himanshu@gmail.com wrote: @frank Thank you very much let me look at those sample then i  will let you know. once again thanx On Feb 6, 7:14 pm, Frank Weiss fewe...@gmail.com

[android-developers] Re: Wakelock and phone restarts

2010-02-03 Thread himanshu jain
I had the same problem i used wake lock but still i think before i acquire wakelock wifi goes in sleep mode . On Feb 2, 11:45 am, nikhil nik...@gmail.com wrote: It seems there is a conflict between call forwarding and wakelock... Can someone test this out please? If you have a service which

[android-developers] Re: Wakelock and phone restarts

2010-02-03 Thread himanshu jain
dont have any issues with wifi after holding on to wakelock...but yeah when I try to forward calls the phone starts rebooting itself ...I have to kill the service to stop it from rebooting again and again... I have no clue why that happens.. On Feb 3, 11:04 am, himanshu jain himanshu

[android-developers] Re: RssFeed Update

2010-02-03 Thread himanshu jain
@Raghavendra Here is my code i used wake_lock and release it but it seems not to be working :- abstract public class WakefulIntentService extends IntentService { abstract void doWakefulWork(Intent intent); public static final String LOCK_NAME_STATIC =

[android-developers] RssFeed Update

2010-02-02 Thread himanshu jain
HI Folks I am currently developing RssFeed app , i have one issue .I want to implement background service ,but what happen after some times it throughs Scoket.net exception,this was due to fact wifi goes in sleep mode and my app can not connect to server,In order to rid of this i