Skip to Content

In Part1 Custom Gateway service with CRUD Operations and Android application through Eclipse Part 1 & Part2 Custom Gateway service with CRUD Operations and Android application through Eclipse Part 2 I discussed :

1. RFC function module with PO Number,Creation Date & PO Release indicator as input parameters.

2. Create service in Gateway system with all the CRUD operations.(Create Read Update Delete)

3. Test our service in ‘Service Explorer’ (Various filter options along with CRUD operations).

In Part3 I will be discussing how to :

4. Create Application in Eclipse and test it on Simulator.

4. Create Application in Eclipse and test it on Simulator.

     Calling our service in eclipse is simple but, we have three input fields(PO number, Date & Release Indicator) for which we need to create a new screen and      write some java code. Actually i do not have knowledge on java/android programming, with help of my friend I copied screens and try to call this screen.

     Below are the steps i will follow to complete our app.

     a. Import service to Eclipse.

     b. Copied login screen, changed default fields and included our required fields.

     c. Add new activity in AndroidManifest.xml.

     d. Add code to SelectionActivity.java

     As I already specified I do not have idea on Android programming, for running my scenario I did above changes (May be android developer will be more      familiar with the steps).

     a. Import service to Eclipse.

/wp-content/uploads/2013/11/3_330236.jpg

/wp-content/uploads/2013/11/4_330237.jpg

Import service and complete the application.

     b. Copied login screen, changed default fields and included our required fields.

         /wp-content/uploads/2013/11/5_330238.jpg

      Include required label and text fields:

/wp-content/uploads/2013/11/6_330242.jpg

     c. Add new activity in AndroidManifest.xml.

/wp-content/uploads/2013/11/7_330243.jpg

      d. Add code to SelectionActivity.java

          Default screens will be: Login screen -> List screen -> Details screen

          Now i included selection screen to enter PO Number/Date/Release Indicator

          After changes, screen sequence will be

               Login screen -> Selection screen -> List screen -> Details screen

          So, in login screen we need to call Selection screen and in selection screen we will call list screen.

/wp-content/uploads/2013/11/8_330244.jpg

/wp-content/uploads/2013/11/9_330263.jpg

Build query

/wp-content/uploads/2013/11/10_330270.jpg

Save and Test the application in emulator.

/wp-content/uploads/2013/11/11_330271.jpg

/wp-content/uploads/2013/11/12_330278.jpg

We will get PO header details.

/wp-content/uploads/2013/11/13_330279.jpg

For each PO number we will get Item details in next screen.

Screens and backend logic can be handled better by an android developer. Even we can include input fields to enter range values (like select options) , handle error messages and all CRUD operations in application.

We can use this .APK file to test it on Android device. Right click on your project in Eclipse and goto Properties. Under Resource -> Location, you can get above file(.APK) location.

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply