Android :: Network Connection Lost Every Time An Activity Is Created?

Sep 13, 2010

I am checking to see if my app has a network connection Whenever I rotate my screen between landscape and portrait this method returns false. It makes me wonder if Network connections are getting killed during the rotation?

Android :: Network connection lost every time an Activity is created?


Samsung Moment :: Lost Network Connection

Dec 7, 2009

After reading the forums and changing settings and doing a few battery cycles, I had been getting really good battery life of at least two days on medium usage and 3 days on light with my connection not having any real issues. Then, 2 days ago I installed weatherbug and beautiful widgets. While I enjoy both, it seems like my network connection goes down fairly often now and I need to turn on wifi to check email or do anything else web related. Has anyone else lost their network connection and been able to narrow down the cause? I'm hoping it's not one of these two, but I can't imagine what else it would be.

View 5 Replies View Related

General :: I9100g - Lost Network Connection / Mobile Signal In Standby

Sep 19, 2012

I using the Cyanogenmod 10 with JB . I got a big problem cause every time i turn my phone into standby i loss my connection to internet and also i loss my mobile signal. after unlock my screen i have 2 enter my pin , i can only phone emergency. when i enter my pin, the phone reconnect and i got signal. i tried nearly every update, i flashed stock ROM and re-flashed cm10, nothing better.

View 2 Replies View Related

General :: No Network Timeout When Connection Lost On Device But Works In Emulator

Feb 14, 2013

I'm developing an App that sends keep-alive packets to its server to ensure the connection is still alive.

The server is java based and thus easily to run. I run the server on a virtual machine (Windows 7). After my App is connected and the first keep-alive packet is received (it displays a message in its console output) I disable the network interface in Windows. This step is very important because by disabling it, there is no way to send any packet back to the client informing it about network changes.

The clients are configured to send every 25 seconds a keep-alive packet, so you don't need to wait long.

