cancel
Showing results for 
Search instead for 
Did you mean: 

Android app with MBO and without SUP

Former Member
0 Kudos

Hi all,

I am developing a native android application using MBO and install in mobile using afaria (means deploy apk through Afaria) ..

Following steps I did.

1. created MBO, Generated code for android without deploying into SCC.

2.Created a android project and used MBO generated java code in android.

Now I have some doubts.

1.Is this approach is correct?

2.Hoe to control authentication?

Thanks in advance

suresh

Accepted Solutions (1)

Accepted Solutions (1)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

To embed the mbo generated code to any platform without deploying mbo to SUP server doesn't make sense.

Don't you want to use client libraries also?

Not clear with your query.

Please Explain with some more points.

Rrgds,

Jitendra

Former Member
0 Kudos

Hi Jitendra,

thanks for your help..

Yes want to use crated MBO libraris( generated code) and jav files..

I am trying to develop android app by using MBO., SUP and afaria

we are developing an android  application that should connect to mobile using Afaria.

1.How to achieve this?

If I deploy the MBO in SCC and deploy android APK file afaria.

and I install the application in mobile using afaria client,

will it work?

Our final output is, we want to run a application in mobile using afaria.

That application should display SAP data.

How to achieve this?

thanks in advance......

thank

suresh

midhun_vp
Active Contributor
0 Kudos

First, you need to understand how the SAP mobile app works.

To run an adnroid app there is no need of Afaria. The app runs on SUP.

Steps to develop an android app are:

  1. Develop MBOs and deploy it to SUP server
  2. Generate the code and integrate it with Android project. Once it is done you will be able to run the app using and android device or in an Android Emulator from Eclipse IDE (Android SDK). You can find tutorials here.http://www.youtube.com/user/SUPDeveloperProgram

     http://scn.sap.com/docs/DOC-8803

Afaria comes into picture when you want to do a device management. Simply telling "for controlling mobile devices". Using Afaria you can lock the device, clear data in the device, install/uninstall/update app etc all remotely.

Please go through the tutorial and develop the app and run the app after that go for Afaria. you can found Afaria libraries that can be added in the android project to load the the app with credentials from Afaria etc..

- Midhun VP

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Suresh,

Refer these links

http://scn.sap.com/docs/DOC-46104

http://scn.sap.com/docs/DOC-46101

Rgrds,

Jitendra

Former Member
0 Kudos

Hi Midhun,

     Thanks for your hep.

We don't want to use HWC to run application, we want to deplay the appication in Afaria directly.

Is it possible?

What we thought is

1. use MBO generated code to fetch data from SAP

2, use android layout.xml to design the page application

3. Deploy apk file of android app in Afaria

Please share if you have any document regarding, how to access MBO generated code libraries in android application.

thanks

suresh

midhun_vp
Active Contributor
0 Kudos

Understand that you can't deploy the app to Afaria. Afaria cannot replace SMP since Afaria is not a middleware and it is meant for mobile device management. You cannot access data from SAP via Afaria to device. Please read documents on Afaria to understand what are there features and capabilities.

- Midhun VP

Former Member
0 Kudos

Hi Midhun,

Thanks for help..

Actually my manager want to use afaria without HWC.

Is there any way to achieve,

To get the data from sap directly in to android application.

If i do following,

1. Create MBO , Deploy to SCC.

2.In android app give the credentials to login to SCC .

3.by using findall method of MBO get the data .

4.Now our android app is independent, correct?

Thanks in advance

Suresh

midhun_vp
Active Contributor
0 Kudos

Afaria is independent of SUP (HWC apps includes here). If you develop app using the generated code from sup you will not use HWC. HWC is based on the web technologies where we will not use the Native APIs (Generated code).

Use the steps I mentioned before to develop a native application that fetch data from SAP. After developing this app you can push the apk file to device using afaria.

-Midhun VP

Former Member
0 Kudos

Hi Midun,

Thanks for you input. It helped me.

I have small doubt.

How to deploy HWC Applications through Afaria.

Is HWC applications will work only on HWC ?

Actually we have a requirement like, user need not to enter,

server name, port , farm ID, url suffix, user name, activation code in HWC. ( even-though one time activity )

Is it possible through afaria?

Is there any way to do this?

Thanks

Suresh

Thanks

Suresh

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Suresh,

For hwc based app you need to have hwc container on device. This is must.

You can set settings details in coding except user name and password.

Rgrds,

Jitendra

Former Member
0 Kudos

Hi Jitendra,

could you elaborate how to set settings details for HWC?

thanks in advance

suresh

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
midhun_vp
Active Contributor
0 Kudos

To run the HWC apps you need an HWC container in the device. You can install the HWC container app to the device from Afaria. For that you need to create an application policy and link it with the group. You can get the HWC app from appstore.

I got your requirement on filling the settings details from Afaria itself. It is possible to fill the settings through Afaria, please go through this, http://scn.sap.com/community/mobile/blog/2013/06/17/provisining-hwc-container-application-through-af...

- Midhun VP

Former Member
0 Kudos

Hi Jitendra,

Thanks....

Nice document, its working fine , now i can give server name, port number all.

Small correction in your document

property.setValue( "" ); through this method we can set the property value and you can return the same.

no need to change return type of all methods property to string

Public String getDefaultConnectionServerName().

Do you have any document related to how to use MBO generated files in java script and how to generate HWC application through java script other than packing tool.

We are using SUP 2.3.

Thanks

Suresb

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

suresh babu

Its good to hear your issue got resolved.

I could nt understand. what exactly you want to try

Do you have any document related to how to use MBO generated files in java script and how to generate HWC application through java script other than packing tool.

We are using SUP 2.3.

Rgrds,

Jitendra

Former Member
0 Kudos

Hi Jitendra,

Thanks for quick replay..

We want to develop HWC application by using html5 and java script.

MBO for back-end and html5 and java script for front-end.

We are using SUP 2.3.


Thanks in advance

suresh

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
Former Member
0 Kudos

Hi Jitendra,

Now we want to set the challenge code and common name in HWC settings.

Is challenge code and common name are active directory user name and password ? or something else.

Is it possible to set these two using any custom code?.

What is challenge code?

We installed Afaria client in mobile and connected to Afaria server.

Thanks in advance..

Suresh

Answers (2)

Answers (2)

former_member228049
Participant
0 Kudos

I don't have any experience on the MBO and native app approach, but from doc , it seems doable,

Here also have doc about tutorial: Android Object API application Development 2.2 sp04

http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc01734.0224/doc/html/title...

Hope it helps.

--Yan

midhun_vp
Active Contributor
0 Kudos

I don't understand what you are trying to do. Are u trying to develop app? or trying to explore Afaria?

Midhun VP

Former Member
0 Kudos

Hi Midhun,

thanks for you input....

I am trying to develop android application

thank

suresh