I wouldn't call if "faking" a connection, but you should probably extend the NetworkStateTracker and create a new NetworkType, then modify ConnectivityService to instantiate your NST subclass for your network type. What version of android are you using - this changed a bunch in the eclair timeframe I think. Also, if you can say, what type of network is this? If it's generally useful it may be a nice opensource submission!
Thanks Robert On Wed, Aug 11, 2010 at 5:20 PM, Termana <[email protected]> wrote: > Hi, > I have a platform which at the moment receives an internet connection > by non-standard means. Web browser and other network things work fine. > However, because the connection is being received in a non-standard > way (not by wifi or RILD), it does not get registered with the > ConnectivityManager. This is a problem because many apps (including > built-in ones - like when downloading something through the browser) > will query the ConnectivityManager to see if a network connection is > active. If not, it won't proceed with the related network activity > (eg. download). > > Is there a way I can fake a connection in connectivitymanager > (register a connection thats not there for example), so that the > ConnectivityManager will report that some sort of connection is > available? > > Are there any other ways around this? How does the emulator handle it, > since it gets it's connection through the host computer? > > Cheers, > Bradley Smith > > -- > unsubscribe: > [email protected]<android-porting%[email protected]> > website: http://groups.google.com/group/android-porting > -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
