Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to enable uploading or taking picture on webview #710

Open
sagunshre opened this issue Mar 23, 2015 · 8 comments
Open

how to enable uploading or taking picture on webview #710

sagunshre opened this issue Mar 23, 2015 · 8 comments
Assignees
Labels
contribution wanted Can you contribute to resolving this issue? Please join in! support
Milestone

Comments

@sagunshre
Copy link

No description provided.

@sagunshre sagunshre changed the title how to wnable uploading or taking picture on webview how to enable uploading or taking picture on webview Mar 23, 2015
@donv donv added the support label Mar 25, 2015
@donv donv added this to the 1.3.0 milestone Mar 25, 2015
@donv donv self-assigned this Mar 25, 2015
@donv
Copy link
Member

donv commented Mar 25, 2015

Hi @sagunshre !

You could take a look at the SpyCam tutorial:

https://github.com/ruboto/ruboto/wiki/Tutorial%3A-Making-a-spycam

It uses the camera at least. How to do it in a WebView, I am not sure. How would you do it with Java?

I found some examples Googling:

https://www.google.no/?q=android+webview+camera+capture

http://androidexample.com/Open_File_Chooser_With_Camera_Option_In_Webview_File_Option/index.php?view=article_discription&aid=128&aaid=148

I can help you translate a Java example into Ruby.

@sagunshre
Copy link
Author

hi @donv thanks
it would be great if you could translate java to ruby. I've been stuck on this for more than a week.

@donv
Copy link
Member

donv commented Mar 25, 2015

Do you have a GitHub project and perhaps some description of what you want to make?

@sagunshre
Copy link
Author

@donv just a simple webview project for loading web application. so, i need to be able to upload a picture and also be able to take a picture from camera when i click on html file input

@sagunshre
Copy link
Author

@donv my oncreate method looks something like this

def onCreate(bundle)
super
web = WebView.new(self)
web.setWebViewClient(WebViewClient.new)
web.settings.use_wide_view_port = true
web.settings.java_script_enabled = true
web.settings.built_in_zoom_controls = true
web.load_url 'http://www.example.com'
self.content_view = web
rescue Exception
puts "Exception creating activity: #{$!}"
puts $!.backtrace.join("\n")
end

@donv
Copy link
Member

donv commented Apr 5, 2015

Working on getting a new release out. Will try to look at this before the next release.

@donv donv modified the milestones: 1.3.1, 1.3.0 Apr 5, 2015
@donv donv added the contribution wanted Can you contribute to resolving this issue? Please join in! label Apr 5, 2015
@sagunshre
Copy link
Author

@donv any updates on this issue.

@donv
Copy link
Member

donv commented Oct 12, 2015

Sorry for late response. Still working on getting a new release out with @danielpassos .

@donv donv modified the milestones: 1.3.2, 1.3.1 Oct 12, 2015
@donv donv modified the milestones: 1.3.2, 1.3.3 Dec 22, 2015
@gfowley gfowley modified the milestones: 1.4.1, 1.4.2 Jan 21, 2016
@donv donv modified the milestones: 1.5.0, 1.5.1 Nov 17, 2016
@donv donv removed this from the 1.6.0 milestone Dec 27, 2016
@donv donv modified the milestones: 1.6.1, 1.6.0 Dec 27, 2016
@donv donv modified the milestones: 1.6.1, 1.6.2 Mar 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution wanted Can you contribute to resolving this issue? Please join in! support
Projects
None yet
Development

No branches or pull requests

3 participants