Android : Socket Creation Failure

Feb 3, 2010

I created a simple client socket from my Activity, but it fails. I am running this activity in emulator and server runs on PC(its a different application without Android stuff).

*clientSock = new Socket("127.0.0.1", 30001);*

logcat shows java.net.SocketException: permission denied <maybe missing INTERNET permission>

If I enable permission for my Activity(android.permission.INTERNET), my Activity constructor itself not called and logcat shows following info. Permission Denial: starting Intent < flg=0x10000000 cmp=com.example.client/.MyClientActivity > from null <pid=-1, uid=-1> requires android.permission.INTERNET.

Any suggestion on how to resolve this issue?

ADVERTISEMENT

Android :: Detecting Socket Connection Failure

Apr 1, 2010

I am working on an app that uses a Socket to connect to a controller over TCP. The protocol library was written in Java and I am implementing it in android via a Service. where the Connection class is a Thread that handles the communications with the controller. It's where the Socket lives.I'm using the Preferences mechanism to store the IP and Port. If I feed the Socket the correct IP and Port, the Connection Service works beautifully. However, I am trying to simulate a user entering the wrong information and having the connection fail. The ultimate goal is to present a dialog and offer the ability to "reconnect" or "update settings". However, when I enter a wrong Port number, the application simply hangs.I was under the impression that Threads executed concurrently so I've tried moving the call to start the Connection Service to a Thread, but it still hangs the application.

View 3 Replies View Related

Android :: Java Socket Not Throwing Exceptions On Dead Socket?

Jun 29, 2010

We have a simple client server architecture between our mobile device and our server both written in Java. An extremely simple ServerSocket and Socket implementation. However one problem is that when the client terminates abruptly (without closing the socket properly) the server does not know that it is disconnected. Furthermore, the server can continue to write to this socket without getting any exceptions. Why? According to documentation Java sockets should throw exceptions if you try to write to a socket that is not reachable on the other end!

View 5 Replies View Related

Android :: Socket Programming - Java - Many Clients One Socket

Nov 12, 2009

Essentially Im trying to get many many java clients connect to a socket on my ColdFusion server (Using the Socket Gateway). However before i even start to code this, Im a little confused about sockets and their performance. First of all, are sockets meant for many(1000+) clients connecting to one socket (say port 2202) on one server? How is the performance if all there waiting for is basically a ping, or something such that when these clients receive this "ping" they can go get some new data.

View 5 Replies View Related

Android :: Connecting Android Bluetooth Client Socket To Ubuntu Server Socket

Jul 15, 2010

I am writing an Android app that should exchange data to a server over Bluetooth, with the server side on a PC running Ubuntu, using the bluez library, in C (or C++).

My Android app fails (IOException) when I try to connect to my server socket on the PC.

Here is essentially what I in the java code (in Android, full eclipse project here: http://dl.dropbox.com/u/2968234/ThinBTClient.zip)

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

This throws IOException after a timeout of 10seconds or so.

On the server side (in Ubuntu 8.10), I basically set up a Bluetooth server socket, along the lines described in the example bluez/sdp-register.c

Down below is my C++ program. To compile it do

g++ -I/usr/include/glib-2.0/ -I/usr/lib/glib-2.0/include -o bt_server bt_server.cpp -lbluetooth

I can do the reverse succesfully, i.e. create a server socket in Android and connect from Linux, however this is not what I want to do!

I think either the problem has to do with my config of Ubuntu.

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

View 1 Replies View Related

Android :: Socket Exception Socket Not Connected Android

Oct 27, 2010

In my android application i am trying to run a application using GPRS connection and not WIFI.When tried to run in wifi the app runs fine.The browser works fine with the APN settings set but when trying to connect to server using my application it gives me socket exception.I am using the below permissions in manifest file.
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses- permission>
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"></uses-permission>
<uses-permission android:name= "android.permission.CHANGE_NETWORK_STATE"></uses-permission>
<uses-permission android:name= "android.permission.WRITE_APN_SETTINGS" ></uses-permission>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" ></uses-permission>
I am receiving Socket not connected exception.Is there any other permission which i need to add for using GPRS connection other than WIFI.
10-27 18:26:19.689: WARN/CalSyncSvc(166): com.motorola.blur.service.email.protocol.activesync.ASException: Problem executing HTTP POST

10-27 18:26:19.689: WARN/CalSyncSvc(166): at com.motorola.blur.service.email.protocol.activesync.ActiveSyncMgr.sendRequest(Unknown Source)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at com.motorola.blur.service.email.protocol.activesync.ActiveSyncMgr.sendXMLCommandNoProvisoning(Unknown Source)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at com.motorola.blur.service.email.protocol.activesync.ActiveSyncMgr.sendXMLCommand0(Unknown Source)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at com.motorola.blur.service.email.protocol.activesync.ActiveSyncMgr.sendXMLCommand(Unknown Source)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at com.motorola.blur.service.email.protocol.activesync.ActiveSyncMgr.sendFolderSyncCommand(Unknown Source)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at com.motorola.blur.service.email.protocol.activesync.ProviderAPI.sendFolderSync(Unknown Source)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at com.motorola.blur.service.email.protocol.activesync.ProviderAPI.updateMapFromFolderSync(Unknown Source)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at com.motorola.blur.service.email.protocol.activesync.ProviderAPI.updateFromFolderSync(Unknown Source)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at com.motorola.blur.calendar.sync.activesync.SyncService.syncAccount(Unknown Source)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at com.motorola.blur.calendar.sync.activesync.SyncService$QueueEntry.run(Unknown Source)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:416)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:256)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at java.util.concurrent.FutureTask.run(FutureTask.java:122)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:648)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:673)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at java.lang.Thread.run(Thread.java:1058)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at com.motorola.blur.util.concurrent.BlurThreadFactory$BlurPooledThread.run(Unknown Source)
10-27 18:26:19.689: WARN/CalSyncSvc(166): Caused by: java.net.SocketTimeoutException: Socket is not connected
10-27 18:26:19.689: WARN/CalSyncSvc(166): at org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocketImpl(Native Method)


10-27 18:26:19.689: WARN/CalSyncSvc(166): at org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocket(OSNetworkSystem.java:140)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:229)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:521)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at java.net.Socket.connect(Socket.java:1019)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:317)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:129)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:348)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
10-27 18:26:19.689: WARN/CalSyncSvc(166): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
10-27 18:26:19.689: WARN/CalSyncSvc(166): ... 17 more

View 2 Replies View Related

Android :: Force Tab Activity Creation

Jun 3, 2010

I have an Android application with a main activity that is the tabhost. I'm adding multiple tabs to the tabhost with an intent to several activities.

My problem is that these activities are not created (onCreate is not called) until I click on the tab. This is a problem because I need to register broadcastreceivers: there may be broadcasts that are sent -before- a particular tab is opened.

I tried to work around this by:

Setting my receivers as static and registering from somewhere else. This is not possible because I need to call into methods.

Calling into tabHost.setCurrentTabByTag(the_tag) and then switching back to my root tab. This only works sometimes and this is a very ugly solution imo.

Not using activities but just using views instead. Also not a very elegant solution because it turns my tabHost activity into one huge master class doing all kinds of unrelated things.

View 1 Replies View Related

Android :: On Activity - Re -usage En Creation

May 10, 2010

A question that might be a bit general/basic knowledge, but for me it has a quite direct background, so i'll form it as an example:

I have an activity "entry" showing something equivalent of a blogpost, that might have comments. You can click somewhere to open a "comments" activity. But in this activity there are links back to entries, creating a nice line of activities.

If I call the "entry" activity (with an intent) on a link to show this entry, am I re-using the old activity, or am I creating an endless string of entry, comment, entry, comment activities (pretty cost- ineffective that would be).

View 9 Replies View Related

Android :: Uml Creation Tool For Droid?

Nov 1, 2009

Is there any free or opensource Eclipce plug in avaliable for UML diagram auto generation for Android?

View 2 Replies View Related

Android :: Creation Of Activities From Tabhost

May 14, 2010

I have a TabActivity. Within this activity (in the onCreate method) I create a TabHost and a TabSpec and do a tabSpectSearch.setContent(intenSearch); The Indent is created using intentSearch = new Intent().setClass(this, MyActivity.class);

As far as I already found out the class MyActivity is instantiated when I select the tab, to which it is connected. Is there a way from my TabActivity to force the creation of all activities (all tabs) at once?

View 4 Replies View Related

Android :: File-creation Fails?

Apr 28, 2010

I use the following code to create a folder "mymir" and a file ".nomedia" (in the mymir-folder) on the sdcard of an android unit. However, somehow it fails with the exception that the folder the ".nomedia"-file is to be placed in dosn't exist.

Here's the code:

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

View 1 Replies View Related

Android : Music Creation Apps?

Nov 17, 2010

I'm looking for apps which allow me to make music. Preferably something which does not just make crappy loops. Something with a staff or matrix would be nice.

View 5 Replies View Related

Android :: Creation Of Buton In Widget

Feb 12, 2010

I am trying to write a code for an SMS widget. I wrote something that I can compil, and print on screen my first sms. When I click on next, nothing happend.

View 1 Replies View Related

General :: MTK 6589 - Recovery Creation?

May 10, 2013

I have a Feiteng H7189 with MTK 6589 and Android 4.2.1.

I have rooted it.

I have taken the scatter file with MTKDroid.

I have taken the Recovery.IMG with ADB.

I want to compite a new recovery with CWM or TWRP.

I have tried but all the file I create do not work.

If I put again the original recovery.img all fine.

here the scatter and the recovery original:

[URL]

Here some info to compile:

shell@android:/ $ cat /proc/cpuinfo
cat /proc/cpuinfo
Processor : ARMv7 Processor rev 2 (v7l)
processor : 0
BogoMIPS : 2439.94

Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 2

[code]......

View 1 Replies View Related

Android :: Need Synth And Other Music Creation Apps

Nov 25, 2009

I haven't seen much about music apps for Android. I just saw a video of NESynth for iPhone. Is there anything similar on Android. I hope there will be.

I have Musical, Synthesizer and Rock Out. They are ok apps for free. I'd pay for NESynth though.

View 2 Replies View Related

General :: GT-P7320T Custom Rom Creation With Rom Kitchen

Feb 18, 2013

My mum won this GT-P7320T branded to telstra ( Australia) and overall, the hardware specs werent too bad, but before the ics update came out finally in january it was terribe to use.

The update has actually been a massive improvement, but being branded and all that junk is as annoying as hell, so i have decided to build my own rom. this is my first time building a rom. ive flashed plenty, but its a different kettle of fish.

i am using the telstra branded stock ics rom with rom kitchen to try to build something acceptable, but first things first, the compiled rom must boot. because the device isnt supported i have to create i file in the /directory_to_kitchen/tools/edify_defs named GT-P7320T defining all the mount points.

this is where it gets tricky, here is the contents of the /directory_to_kitchen/tools/edify_defs named GT-P7320T that i have created

#
# The values below should be set in each file in this folder.
#
# Each file represents a device name (set in ro.product.device of

[Code]......

as you can see, i have copied and pasted the contets of my recovery.fstab and commented it out as a reference. this should be quite straight foward, but the mount points for data and sdcard hve additional parameters, which i dont know what to do with.

the parameters are currently commented out and i cannot get it to flash i've tried lots of different combinations but to no avail.

During flashing attempts it is giving me error 7, which to me seems to indicate a problem with setting the mount points.

View 1 Replies View Related

Android :: StartActivity -ForResult - At The Creation Of Main Activity

Mar 31, 2010

I would like to display a an access dialog activity at the start of my application.

In other words, I would like to start another activity (in dialog theme) as soon as my Main Activity is loaded. But, I know that I can not start an activity while another is creating.

I tried to start this activity in the onResume() method : I can see the new activity called, but the Main activity do not respond after closing the new activity.

Is there a solution to do this, without using delayed intent ? May i use a special flag for my intent ? I did not find, in the activity cycle, a way to detect the end of activity loading.

View 6 Replies View Related

Android :: Video Creation Tools / Add Caption And Voiceover Later?

Mar 22, 2010

How do most of you wise developers create a YouTube video for your Android Apps, if at all.?

Do you:

Hire some teenagers to do something creative and viral? Use a tool to capture the screen as a video and then add caption and voiceover later? Set up a home camcorder on a mini tripod, aimed at your Android handset on the table top? Don't bother with the video since it's too much trouble?

View 3 Replies View Related

Android :: Move To A Certain Position In A ListView Upon Creation In Droid?

Apr 21, 2010

I was wondering if it is possible to start a ListActivity and in real time decide how far down the list it should be focused on. (Example: When the activity is started it checks for certain conditions and then it may scroll down to a row partially through the list.)

View 1 Replies View Related

Android :: Small Application Creation Jobs For Droid?

Sep 27, 2010

As the title says, where can i find small application creation jobs for Android.

Please don't tell me 'freelancer' because I have already checked there.

View 3 Replies View Related

Android : Change Contents Of An Droid Dialog Box After Creation?

Feb 8, 2010

Is there a simple way to change the contents of a dialog box in Android without having to re-create the dialog box? I know that Activity.onCreateDialog() is only called once when the dialog first needs to be created, and this is where you initially set the dialog's contents. I need to change the dialog's contents later, so I'm wondering what is the proper way to do this.

View 1 Replies View Related

General :: ORKIA OK-PP555 Firmware Image Creation

Sep 7, 2013

When i power on the tablet it shows the android boot up logo and then the company logo "ORKIA OK-PP555" and then the screen goes bluish(back light remains on" and then it stays like that for ever.

Inside there is Allwinner A10 Chip. So I searched & downloaded various firmwares for A10 and Flashed it. The Device got all OK with Two of the firmwares but touchscreen is Working ODD or can say not working properly. In One of the firmware Touchscreen is working invertly (i.e. if touched on left opens function icon appearing on right, if touched on top --> open function icon appearing at botton and so on . . )

How to Correct it ?? How to make touchscreen working properly? Or If having Its True/Correct Firmware.

View 6 Replies View Related

Android :: Which Mobile Platform To Use Creation Of Musicians Support Application?

Sep 22, 2009

I'm a programmer looking to play in the mobile world. The application I'd like to play with would support my musical hobbies. I suspect a mobile phone with a music player could easily be programmed to support a classical musicians practice sessions. Access to media player APIs without the need to open external apps or do clunky things with files.Adequate access to playback API to create specific notes and beat patterns. As a hobby application, this should not require expensive tooling.I can switch to a new phone to use the application. Bonus points for something that easily ports to a netbook.I will admit I new to the world of sexy phones. I currently use an obsolete voice device with text messaging. I won't revealing my current flavor of programming because learning a new platform is just fine.

View 4 Replies View Related

Android :: Unwanted Automated Creation Of New Instances Of Activity Class

May 11, 2010

I have an activity (called Sender) with the most basic UI, only a button that sends a message when clicked.This works ok, the message is sent but every time a message is sent a new instance of Sender is started on top of the other. If I call sendSMS method three times, three new instances are started. I'm quite new to android so I need some help with this, I only want the same Sender to be on all the time

View 3 Replies View Related

Android :: SQLite Database Creation Fails Documentation Is Unclear

Apr 4, 2010

When I add this code to my Android 2.1 Java app, it fails:

CODE:........

Do I need a special permission to create a database, or can anybody provide a suggestion how to find out what goes wrong?

Here is the LogCat output:

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

View 1 Replies View Related

Android :: Change Droid Widget Setup Preferences After Creation?

Jan 31, 2010

Say my app has a widget and I use a configuration screen to do initial app widget setup and set a few preferences.

I want the user to be able to change those settings by simply going into my app's settings screen and clicking an intent preference to open up the same options the user was given when the app was created.

Can I use the same activity as the configuration activity? Will I have to handle it differently? How does the existing widget get updated with the new settings?

How can I get this to work?

View 1 Replies View Related

Android :: DVM Instance Creation - Launch Installed Droid App At Runtime From Another?

Oct 14, 2009

I trying to understand how a new process is being created based on AndroidManifest.xml, also looking for the possibility of creating/ forking a new Java process/new DVM instance at runtime.

I could find that using Runtime.exec one can issue system commands or launch native applications, but this is not what I am looking for, I am looking for creating an equivalent java process just as the parent java process.

Can I launch an installed android application at runtime from another android application? Whats the way for doing this?

View 2 Replies View Related

Android :: Intent Filters - Prevent Creation Of Multiple Activity Instances?

Feb 16, 2010

I added an intent filter to one of my activities, so that when a user clicks a URL like "www.mysite.com", and if my app is installed, my registered activity can be launched. It works well.

I see that this creates a new instance of my registered activity though, every time a link is clicked. Is there any way to prevent multiple instances from being created - just recycle an existing instance if one already exists?

View 6 Replies View Related

General :: Samsung Galaxy ACE 2 - Create Folder Giving Error Creation Failed?

Jun 27, 2012

Im here because of my problem with SGA 2.Few days ago I bought ACE 2 and I found few problems with "external_sd".So the problems are

1. When I try to create folder it gives me error "Creation failed"

2. When trying to move folder from internal memory to external sd it gives me error like "Moving failed", while copying goes fine.

3. I can move/copy any file to sd card, but sometimes those files got corrupted, gives me error about memory when trying to open pictures, same problem when saved camera saved photo to sd card. Even getting error when trying to play video.

APK files got corrupted too.

4. When I have moved apps to sd card some while apps work great, but after some time cant launch apps because it gives me error about that app doesnt exist.

I tried formatting sd card with pc and android.

Factory reset.

Repartition to same firmware with Odin.

Wipe cache, wipe data.

I dunno what causes those error, bugs, glitches. Is it phone or android sytem?

Tried many sd card and always got same errors. But when I mounted mine sd card to another phone it worked perfect.

View 2 Replies View Related

HTC EVO 4G :: MMS Won't Download - Transient Failure

Aug 7, 2010

Is anyone have issues downloading any MMS? I keep getting a failed download message "Transient failure". In both the default messaging app and Handcent. edit: Tried Wireless and 3G

View 25 Replies View Related

HTC EVO 4G :: Data Call Failure?

Jun 28, 2010

I keep getting a Data Call Failure on my phone, does anyone happen to know what is causing this?

View 2 Replies View Related

Android : CTS Failure In View

May 3, 2010

Was playing with CTS ,and came across a failure like below

testAnimation fail junit.framework.AssertionFailedError: unexpected timeout at android.view.animation.cts.DelayedCheck.run DelayedCheck.java:51)