When you use the sample JavaClient on Windows 7 it takes less than a minute after the keep-Alive packet and an exception is thrown which triggers reconnection (which currently can't occur). This is the expected behaviour.

When you use the sample Android App on an emulator (tested Android version 2 and 4) it is the same behaviour. So in less than a minute after the keep-alive packet it recognises that the connection is dead, throws an exception, this triggers reconnection.

Problem is now when this App runs on a real device (tested several, Xpearia Arc S, one Cyanogen Mod 4 on Galaxy S3 and my Galaxy S3). I've waited 5 minutes, but there was no exception. This behaviour is reproducable.

Since this is a sample App, it uses no wakelock or service, so to test it is important to have it in foreground all the time (don't switch to other Apps or homescreen) and increase your display timeout to a few minutes to ensure that it doesn't go off. Use Logcat-Output to get informed whats happening, because there is no output in the App itself.

Now Sample-Code is in the attachement. Something had gone wrong. The Code consists of 3 Eclipse projects which you can easily import.

View 3 Replies View Related

General :: How To Use 3G Data Connection Same Time With WiFi Network

Jan 19, 2014

You can use the 3G network for surfing the Internet and at the same time the wifi network to move files only?

View 9 Replies View Related

Android :: Activity Parent - Created Activity Returns A Nul ?

Apr 7, 2010

Can someone tell if why when starting an activity with startActivity(intent) , calling getParent() in onCreate() of the new created activity returns a nul ?

Also how could I obtain the parent of an activity created in such a way ? Can a reference of the activity below the current activity in the activity stack be obtained ?

View 2 Replies View Related

Samsung I7500 :: Wifi Connection Lost After Screen Lock And Can't Regain Connection After Unlock

Sep 7, 2009

If my screen locks while I have a wifi connection, then the connection is lost when I unlock the phone.First, is this perhaps deliberate, to save power? Also, either way, when I unlock the screen and go into wifi settings, I see that the phone is trying to make a wifi connection, but it never succeeds, even though it's my home network and I'm in the same room as the router. It just states 'Obtaining address.

View 10 Replies View Related

Android :: Android To Open Network Connection On Specified Network Interface - Network Type

Mar 6, 2009

I have been looking at the ConnectivityManager class documented at http://developer.android.com/reference/android/net/ConnectivityManage... .

I would like to know if an Android application can open a network connection (socket) on a specified network interface [on a device supporting multiple network interface types WiFi, Cellular, WiMax etc] ? I am looking for the capability for an application to open a socket on a given type of network for example over WiFi network or over 3G Cellular Data network.

If this is possible in Android, how would I code this requirement within the API Framework ? The ConnectivityManager enables an application to learn about available network connections and currently categorises them as either TYPE_WIFI or TYPE_MOBILE.

There is a member function in the ConnectivityManager class called requestRouteToHost(int,int) [url] which "Ensure that a network route exists to deliver traffic to the specified host via the specified network interface. An attempt to add a route that already exists is ignored, but treated as successful." Sounds like this would install an IP routing table entry to reach a given host via a specified network interface type (WiFi or Mobile). After calling this would it be sufficient for an application to open a socket and connect to the desired destination address ?

Or perhaps the application needs to bind() a socket to a local address of a network interface of the desired type (WiFi or Mobile) Or by setting a socket-level socket option of SO_DONTROUTE ?

View 2 Replies View Related

Android : Custom Created At Run-time Notification Bar Icon

Dec 9, 2009

I'm looking for a way to provide to the Notification Manager an icon which was not statically created, but rather created at run-time by the application.

I want to write a very simple weather application, which shows the current conditions icon and temperature at the notification bar, all packed into a small icon. So, I would like to know how to superimpose text onto an icon, and how to display the new icon in the notification bar, which, as you know, takes resource ID only.

View 4 Replies View Related

Android : Preventing Scale On Bitmap Created In Execution Time For ImageView

Sep 23, 2010

I have a ImageView acting as a top banner on top of a webview. The image of this banner is created in execution time dependending on the resolution of the device. The height of the banner is always the same for each resolution. The only thing that changes is the width, which changes according to the orientation. But, since the width changes and the height doesn't, I end up having sort of 2 images with different proportion. And this is way the scale down/up won't work out for me.

Another problem is that everytime the user rotates the screen, the banner image is created again but Android seems not to update the image and thus I have a banner missing part of it.

I thought about having a real big image that will fit for both landscape and portrait orientation. But this seems not to be a good idea since Android keeps resizing the image everytime so it will fit on the space of the ImageView.

I'm running out of ideas here. Can someone suggest something?

View 1 Replies View Related

Sony Ericsson Xperia X10 :: Wifi Keeps Disconnecting - Connection Randomly Drops From Time To Time

Aug 2, 2010

When i'm connected to my router at home via wifi, the connection randomly drops from time to time. My laptop and TV is fine which are both running via the internet. The setting is set to stay connected always, even when the screen goes black.

Does anyone have a resolution for this? Perhaps static IP? if this is the answer, what should the settings be?

View 7 Replies View Related

Android : Can I Pass A File Created In Activity To Another?

Jun 26, 2009

I create a local file in my activity like this: How can I pass the URI of this file to another Activity? And do I need to set any permission (file permission, manifest permission) to allow other Activity to use that file?

View 5 Replies View Related

Android :: Don't Want Activity To Be Destroyed/created When Phone Is Rotated.

Apr 18, 2010

I have tried to freeze orientation: setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);

But thought screen stays in portrait orientation, the activity is still recreated.

View 1 Replies View Related

Android :: New Activity Instance Created For Every Intent-filter?

Feb 6, 2010

I'm using an intent-filter on URLs for my activity:

CODE:...............

the launchMode attribute is set to "singleTop", but it looks like a new activity is created every time I click a matching url. I thought that if the activity is already alive somewhere, it would simply be brought to the front of my activity stack?

I tried this on the emulator/device, same behavior, a new activity instance is always created.

View 2 Replies View Related

Android :: Apply Animation To View In Application After Created Activity?

Sep 23, 2010

I am trying to apply an animation to a view in my Android app after my activity is created. To do this, I need to determine the current size of the view, and then set up an animation to scale from the current size to the new size. This part must be done at runtime, since the view scales to different sizes depending on input from the user. My layout is defined in XML. This seems like an easy task, and there are lots of SO questions regarding this though none which solved my problem, obviously. So perhaps I am missing something obvious. I get a handle to my view by: ImageView myView = (ImageView)getWindow().findViewById(R.id.MyViewID);

This works fine, but when calling getWidth(), getHeight(), getMeasuredWidth(), getLayoutParams().width, etc., they all return 0. I have also tried manually calling measure() on the view followed by a call to getMeasuredWidth(), but that has no effect. I have tried calling these methods and inspecting the object in the debugger in my activity's onCreate() and in onPostCreate(). How can I figure out the exact dimensions of this view at runtime?

View 4 Replies View Related

Android :: OnPause() - Resume To An Activity Which Has A Bundle Passed To It When Created

Mar 11, 2010

I have an application where I navigate from Activity A to Activity B and back to A and then B. I want to resume the activity B (which has a Bundle passed to it ) from Activity A. The documentation says that OnSaveInstance() is called only when the activity is killed, so how do i use OnPause which does not have the Bundle to resume the activity B.

View 13 Replies View Related

Android :: How To Launch VideoCamera Activity And Then Read Tge File Created

Aug 25, 2009

I am launching the VideoCamera activity from my main activity but not able to get a callback to read the file created.

Does anyone have an example on how to do this?

This is what I have:

CODE:................

View 2 Replies View Related

Android :: AlerDialog Not Created - Java.lang.IllegalArgumentException - Activity#onCreateDialog

Apr 28, 2010

I want to create a normal AlertDialog. I used the example provided by the android dev docs. I just changed the DIALOG_PAUSED_ID to DIALOG_DELETEDB. If I execute my code and press the button which in return should create the dialog, I get the following error log:............

View 1 Replies View Related

Android :: Dolphin Browser / Data Connection Lost

Feb 15, 2010

When viewing sites with a lot of Flash ads like GameFAQs I get an annoying popup telling me that I have lost the data connection and the page could not be loaded. Only the ads are not loading, but I'd like a way to ignore or fix this.

View 1 Replies View Related

Android :: Started Eclipse - Phone To PC Connection Lost

May 4, 2010

My phone (htc desire) loses connection with HTC Sync, version: 2.0.33 on my laptop when I start eclipse galileo. I have windows 7 32 bit. The followings are what I have done to solve this problem but with no luck:

- Unplug and replug the USB cable.
- Installed the old version of HTC sync
- Uninstalled the old version and installed the newest version of HTC sync.

I've to log off or restart my laptop to be able to connect the phone with htc sync again but when I start eclipse the connection is lost again.

View 1 Replies View Related

Android :: Bluetooth Connection Lost After Send Mesage (BluetothChat)

Aug 6, 2010

I want to connect my Droid to OBDKey I use BluetoothChat as example to connect via bluetooth I connect to OBDKey succesfully but after send message to OBDKey connection lost How can I prevent this?

View 1 Replies View Related

HTC EVO 4G :: Lost My 3g Data Connection?

Jul 20, 2010

All the sudden today i just lost my 3g data connection. I actually saw the airplane symbol for a min or two as well. I toon it to sprint and they couldnt get the data connection back thy tried some kind of "activation" which didnt work then they wanted to have the phone for a day which j cjldnt do today. Now i disabled the 3g on the phone and turned it back off and on again and it said it was runnjng the activation again but this time t ran through and i turned 3g back on and the arrows show up but they never flash but i am on the pjone now posting this.

View 3 Replies View Related

HTC Desire :: Lost 3g Connection Using Froyo

Aug 1, 2010

I'm on 3 using froyoand cannot turn on 3g has anyone any ideas or fixes.I'm using switch pro widget which maybe causing the issue.

View 18 Replies View Related

HTC Desire :: Lost Data And Internet Connection

Sep 26, 2010

Took my HTC Desire to Italy and since then have lost all mobile data connections - though works fine on WiFi. Switched on airplane mode for flights, and switched off data roaming to reduce overseas costs. But when switched back on to use internet couldn't get any network connection. Now back in the UK still same issue - no internet, and cannot send MMS picture messages - even when in strong 3G signal Tried all the options I can find but no joy at all.

View 4 Replies View Related

HTC Tattoo :: Cannot Regain Data (3G) Connection Once Lost

Nov 21, 2010

When my data connection (3G) is lost due to lack of signal sometimes it never reconnects again, despite being in an area of high signal strength. I have 'always on' mobile internet toggled. To solve this I have to turn the phone off and on again, which is annoying.

View 3 Replies View Related

General :: Lenovo A750 - USB Connection Lost

Mar 25, 2014

I used flash tool to try to install recovery on my Lenovo A750. I used DA_PL.bin instead of MTK_AllInOne_DA.bin as download agent.

Now when the phone is turned off, it is not recognized (no MT65xx), and I cannot use the flash tool again. Beside this the phone works fine including 'regular' USB connection. What is "download agent" and what did I do wrong?

View 2 Replies View Related

Android :: Lost Home Widget / Need Back - Time / Temp This Is?

Jun 18, 2010

Anybody know what time/temp widget this is? I removed it while playing around and can't seem to find it in the widget list.

View 1 Replies View Related

Android :: TCP IP Connection Via Mobile Network

Jun 10, 2010

I am developing an Android application and I would like to setup a tcp/ip type of connection between two Android phones using the 3G/Edge network. My test version will establish a connection if I have both phones on a lan using wifi but when I use T-Mobile's network a connection is not established. Could this issue be a port or ip address?

View 12 Replies View Related

Android :: Get Connection Via Mobile Network

Sep 8, 2010

I'm building an application for my own use, and I like to get connection via mobile network but I don't know how to do that. What I want is the same behaviour that offers severals existent widgets to turn on/off the data connection.

View 2 Replies View Related

Motorola Droid X :: Connection Lost When Phone Sleeps?

Sep 2, 2010

I previously had my gchat setup to be online all the time.. for some reason, I get logged off when my phone sleeps, or within a short preiod of time after my phone sleeps. I also do not get email notifications when the screen is off. I have to unlock the screen to get my updates now. Any idea how to change this back?I was also wondering about how to change the frequency of checking email and other updates, etc. to save some battery life

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved