ksoap2

by AndyAndroid43 » Wed, 12 Aug 2009 01:35:53 GMT


Sponsored Links
 I want to download org.ksoap2 for Android in order to design a soap
envelope to access a published web service. Can anyone tell me the
best / latest version of ksoap2 for Android and where to go to
download it ? I'm using the Android plug-in with Eclipse Ganymede.  I
get rather confused with all the versions of ksoap2 that seem to be
available and don't know which is the one to use. Is there a .zip
version ?

Thanks in advance for your help

Andy

--~--~---------~--~----~------------~-------~--~----~



ksoap2

by Yusuf T. Mobile » Wed, 12 Aug 2009 05:54:32 GMT


 I heartily recommend ksoap2-android :  http://code.google.com/p/ksoap2-android/ 

Caveat: I've not actually used it.



Yusuf Saib
Android
T  Mobile stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.





On Aug 11, 5:48am, AndyAndroid43 <leebooks.academic...@talktalk.net>


--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. please help...on pressing CLR key, onKeyDown() is not being called up

Hi All,

In the below code, i am pressing CLR key but onKeyDown() is not being
called up.
Can anybody pls help?

package com.example.HelloGridView;


import android.app.Activity;
import android.os.Bundle;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.BaseAdapter;
import android.widget.GridView;
import android.widget.ImageView;
import android.widget.Toast;

public class HelloGridView extends Activity{
        int current_pos;
        public MyView myView;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
         myView = new MyView(this);
        GridView gridview = (GridView) findViewById(R.id.gridview);
        gridview.setAdapter(new ImageAdapter(this));
        gridview.setOnItemClickListener(new OnItemClickListener() {
            public void onItemClick(AdapterView<?> parent, View v, int
position, long id)
            {
                Toast.makeText(HelloGridView.this, "" + position,
Toast.LENGTH_SHORT).show();
                current_pos = position;
                setContentView(myView);
                //myView.invalidate();
            }
        });

    }

    public class ImageAdapter extends BaseAdapter {
        private Context mContext;

        public ImageAdapter(Context c) {
            mContext = c;
        }

        public int getCount() {
            return mThumbIds.length;
        }

        public Object getItem(int position) {
            return null;
        }

        public long getItemId(int position) {
            return 0;
        }

        // create a new ImageView for each item referenced by the
Adapter
        public View getView(int position, View convertView, ViewGroup
parent) {
            ImageView imageView;
            if (convertView == null) {  // if it's not recycled,
initialize some attributes
                imageView = new ImageView(mContext);
                imageView.setLayoutParams(new
GridView.LayoutParams(85, 85));
 
imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
                imageView.setPadding(8, 8, 8, 8);
            } else {
                imageView = (ImageView) convertView;
            }

            imageView.setImageResource(mThumbIds[position]);
            return imageView;
        }

        // references to our images
        private Integer[] mThumbIds = {
                 R.drawable.sample_0, R.drawable.sample_1,
                R.drawable.sample_2, R.drawable.sample_0
        };
    }

    public class MyView extends View {

        private Bitmap mTileArray;
        private final Paint mPaint = new Paint();

        public MyView(Context context) {
            super(context);
            initresources();
            //TypedArray a = context.obtainStyledAttributes(attrs,
R.styleable.TileView);
//            mTileSize = a.getInt(R.styleable.TileView_tileSize, 12);
            //a.recycle();
        }

        public MyView(Context context, AttributeSet attrs, int
defStyle) {
            super(context, attrs, defStyle);

            //TypedArray a = context.obtainStyledAttributes(attrs,
R.styleable.TileView);
//            mTileSize = a.getInt(R.styleable.TileView_tileSize, 12);
            //a.recycle();
            //initresources();
        }

        public MyView(Context context, AttributeSet attrs) {
            super(context, attrs);
            //initresources();
        }
     public void initresources()
     {
         Resources r = this.getContext().getResources();
         //loadTile(0,
r.getDrawable(R.drawable.sample_0));
         loadTile(1, r.getDrawable(R.drawable.sample_1));
         //loadTile(2, r.getDrawable(R.drawable.sample_2));
         //loadTile(3, r.getDrawable(R.drawable.sample_0));
     }

        public void loadTile(int key, Drawable tile) {
                Bitmap bitmap = Bitmap.createBitmap(191, 285,
Bitmap.Config.ARGB_8888);
            Canvas canvas = new Canvas(bitmap);
            tile.setBounds(0, 0, 191, 285);
            tile.draw(canvas);
            mTileArray = bitmap;
        }

        @Override
        public void onDraw(Canvas canvas) {
            super.onDraw(canvas);
            canvas.drawBitmap(mTileArray, 0,0, mPaint);
        }
        @Override
        public boolean onKeyDown(int keyCode, KeyEvent event) {
                if (keyCode == KeyEvent.KEYCODE_BACK ) {
                        //event.startTracking();
                GridView gridview = (GridView)
findViewById(R.id.gridview);
                //gridview.setAdapter(new ImageAdapter(this));
                setContentView(gridview);
                        return true;
                        }
        return super.onKeyDown(keyCode, event);
        }

    }

}

-- 

2. Silicone, Jelly, Screen Guard Galaxy S, Ace, Mini

Maaf ada tambahan
warna Silicone Ace dan Mini = hitam




-- 
===============

3. [WTS] Silicone, Jelly, Screen Guard Galaxy S, Ace, Mini

4. Using "BluetoothHeadset" class (to detect headset connection status)

5. How to detect Bluetooth connection status

6. Help: Problem when calling .Net WebService using kSOAP2

7. Call a WebView javascript function from the activity?