Can anyone pass me some light on , how to fix this issue? or what should be the approach in cases like this? Any information will be appreciated.

View 3 Replies View Related

HTC Eris : XTR Rom 3.0.3 / MMS Sending Failure

Sep 11, 2010

I need some help. Every time i try to send a picture message it says message not sent general network failure.It will say that a few times in a row.On rare occasions even though it says that it might go through.Any ideas how to fix this.Is there an MMS fix i missed?

View 3 Replies View Related

Android TCP Receive Failure

Aug 24, 2012

I am connecting to a server on my network written in C#. The data sent from the android device is received by the server and a reply is succesfully sent but the android code timesout and never gets the return data.I have tested that the C# server can communicate and reply with a C# client.

I have studied the network traffic using Wireshark when using both the C# server-android client and C# server-C# client and it appears that the android device acknowledges(ACK) the reply data but my code never recieves it.

I have the code running in a thread so running it on Android 4.0 doesn't error out but I have tried running it on Android 2.2 with exactly the same behaviour(or lack of it). Also I have run it on 2 different android devices.

(AndroidManifest.xml)
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
(My Code)
[code]...

View 3 Replies View Related

General :: Software Failure For Arc

Jul 9, 2012

I have a problem regarding my software update on my Sony Ericsson Xperia Arc, I did all steps regarding this PC Companion application for updates, a last step when i tried to turn on my phone, it is constantly showing logos of Sony and Xperia, I wait for a several minutes because it is saying that process of turning on is process which lasts several minutes, but now more than our passed, just that logos are happening...

View 1 Replies View Related

Android :: Creation Of A Developer Wanted / Artist Wanted / Services Offered Page?

Apr 14, 2010

On the Microsoft XNA forums there is a services wanted/offered recruitment section which is meant to help developers find artists / sound designers and vice versa. I can't seem to find something like this for Android. Does anyone know of a forum that has something like this? Other than just posting another Developer wanted topic on this group?

View 3 Replies View Related

Android :: Moving Cursor Adapter Cursor Creation To Background Thread

Mar 29, 2010

The structure of some of my activities is a simple ListView with a custom CursorAdapter. The cursor is created in onCreate() on the activity from a SQLite database. The problem is that querying the SQLite database can be quite slow at times with lots of data (and let's assume I've already optimized the sql query as much as possible). Because it occurs in onCreate() on the UI thread, I get ugly black screens when opening the activity, which sometimes turn into ANRs, on a slow phone like the G1. I want to load the cursor in a background and show "Loading.." on screen while doing so. I saw AsyncQueryHandler used extensively in the framework, but this seems a solution geared more towards Content Providers and not application-local SQLite databases. I then thought of trying to load the cursor in a background thread, but realize that this might be problematic, as the CursorAdapter should be instantiated in onCreate() and should take a cursor as a parameter. The latest thought I had was to instantiate an empty MatrixCursor in onCreate() and pass that to the cursor adapter, while kicking off a thread/TimerTask to query the database. Then, on database cursor load, call cursorAdapter.change Cursor to the properly filled cursor. This doesn't seem very elegant and seems quite wasteful, however.

