on 10-01-2013 5:25 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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:
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
Hi Suresh,
Refer these links
http://scn.sap.com/docs/DOC-46104
http://scn.sap.com/docs/DOC-46101
Rgrds,
Jitendra
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
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
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
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
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
Hi Suresh,
check this blog
rgrds,
Jitendra
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
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
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
Hi Suresh,
are you looking for this
Rgrds,
Jitendra
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
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
Hope it helps.
--Yan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't understand what you are trying to do. Are u trying to develop app? or trying to explore Afaria?
Midhun VP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.