Skip to main content

Posts

Showing posts from May 15, 2012

Integrate Google, Yahoo and OpenID in android application?

I want to integrate Google, Yahoo and OpenID in my android application. I have successfully done with facebook, twitter. I had used facebook android sdk for facebook integration and twitter4j-core-android-2.2.3.jar for twitter integration. Now I am looking for Yahoo, Google and openId integration. I searched for yahoo integration also registered to get consumer key, consumer secrete key and application id. But I didn't find any jar or sdk for yahoo integration. There is for iPhone but not any thing for android.

onSaveInstanceState() not called: why?

Problem: I add a fragment to a LinearLayout, programmatically. It shows up in my activity, great. I turn the device —> configuration changes: everything is destroyed to be recreated. But, before onDestroy() is called, onSaveInstanceState() should be called. It is the case for the parent activity, but not for the fragment I've added. Why ?

Usage CursorLoader without ContentProvider

Android SDK documentation says that startManagingCursor() method is depracated: This method is deprecated. Use the new CursorLoader class with LoaderManager instead; this is also available on older platforms through the Android compatibility package. This method allows the activity to take care of managing the given Cursor's lifecycle for you based on the activity's lifecycle. That is, when the activity is stopped it will automatically call deactivate() on the given Cursor, and when it is later restarted it will call requery() for you. When the activity is destroyed, all managed Cursors will be closed automatically. If you are targeting HONEYCOMB or later, consider instead using LoaderManager instead, available via getLoaderManager()

sl4a python notify question

I have two questions regarding the sl4a scripting language. I'd like to develop a python script that will be periodically contacted by a server and post some information to the notification bar.

OOP the point of interface

Possible Duplicate: Interface vs Abstract Class (general OO) EDIT: I just read the questions and answers to the questions from "possible duplicate" and I feel really sad that someone considers these two questions even similar... but, oh well...

New to REST API

basically I have been assigned to build a REST request application in PHP, using a 3rd party REST API. Doing POSTs, GETs etc seems simple, however they have something called an Authorization header which uses a Digest token. How do I pass this via a get?

Has anyone created a PHP Session-like class in user code (not native)?

The native PHP Session functionality is great, but it's ultimately a singleton. There are times when you need to maintain state for multiple apps and in the scope of an already-started session (e.g. in an app framework). Technically one can stop/restart a session after changing session_name() , but this is impractical/impossible/unsafe within most apps. Using a shared session.save_path is also not an option if one app stores session data with a non-disk adapter.