Android : Can't Connect To WCF Service On Droid
Dec 22, 2009
I am trying to connect to a .NET WCF service in Android using kSOAP2 (v 2.1.2), but I keep getting a fatal exception whenever I try to make the service call. I'm having a bit of difficulty tracking down the error and can't seem to figure out why it's happening. The code....
View 3 Replies
Dec 18, 2009
I am writing an android program and I need to connect to the Drupal service to fretch the data or submit data. How can I do that?
View 2 Replies
View Related
Dec 9, 2013
Im trying to connect to a WCF service hosted on one of my websites, this WCF Service returns "Hello World" nothing exciting i've been followinf this Calling a RESTful web service from an Android application | vrsbrazil
Below is my Request task
[HIGH]
package Methods;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import org.apache.http.HttpResponse;
[Code]....
View 13 Replies
View Related
Mar 11, 2010
I'm trying to write a basic camera app. The problem that I am facing is that it works fine in emulator but on the phone (Nexus one) it fails.
The point of failure is the very first call, i.e. Camera.open(). It fails on the phone saying "Failed to connect to camera service". Any idea what could be wrong? (BTW, I am calling this from my activity's onCreate funtion itself, could that be an issue?)
For the information, I do have the necessary Camera permissions specified in my manifest xml file.
View 2 Replies
View Related
Nov 16, 2009
I apologize in advance for this long post, but it's necessary to show what is happening.
I've been working on an app that works on the 1.6 emulator, but bombs on my G1.
Here is the Photographer activity:
CODE:..........
And here is where this activity gets called from:
CODE:............
Having trouble pasting the relevant portions of AndroidManifest.xml, but I have permissions for Camera:
CODE:..........
Here's the Photographer part:
CODE:..............
Also set for testing on G1:
android:debuggable="true"
and working off of 1.6:
<uses-sdk android:minSdkVersion="4" />
All this works on a 1.6 emulator, but when I run this on the G1, LogCat shows:
CODE:.............
And /data/anr/traces.txt shows:
CODE:................
It sounds like the problem is a timeout issue, but I am at a loss as to where I should be looking ....
View 6 Replies
View Related
Jul 30, 2010
I had my camera set to this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); and it works fine but if I change it to PORTRAIT instead of LANDSCAPE then it crashes with the following error...
CODE:............
The method it crashes in is..
CODE:.........
It crashes at mCamera = Camera.open();
My Manifest file has <uses-permission android:name="android.permission.CAMERA"></uses-permission>
How do I fix this so I can view my app in Portrait?
View 3 Replies
View Related
Mar 18, 2009
At the moment i have the following problem. I try to establish a connect to a SOAP-service. Therefore i need basicauth via http. I use ksoap2 and HttpTransportBasicAuth. The problem is, I do not know how i can start a call when i use HttpTransportBasicAuth because the function "call" is not available.
View 2 Replies
View Related
Jun 2, 2010
My web service should be returning an integer, but every time i run the code i get the NullPointerException error. i think my url string may be the problem, but i've tried using my ip with no luck. Code...
View 1 Replies
View Related
Sep 29, 2013
I'm developing an automatic vulnerability scanner/exploiter for android. I'm adding the cool feature of using the metasploit framework from our android phones.
I can start the MsfRpcd ( the metasploit daemon ) from a su shell an make it bind to the 127.0.0.1 address.
I can connect to the server using busybox netcat ( no Java though here ).
I can't connect to 127.0.0.1 from the android app! i got ECONNREFUSED.
After a bit of google i understood that JavaVM have a separate network and it filter out my connection to localhost/127.0.0.1.
how can i connect to a service bind to 127.0.0.1 on my phone from an android app?
I gave a quick look at iptables -L output, maybe i can make some hack there, but probably i will break the JavaVM network.
Binding on wifi ip is not an answer.
View 1 Replies
View Related
Jul 2, 2013
I have an android app that must connect to my local webservice with soap but I cant seem to get it working. This is the code I have.
[HIGH]public void Hello()
{
String SOAP_ACTION = "http://tempuri.org/Hello";
String METHOD_NAME = "Hello";
String NAMESPACE = "http://tempuri.org/";
String URL = "http://10.0.2.2/MainService/MainService.asmx";
[Code]...
All this does is catch an exception with the message "Null". Note that I am not an android developer, this is my very first project.
I did the same thing with Netbeans and regular Java and it works perfectly.
View 2 Replies
View Related
May 2, 2013
I got a Star N8000 with android 4.1.1 1 month and a half ago and I think its a great phone... anyways the point is that when Im connected on wifi everything is perfect, notifications aren't delayed at all but when I use data mobile its different =/ when the screen turns off for 5 mins or something like that, notifications are quite delayed... sometimes I have to turn on the screen and wait like 20 secs after I open whatsapp and all messages start to come. I dont know why I cannot connect to 3G service, maybe its because Movistar doesnt have it (Im from venezuela) so I use EDGE and I figured out about something: when I open whatsapp (after inactivity) it starts to try to connect I think because in the signal icon appears two white signs like an arrow or something like that. I dont know if it the software but it doesnt happen on wifi:.. so I dont have any idea about it. Im not root user (tried to be but didnt work) and I dont have any task killer..
View 1 Replies
View Related
Jun 14, 2010
I had a moment in the beginning and took it back,got a hero had massive problems and finally got my hero replaced with another moment that was brand new.I just got it like 2-3 days ago and its having the same issues that i had on 1.5 when i had it the first time.I had it replaced when i had it the first time and same issue.I have 2.1 now and the battery life is still horrible like dropping not long after taking it off the charger without using it but biggest problem is that the phone will tell me i have no service and it will have an x up above where the bars should be and i have to remove the battery and put it back in before it will work again.The data does the same thing and i can turn the phone off and back on for that and it will work again.Does this happen to anyone else??Its very frustrating!!Also the wifi wont connect.It just says it is unable to connect but it was just working and my laptop works wirelessly so i know that its not my router or anything with my connection.
View 4 Replies
View Related
Jul 21, 2010
I am trying to write an Android app to connect to an existing web service. I'm pretty new to web services in general, other than what I've done with this first web services (written with JSPs, Struts 1.x, and JAVA). This web service is connected to a document storage database. The user would first login to the service, then using search parameters (document title, type, etc.) the user would be displayed a list of possibly relevant documents. The user would choose a specific document from that list, and the service would then stream the entire document (pdf file) to the user for viewing.What methods are available to Android where I can make a request given some specific parameters, and be able to parse a response?The only thing I know of is HTTP, but my project leader (I'm a summer intern) is hinting that there are others available. I'm not sure where to start looking.
View 4 Replies
View Related
Nov 9, 2009
I'm developing chat application. i want android device to connect with other non android device that implement jsr 82. so how can i declare my bluetooth service on android or how to connect to any jsr 82 service .......
View 2 Replies
View Related
Jul 10, 2009
I am getting a NullPointerException at android.app.ActivityThread$PackageInfo$ServiceDispatcher.doConnected(ActivityThread.java:1012). My application is not even in the stack trace, so I have no idea what is going on. I am trying to connect to a service when it happens.
View 1 Replies
View Related
Sep 30, 2010
Please show me how to bind to a Service from another Service on Android.
If you have an image to show how to do.
View 1 Replies
View Related
Oct 17, 2010
I'm having a problem with my internet connection on my SGS. It used to lock to T-m*bile, I unlocked it lastweek then use L*bara instead cause got free internet service hehe. somehow, everytime i try to use internet service it says unable to connect to internet/ network unavailable. but I tried the simcard with another phone and it was working. some friends suggest me to re-unlock it. but i donno how to re-unlock it.
View 2 Replies
View Related
Jul 25, 2010
I have the HTC Droid Eris. Before the 2.1 update, I just had Facebook sync, but afterwards, it was synced with Facebook for HTC Sense. My problem is that it won't let me sync with just Facebook.I still want my contacts to sync with my phone, because I like the facebook pictures on there. Personally, I like Facebook sync better, because I don't like having all my Facebook contacts on my phone, because the numbers show up twice (number that I have on my phone plus the number that my friends have on Facebook).To prevent that from happening, I would rather have my phone connected to Facebook only and not Facebook for HTC Sense.I thought I could do it, but it won't let me even click on Facebook--like, nothing pops up or anything.I wasn't sure if it was my phone, so I took my dad's Eris and tried to do the same, it works fine on his phone, but I can't get mine to do sync with facebook whatsoever. Thank you very much.
View 2 Replies
View Related
Jun 24, 2009
I have a service running in the background.I have a background thread that gets a reference to the service from the application's main activity. But when the background thread calls a method in the service to display a toast, I get the "Looper not initialized exception".Why,if I have a valid, bound reference to a Service, does this still happen?
View 4 Replies
View Related
Aug 20, 2009
I am getting following message when i try to launch service.Also is there any specific path on file system where we need to place the .apk file which contains my serivce component only.
View 2 Replies
View Related
Jul 22, 2010
I am trying to run the sample soft keyboard included in the SDK. I am using the debugger, and the literature says that to use a breakpoint while debugging a SERVICE, I need to include:
android.os.Debug.waitForDebugger();
So here is the portion of the code I modified:
CODE:...........
I have put a couple of breakpoints, at the statements indicated by the comments.
This is what happens: the debugger first stops at the breakpoint1, for a few seconds. But then the service restarts. For the life of me I can't figure out what makes the service to restart.
View 3 Replies
View Related
Mar 1, 2009
My service works exactly the way i want as long as i use start and stop and communicate using intents. However my activity needs to change the state of my service as well as retrieving state information.So i thought it would be nice to broadcast some kind of state_changed event from my service and use a binder interface to pull information from the service or change the services state based on user input.This works fine too. The only problem is that my service gets killed when i unbind it just as the documentation says.Is there any way to keep the service alive but still get an interface to control it directly. My activity offers the user a way to stop the service and the service kills itself anyway after it's work is done but i don't want the service to stop every time the activity is destroyed.
View 3 Replies
View Related
Nov 7, 2010
I've experienced quite a lot of problems with the WiFi after updating the Andriod. Everytime I try to connect to my home-network i get that it failed to connect.
The phone didn't have any problems with this before the update.
Anyone had the same kind of problem, or anyone that has a smart fix for it?
View 1 Replies
View Related
Nov 9, 2010
I'm confused about whether I need to run my service in a separate process. What are the advantages / disadvantages of each?For reference I'm trying to create an App that uses a service to play [streaming] audio in the background. So which one is better for my use case?
View 1 Replies
View Related
Nov 20, 2010
what I'm trying to do here is implement something like a peer-to-peer client. Being that, it will start a client thread and a server thread.I know Services themselves run in the main GUI thread, so I'll have to start a couple of independent threads (or Asynctasks?) for each server and client. The only thing I'm not so sure about is if I'll better have 1 Service starting 2 threads, or maybe 2 services, each one of them starting their own thread.
View 2 Replies
View Related
Nov 30, 2009
I got an problem on getting the TelephonyManager in my personal service. The code as below: public class MyService extends Service {@Override public IBinder onBind(Intent intent) { return mBinder;}
View 4 Replies
View Related
Sep 30, 2009
i have an app that binds to a local service.I want to add a desktop widget that binds to the same service. does my service have to be a remote service or can it still be local?if it can still be local, how can I get at the local binder?
View 2 Replies
View Related
Apr 30, 2010
I want to do one application in which i need to do connection with MS SQL.How can i do it?
View 3 Replies
View Related
Feb 13, 2010
I'm trying to connect my Samsung Galaxy to PC but ddms tool does not recognize my phone. USB debugging is enabled. What can cause a problem?
View 3 Replies
View Related
Apr 9, 2010
I am attempting to debug an application on a Motorola Droid but I am having some difficulty connecting to the device via USB. My development server is a Windows 7 64bit VM running in HyperV and so I cannot connect directly via USB in the guest or from the host. I installed a couple of different USB over TCP solutions but the connection appears to have issues since the adb monitor reports "devicemonitor failed to start monitoring" repeatedly. I was wondering if there is a way to connect directly from the client on the development machine to the daemon on the device using the network instead of the usb connection or possibly other viable options?
View 6 Replies
View Related