[android-developers] Re: Fragments are not visible on orientation change

2015-04-03 Thread Nitin Khanna
Answering my own question, for the benefit of others > So after a lot of reading of the fragment manager code i came across these magical lines: // For fragments that are created from a layout, when restoring from// state we don't want to allow them to be created until they are// being reload

[android-developers] Fragments are not visible on orientation change

2015-04-03 Thread Nitin Khanna
In the following code, the fragments are being dynamically inflated from a layout xml. The issue i am facing is that I dont see the fragments when i rotate the device. If I look at the fragmentManager, I do see fragments are there. They are added and attached, but no where on the screen. M

[android-developers] Finding classes inside a package in Android

2013-03-15 Thread Nitin Khanna
I am trying to find classes inside a package in Android. PathClassLoader.getResources(packageName) does return an Enumeration, but its empty. What am I doing wrong? ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); String path = packagePath.replace('.', '/'); Enumerat

[android-developers] Are onCreate and onRestoreInstanceState mutually exclusive?

2012-10-02 Thread Nitin Khanna
I have a couple of question regarding onRestoreInstanceState and onSaveInstanceState. 1) where do these methods fit the activity lifecycle? I have read a lot of documentation but there is no clear idea, except a broad statement that when the state of the activity is to be saved 2) Are onCrea

[android-developers] Not getting onScoll callbacks from ListView

2011-03-02 Thread Nitin Khanna
Hi! In my application I have a custom layout containing a linear layout, relative layout and a list view. The problem that I am facing is that when I set a onScrollListener on the ListView, I just get onScroll once. However if I run a similar code part of google's example list 9 i get onScroll cal

[android-developers] Re: DatagramSocket - unknown error exception

2008-11-17 Thread Nitin Khanna
Hi! I figured out the solution. Its just another permission we have to declare we use android.permission.INTERNET. Rgds Nitin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to thi

[android-developers] DatagramSocket - unknown error exception

2008-11-17 Thread Nitin Khanna
Hi! Folks, I have recently upgraded my application to the recent version of Android SDK and since, the upgrade I am facing a strange problem. The problem is as follows: DatagramSocket socket; int port = 5060; socket = new DatagramSocket(port); When the application executes this API, I get a So

[android-developers] Media Engine Capabilities of Android

2008-10-14 Thread Nitin Khanna
Hi! I am currently involved in development and porting of applications on Android. While I understand that Android does not have a RTP/RTCP stack, however, having looked through the brochure published by Packet Video (supplier of media engine for Android) it appears end to end voice/video exchang

[android-developers] Network interface behaving erratically

2008-04-22 Thread Nitin Khanna
Hi! I am working on a Peer to Peer application. When I run this application in debug mode with emulator attached, the application and send and receive packets, however, when I run the application in Standalone mode, by simply launching it from the emulator. Sockets dont give any error, but they d

[android-developers] Re: Emulator crashing constantly on Windows Vista

2008-04-18 Thread Nitin Khanna
Thank You so much! I think the problem was with Windows. I upgraded to Windows Vista SP1, the problem is solved. Anyways, good piece of advise for the future. Regards Nitin Khanna www.hsc.com On Fri, Apr 18, 2008 at 10:02 AM, Digit <[EMAIL PROTECTED]> wrote: > you should be able

[android-developers] Hashtable put Fails

2008-04-14 Thread Nitin Khanna
Hi! When I try to insert an object into a Hashtable. It is failing occasionally, but it always executes once successfully. Can anyone suggest what is it that would be wrong? Regards Nitin --~--~-~--~~~---~--~~ You received this message because you are subscribed t

[android-developers] Re: Any generic logic for intent identification to be used by existing applications

2008-04-08 Thread Nitin Khanna
. Now, if we have a framework like an intent parser and identifier, the application, can still invoke the correct activity based on what the framework returns. I think this is still in-line with your thoughts. Any comments. Regards Nitin Khanna www.hsc.com On Apr 8, 12:12 am, hackbod <[EM

[android-developers] Re: Communication between two emulators. UDP Chat app

2008-04-08 Thread Nitin Khanna
have been allocated by the emulators. This solution is what we usually use in NAT traveral, a minimalistic version of STUN protocol. Regards Nitin Khanna Hughes Systique Corporation On Apr 7, 11:13 pm, Amit <[EMAIL PROTECTED]> wrote: > Hi all, > > I am trying to develop small chat ap

[android-developers] Any generic logic for intent identification to be used by existing applications

2008-04-07 Thread Nitin Khanna
Hi! Is there a way in android to extend the intent identification logic for existing applications. Say for example i type in the rss feed url or an http url in the phone application or something similar. So can I extend the identification logic such that the application executes a parser defined

[android-developers] Extracting interface address of android emulator

2008-04-07 Thread Nitin Khanna
Hi! How do I extract all the interface address attached to the emulator. The address which is being retrieved for now is the loopback address. My application logic requires the IP address to be retrieved, as it based on P2P communication. Any suggestions. Regards Nitin --~--~-~--~~--