Data source cards on Android/iOS apps?

http://ubidots.com/features-create-custom-insights.html

"Share your Insights
Share your widgets with colleagues, customers or 3rd party applications

All of your widgets can be shared through a public URL, or embedded in external web or mobile applications. Once embedded, these widgets will also update in real-time."

how can I get to know more about accessing the variables on handheld devices without accessing the URL?

Thanks in advance.

Hello @utkarshns,

The widget embedding feature refers to the embed code that is provided with every widget. This should work on mobile apps based on HTML5. Not sure how you can embed this in a native app, but let us check some ideas and get back to you next week.

Thanks

Thanks.
I have tried this, but the device have different resolutions which creates a problem.
I tried css, it works but requires some tuning.
Please have a look.
https://github.com/utkarshns/sensorapp/tree/master/html

EDIT: This works nicely for portrait UI. Looks good for mobile phones/tablets in portrait(width < height) orientation.
I need something which works well for landscape too.

Sure! I’ve asked one of our team members to review this and will reply soon

I have successfully made it to work on Android 4.4+, but previous versions have problem with the iframes as they use HTML5.
I need support on devices with Android 2.3 i.e. Gingerbread onwards.

We reviewed your code and would suggest the following:

In this line: https://github.com/utkarshns/sensorapp/blob/master/WaterLevelRemoteClient/app/src/main/java/sensorapp/waterlvl/waterlevelremoteclient/MainActivity.java#L22

you are retrieving your HTML iframe. You can try not to call the HTML embed code but to call directly the widget URL, so it would look like this:

webView.loadUrl("http://app.ubidots.com/ubi/getchart/RJSiqgVC8dJuajGCj_Zjw6OOtwQ/")

This view of the widget URL will automatically resize the widget to fit the screen where it is loaded.

It works nicely. Thanks.
But it is still incompatible on pre 4.4 devices.

Yes, it seems that there’s a known Android issue with “webView”. We googled for this problem and found that other people have had similar issues. In fact, we just tried creating an app to display a single widget using http://appinventor.mit.edu/ and it only displayed the widget in a >4.4 device.

Here’s an example issue, might something similar be your case?