Questions tagged [android-internet]

This tag is used for internet related questions on the Android Operating System.

228 questions
0
votes
2 answers

Using subdomain gives error in android

I am having trouble with accessing my JSON in android file which is located at this website. I am getting an error message java.net.UnknownHostException: umsjitm.cutm.org. This is my code: HttpClient client = new DefaultHttpClient(); URI website =…
0
votes
1 answer

How to upload large files to PHP server in Android

I am trying to upload files like images and songs to my PHP server but when I try to upload large file (file size 5MB or more) then I am facing some errors.. I am able to successfully upload files near 500kb. Please help me in letting me know that…
Abhishek Dhiman
  • 1,631
  • 6
  • 25
  • 38
0
votes
1 answer

Android error while parsing Xml - android.os.NetworkOnMainThreadException

I am getting following error..... 08-18 00:02:19.230: D/CLIPBOARD(17993): Hide Clipboard dialog at Starting input: finished by someone else... ! 08-18 00:02:21.515: E/Connectivity(17993): true 08-18 00:02:21.535: D/AndroidRuntime(17993): Shutting…
user98239820
  • 1,411
  • 2
  • 16
  • 30
0
votes
2 answers

Exception when downloading XML file from Internet on Android 4 (but it works on Android 2.3)

I have a problem with downloading XML file from Internet in Android. I wrote some code and it works on Android 2.3 emulator. However, it doesn't work on Android 4.03 emulator and it doesn't work on real Android 4 device either. Here is my…
0
votes
2 answers

Extras Sent in a Pending Intent through a Notification are not changed even with new notifications until I terminate the service

I have an application composed of 2 parts 1-a sequence of activities. (Login, Then Dashboard, Then a feed). 2-a background service driven by a push server. every time the the service receives a push, creates a notification with a pending Intent…
Shehabic
  • 6,787
  • 9
  • 52
  • 93
0
votes
1 answer

Sending a binary data over the network to the my sql database

I'm working on the application that will record the voice. I want those recordings to be stored in the external mysql database. I know that JSON works well with android and PHP that I can use to connect to DB but it works only with textual data. How…
Marcin S.
  • 11,161
  • 6
  • 50
  • 63
0
votes
3 answers

how can start intent after finishing download an image from url?

I need to start my intent after finishing the download of the image from the url without any action from the user of the application itself. This is my activity which first will download the image and after that it will start the intent. …
0
votes
1 answer

Android v2.1 emulator is not able to connect the internet

I already checked this & this links but I think my problem is different as follows: My Android 2.1 emulator is not able to connect the internet via my app/emulator default browser yet I am able to connect the internet from my other Android version…
0
votes
1 answer

Android mobile-internet lock

I am currently working on the application for our clients that needs to have constant access to the internet through wi-fi or through 3G mobile internet. I found that there is a "Wi-Fi Lock", that keeps the Wi-Fi radio on, however I didn't find…
stevo.mit
  • 4,681
  • 4
  • 37
  • 47
0
votes
1 answer

Android file transfer using sockets

I've been working on an android program. One portion of this program interacts with a webservice using a socket connection, sending files that on average are about 320 kB. The code ran on a desktop takes about 1.5 minutes to transfer. Using my…
sherwood
  • 23
  • 4
0
votes
1 answer

Timeout for Multipart HTTP post

How to set the timeout for HTTP multipart file post. I want to upload image to the server at the time internet connection is not there how to handle that situation?
0
votes
1 answer

Unable to do data transfer on EDGE

I have been trying to do a lot of trial and error to get this issue fixed but seems to have run out of more options. Scenario: I have an AsyncTask that uses HttpClient to perform a simple HTTP POST transaction to a php page hosted on my server. This…
PravinCG
  • 7,688
  • 3
  • 30
  • 55
-1
votes
1 answer

Action Intent for Gmail in android?

I am creating an app in which user can share "something" by clicking on a share button. The steps to share "something" are: On clicking the share button the contact list should open By selecting a contact (with valid a email address) the data…
shankey
  • 333
  • 2
  • 7
  • 18
-1
votes
1 answer

alert popup in fragment webview if device is offline

I want to display alert popup in fragment webview if device is offline instead of showing default message('The webpage.....'). I am new to android apps developing field. I've add progressbar, but I can't get any idea where and what to include toast…
Dipak
  • 931
  • 14
  • 33
-1
votes
2 answers

How to get time from internet and convert it into local time - android?

There are many threads on retrieving pacific time from servers but i want to convert it into the local time like IST. I am living in India. Preferably I want to use firebase for retrieving time. If you can provide me with code that retrieves time…
user7549140