View 10 Replies View Related

Android :: Socket Is Not Connected

Feb 17, 2010

I am trying to use httpclient to hit a http link. For some reason I keep on geting this "socket is not connected" error. I am not sure about the reason for this error. Can any one help? This error also occurs when I start using the car navigation app or whenever I try to forward calls.

View 5 Replies View Related

Android :: How To Connect G1 With Pc By Socket

Mar 3, 2009

I have a java server which run on the pc, and a client which run on the G1. Now, G1 is connected to the pc with a usb cable. I want to use socket to let them communicate with each other, as what I did in the emulator. But now G1 cannot find the server through the ip "10.0.2.2".InetAddress serverAddr = InetAddress.getByName ("10.0.2.2"); ClientSocket = new Socket(serverAddr,SERVERPORT); The ClientSocket is null. What's the IP of the pc now?

View 3 Replies View Related

General :: Socket Connection App SDK?

Jun 20, 2012

I'm making a chat program and server relay on pc and I was wondering if there's a simple template for tcp/ip socket connections.

View 9 Replies View Related

Android :: MediaPlayer - Failure In Wav And 3gp Formate

Jul 8, 2009

I was very confused for MediaPlayer, follow the audio supporting formate from: http://developer.android.com/guide/appendix/media-formats.html

I success in mp3 formate, but failure in wav and 3gp formate.. i can't figure out why i can't? the other question is the error message from adb logcat,

E/MediaPlayer( 729): error (1, -1) E/MediaPlayer( 729): Error (1,-1)

What's the "(1,-1)" means? i try my best for several methods and audio/video support formate, but still failuere, and always get the error message..

View 6 Replies View Related

Android :: TC Failure Due To Unknown Host

Aug 12, 2010

I am running the CTS on the Arm based phone. When I tried to run the Network related test cases.I am getting the above error in the "android.core.tests.luni.net" test package and due to this error around 179 test cases are getting failed.Please help me out.Is there any environment setting issue in the setting up the target.I have connected the target with the USB to my Fedora system. additionally target have the 3G Sim connected with It.

View 2 Replies View Related

HTC Desire :: SMS Sending Failure On ORANGE

Jun 1, 2010

Today I've just started having many SMS failures when trying to send via my Desire handset on the Orange UK network. I've put the sim in another phone and the messages send (and receive) fine. I've done a factory reset and still the problem remains - 'SMS unable to send' notification. Eventually on a retry it seems they do send (sometimes coming through twice) but it's something that has only just started happening.

As I say I tried a factory reset and the problem remains using either the stock sms client or indeed Handcent. I also noticed before the reset when I restarted the phone it would take upto 5 minutes to achieve any phone signal at all - after the restart it finds it almost immediately.

View 49 Replies View Related

HTC EVO 4G :: Boot Failure Due To Exchange Syncing

May 30, 2010

I ran into this with my corporate e-mail this week on a Google I/O Evo. The setup of my exchange account was painless. Just need to plug-in my e-mail, password and a device password. Exchange syncing works fine until you turn off your phone. When you power the phone back on, it boots up to the point where the Sprint intro video plays. At that point, according to Sprint tech support, the Exchange syncing hits a snag and causes the phone to restart indefinitely playing that same loud, annoying intro video over and over. The only workaround was to open up the bootloader (power+volume down on power up) and erase all my data. I went through a simple setup and a simple setup + exchange again to confirm that it was indeed the Exchange account that introduced the problem.

View 37 Replies View Related

HTC EVO 4G :: No Incoming MMS Downloads - Transient Failure

Jul 8, 2010

I can send MMS but when someone sends one to me it tells me who its from, the message size, a button for download and when it expires. If I click to download, it tries to download for about a min then I get a notification that says "message not downloaded" then below it says "transient failure". I have had 2 people send me MMS messages, both times my EVO behaved the same way. Both people have verizon service.

I have the White EVO
firmware version 2.1 - update1
software number1.47.651.1

I have tried a soft reset by powering down the phone, removing the battery and resetting. This is my 3rd day of having this device. When I left the store with it, I received an update notification. Then when I got to WiFi, I installed the OTA update. I don't know whether mms worked before the update as I didn't have time to use it before the update began.

View 4 Replies View Related

ADVERTISEMENT