Re: [android-developers] How to make enableForegroundDispatch enabled to whole application, not only to an activity?

2012-08-09 Thread Winnie Zhang
Hi Nick, What about on Android 4.0.3 onward? Do we still need set up NfcAdapter, PendingIntent and enableForegroundDispatch in every Activity? 在 2011年6月10日星期五UTC+8上午1时15分41秒,Nick Pelly写道: > > Hi Xiaoliang, > > We know this is a little annoying, we are thinking about some improvements > for fu

[android-developers] Re: Detect a NFC tag removal

2012-07-30 Thread Winnie Zhang
*Hi Nick,* * * *Your code only work for tag. What about the phone detection? Is there a way to detect the NFC phone in or lost the field?* 在 2011年8月3日星期三UTC+8上午12时46分33秒,android user写道: > > Hello David, > Here is some code > try { > tag.connect(); > if(

[android-developers] Gesture & events handling by multiple hierarchical views/ viewgroups in android

2011-09-27 Thread winnie
I use android compatibility package's ViewPager widget (with android homescreen like multiple screens support via horizontal swipe left/ right gesture), and a GridView in one of such screen. The gridview further contains fragments as its items. I would like to be able to have swipe up/ down gestur

[android-developers] Using GridView of multiple Fragments via Custom Adapter

2011-09-20 Thread winnie
I am using a ViewPager (android.v4.support package), and on of its screens I have multiple fragments views. Using a separate res layout file for fragments screen works fine (inflate layouts in PagerAdapter and provide the view for the ViewPager screen). But I wanted to be able to easily add/ remov

[android-developers] Using multiple fragments in each screen in ViewPager

2011-08-27 Thread winnie
I have been trying the ViewPager from recently supported android compatibility v4 package. In my app, I have multiple screens which I would like to swipe across just like what ViewPager does. But in my app, I have multiple fragments in EACH single screen. In the ViewPager, the FragmentPagerAdapter

[android-developers] Re: Bi-directional IPC and data transfer in between an application and multiple services from other applications

2011-07-25 Thread winnie
Oops. Sorry! It wasn't a mistake related to android services or anything. I am a newbie from C++ to Java/ Android, and missed out the initialization of individual array elements by mistake and that's why I was getting the null pointer exception :( After this, the multiple ServiceConnections in my

[android-developers] Re: Bi-directional IPC and data transfer in between an application and multiple services from other applications

2011-07-25 Thread winnie
Thanks Dianne. I followed the same examples for reference. But I am encountering some problem while using multiple ServiceConnections (one for each other application's service) in my main FragmentActivity. Inside my main class, I implement the ServiceConnection interface in a inner class, and use

[android-developers] Bi-directional IPC and data transfer in between an application and multiple services from other applications

2011-07-21 Thread winnie
I have one application, to which many other services (from other applications say 3rd party apps) can be subscribed. And I need to get updated data into my application from the other applications, and so I require have bi-directional communication from my application to other services. The kind of