Question on web service mobile client app for Android using ksoap2.

by Anjana » Fri, 23 Apr 2010 12:38:33 GMT


Sponsored Links
 Hi

I am creating web service clients in mobile devices (Android) through
the use of ksoap2 libraries.

 http://developer.ebay.com/DevZone/finding/Concepts/MakingACall.html 
states:
For the Finding API, no URL parameters or HTTP headers, including X-
EBAY-SOA-SECURITY-APPNAME can be specified in the SOAP header.

If they cannot be specified in SOAP header, how else can it done
(preferably using ksoap2 library). I tried appending parameters to the
URL, then calling AndroidHttpTransport androidHttpTransport = new
AndroidHttpTransport(URL); (everything else prior to the call is done,
sorry for not posting the code) but this yields soap fault.

Any thoughts/ suggestions? Thanks.
Anjana.

--



Other Threads

1. Save user name and password with SharedPreferences

Hiiiiii

   i want to save user Name and password in my android application
using the android save preference. but its not working.

code is here\\\\\\\


import android.content.SharedPreferences;

 protected void Savepreference()
                {

           int mode = Activity.MODE_PRIVATE;
                        SharedPreferences mySharedPreferences = 
getSharedPreferences
(myprefs, mode);
                        SharedPreferences.Editor editor = 
mySharedPreferences.edit();
                        String sip = sipText.getText().toString();
                        String user = UserText.getText().toString();
                        String pass = passText.getText().toString();

                        editor.putString(sipid,sip );
                        editor.putString(userid,user );
                        editor.putString(passid,pass );
                        editor.commit();
                }


  public void loadpreference()
       {
       int mode = Activity.MODE_PRIVATE;
       SharedPreferences mySharedPreferences = getSharedPreferences
(myprefs, mode);
       String sipid1 = mySharedPreferences.getString("sipid",
"Sipid");
       String userid1 = mySharedPreferences.getString("userid", "User
Name");
       String passid1 = mySharedPreferences.getString("passid",
"Password");
       sipText.setText(sipid1);
       UserText.setText(userid1);
       passText.setText(passid1);

       }


Thank You in advance
bhavesh

-- 

2. onDestroy() called and activity cycles at "lock screen"

Hi,

I have an activity using a surfaceView for drawing various objects
onto, and have observed different behavior when running the app in the
emulator and on the handset. The handset is a G1, running Android rev.
1.5, and the emulator is also a rev. 1.5 AVD.

When the app is running in emulator and the "lock-screen" key is
pressed, the onSaveInstanceState() method is invoked - this is the
behavior I would expect. When the same is performed on the actual
handset onSaveInstanceState() is also invoked, however followed by
onDestroy(), and a cycle through the acitivity life cycle:

02-01 11:36:26.531: INFO/com.spigo.balloons.Balloons(22453):
onSaveInstanceState()::called
02-01 11:36:26.531: INFO/com.spigo.balloons.BalloonsGame(22453):
saveState():called
02-01 11:36:26.531: WARN/com.spigo.balloons.Level(22453): saveState
()::balloonsInLevel==null
02-01 11:36:26.541: INFO/com.spigo.balloons.Balloons(22453): onPause
()::called
02-01 11:36:27.531: INFO/WindowManager(90): Setting rotation to 0,
animFlags=0
02-01 11:36:27.551: INFO/WindowManager(90): Config changed:
{ scale=1.0 imsi=0/0 locale=en_US touch=3 key=2/1/2 nav=3 orien=1 }
02-01 11:36:27.591: INFO/WindowManager(90): Config changed:
{ scale=1.0 imsi=0/0 locale=en_US touch=3 key=2/1/2 nav=3 orien=1 }
02-01 11:36:27.951: WARN/InputManagerService(90): Starting input on
non-focused client android.view.inputmethod.InputMethodManager
$...@439cf618 (uid=1000 pid=90)
02-01 11:36:28.151: INFO/com.spigo.balloons.Balloons(22453): onDestroy
()::called
02-01 11:36:29.701: WARN/InputManagerService(90): Starting input on
non-focused client android.view.inputmethod.InputMethodManager
$...@439cf618 (uid=1000 pid=90)
02-01 11:36:32.581: WARN/SurfaceFlinger(90): timeout expired
mFreezeDisplay=1, mFreezeCount=0
02-01 11:36:32.681: WARN/WindowManager(90): App freeze timeout
expired.
02-01 11:36:32.691: WARN/WindowManager(90): Force clearing freeze:
AppWindowToken{43c60f20 token=HistoryRecord{43ab26f0
{com.spigo.balloons/com.spigo.balloons.Balloons}}}
02-01 11:36:33.481: INFO/com.spigo.balloons.Balloons(22453): onCreate
()::called - SIS is non-null
02-01 11:36:33.531: INFO/com.spigo.balloons.Balloons(22453): onResume
()::called - thread state: NEW
02-01 11:36:33.531: INFO/com.spigo.balloons.BalloonsGame(22453):
restoreState():called
02-01 11:36:33.541: INFO/com.spigo.balloons.Level(22453): restoreState
():called
02-01 11:36:33.571: INFO/com.spigo.balloons.Balloons(22453): onPause
()::called
02-01 11:36:33.571: INFO/com.spigo.balloons.BalloonsGame(22453):
saveState():called

The manifest states: android:screenOrientation="landscape", hence the
activity is forced into landscape nomatter the orientation.

A comparison report of the two logs is available at
http://dl.dropbox.com/u/253720/Report.html , the left hand side being
the emulator and the right being the handset.

Can it be related to the "Low Memory: No more background processes."
or the "App freeze timeout expired."?

"Verbose" logs are furthermore available at 
http://dl.dropbox.com/u/253720/logEmulatorFull.txt
and http://dl.dropbox.com/u/253720/logHandsetFull.txt

Any ideas?

-- 

3. iphone app development,outsource iphone development

4. Printing Array on Screen

5. How to make a flow text in a textview

6. Problem with TextView and multiple lines

7. Builtin layout xml source code?