0

I want to know if I could combine html UI elements into the native android app and put values (images and Strings) fetched from a database directly to the html UI.

4
  • 1
    Why do you want to do that? You can use a WebView in order to show HTML content inside your app. Commented May 4, 2016 at 13:54
  • because my team could design a good UI but in html & css so i want to include it in my application , if i used webview it will allow me to handle buttons (created in html ) actions and add images to it ? Commented May 4, 2016 at 15:05
  • Yes, you can, but it's absolutely not worth. Your team should learn how to design good interfaces in pure Android or use a WebApp framework like Cordova, Titanium and so on. Commented May 4, 2016 at 15:09
  • @Grender thanks a lot Commented May 7, 2016 at 12:23

1 Answer 1

3

The best way is using a WebView to show a html content! One example about this: http://www.mkyong.com/android/android-webview-example/

Sign up to request clarification or add additional context in comments.

2 Comments

if i used WebView it will allow me to add images fetched from database to certain frames in the UI ?
this link can help you: developer.android.com/reference/android/webkit/… and for the database: stackoverflow.com/questions/20148793/… if yes, please check as a good answer, thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.