Registration

Dear SAP Community Member,
In order to fully benefit from what the SAP Community has to offer, please register at:
http://scn.sap.com
Thank you,
The SAP Community team.
Skip to end of metadata
Go to start of metadata

Android

Welcome to the Android area. This is the SDN WIKI for topics around Android development and apps at SAP. Feel free to create and correct entries.

There is no content with the specified labels

SDN landing page | Forum | Blogs

Moderators of this WIKI section are Mario Herger.

Getting started

Frequently Asked Questions

  • Page:
    Android FAQ — Frequently Asked Questions (FAQ) contain a collection of problems and questions with solutions and answers to topics around Android.

Guidelines

There is no content with the specified labels

Step-by-Step Guides

There is no content with the specified labels

Services for Android

There is no content with the specified labels

Demos

There is no content with the specified labels

Learning Map

There is no content with the specified labels

Bibliography

There is no content with the specified labels

  • Page:
    Android Links — A collection of references and links about Android.

1 Comment

  1. Former Member

    I would like to upload an example android project that I wrote a few months ago.  The project uses BAPI_FLIGHT_GETLIST exposed as a web service using SE37.  It uses SAP Logon ID and Password.  The XML is parsed using DOM when the data comes back from SAP.  How do I upload this zipped up Android project?  Can I just submit a zip file?  I suppose I should document it with screen prints so it's clear what it is....I only see update with a comment...Forgive my ignorance.  I was thinking of setting up a google website and then sending you the link to the content if uploading the Java source code and the documentation doesn't work...

    Here is some sample code where I setup a spinner control to get a hard coded list of airline ids.  You can tell from all the Log.v statements that I struggled to debug the java...or maybe because I used to use alot of Display statements when I was a COBOL programmer...

    package com.mason.chris;
    /*
     ** This class shall be used to get the Airline ID from the user
     *it uses a Spinner control and a hard code Array defined in the
     *strings.xml resource file
     */

    import android.app.Activity;
    import android.content.Intent;
    import android.net.Uri;
    import android.os.Bundle;
    import android.view.View;
    import android.widget.AdapterView;
    import android.widget.AdapterView.OnItemSelectedListener;
    import android.widget.ArrayAdapter;
    import android.widget.Button;
    import android.widget.Spinner;
    import android.widget.Toast;
    import android.util.*; //get logs

    public class AirlineIDActivity extends Activity {
        public Spinner airlineIDSpinner;
        ArrayAdapter<CharSequence> idAdapter;
        String TAG = "AirlineIDActivity";
        String AirlineID = "11";
        Button OKButton;
        Button CancelButton;
        
    @Override
      public void onCreate(Bundle savedInstanceState)

    Unknown macro: {    Log.v(TAG, "start on create");    super.onCreate(savedInstanceState);    setContentView(R.layout.airline_id_view);        airlineIDSpinner = (Spinner) findViewById(R.id.airline_spinner);    idAdapter = ArrayAdapter.createFromResource(getApplicationContext(), R.array.airline_array,            android.R.layout.simple_spinner_item);    idAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);    airlineIDSpinner.setAdapter(idAdapter);    // add the event listener to the spinner    airlineIDSpinner.setOnItemSelectedListener(new AirlineIDSelectedListener());    //setup buttons    OKButton = (Button)findViewById(R.id.buttonDone);    CancelButton = (Button)findViewById(R.id.buttonCancel);    hookupOKButton();    hookupCancelButton();  }

      private void hookupOKButton() {
        OKButton.setOnClickListener(new Button.OnClickListener() {
            public void onClick (View v)

    Unknown macro: {              Log.v(TAG, "OK button pressed");            Intent result = new Intent();            result.putExtra("airlineid", AirlineID);            setResult(RESULT_OK, result);            finish();        }

        });
      }
      private void hookupCancelButton() {
            CancelButton.setOnClickListener(new Button.OnClickListener() {
                public void onClick (View v)

    Unknown macro: {                  Log.v(TAG, "Cancel button pressed");                setResult(RESULT_CANCELED, null);                finish();            }

            });
      }
    //implement a nested class to listen for the item selected event
      public class AirlineIDSelectedListener implements OnItemSelectedListener {
          public void onItemSelected(AdapterView<?> parent, View view, int pos, long id)

    Unknown macro: {          Log.v(TAG, "Item Selected Event caught");          AirlineID = parent.getItemAtPosition(pos).toString();          Log.v(TAG, "Airline ID = " + AirlineID);          Toast.makeText(parent.getContext(), "The Airline ID is " +               parent.getItemAtPosition(pos).toString(), Toast.LENGTH_LONG).show();          //Uri data = new Uri("content}

          public void onNothingSelected(AdapterView<?> parent)

    Unknown macro: {            // Do nothing.                   }

      }

    }