Android :: Html5 Canvas As A Application

Nov 23, 2010

Does anyone know if there will be support for applications like that you download from the market to be written in canvas+javascript?

I know currently there is html5 and canvas support for the android browser but I am looking more for a solution for full screen games and such.

ADVERTISEMENT

Android :: Can HTML5 Canvas Effects Run On IPhone Or Android?

Oct 16, 2010

I design a HTML5 canvas effects homepage on my site http://catfan.me You can click the sky and add a cloud, and It`s able to show the fps.It runs perfect on HTML5 supported browser, such as Chrome, FireFox, Safari, IE9.But i do not know if it run on iPhone, iPad or Android mobile phone. I didn`t have this devices.Can anyone to help me to test? Or is there any way to test the HTML5 effects running on iPad? Such as iOS or Android Emulator?

View 4 Replies View Related

How To Get HTML5 Control ID In Android Application

Sep 17, 2012

How to get the html5 control id in android application.

View 1 Replies View Related

HTML5 Mobile Web Application And Soft Keyboard

Mar 13, 2014

I'm working on a mobile web application and all phones don't casue any trouble with the soft keyboard and input fields, but Android does (tested on a HTC One).

Here's the problem:I've got a log in page with a log in form. When and input is selected, the soft keyboard appears. The soft keyboard kicks some elements up, which causes the lay out of the page to break. On iOS and Windows Phone, the soft keyboard kicks the whole page, so basically the DOM or body up to make room for the soft keyboard. The Android browser, however, lets the body stay where it is and only kicks some elements up, which causes the lay out to break.

Normal page:

When input is selected:

What the desired effect is (achieved on iOS and Windows Phone):

I haven't used any position fixed, only absolute on the page wrapper, header and header logo.

View 2 Replies View Related

Android :: What Can Be Achieved In Native Mobile Application That Can't Be Done In A HTML5 Web App

Nov 23, 2010

I've talked to a lot of people recently who say they are expecting to stop writing native mobile apps and start writing web apps once HTML5 gets more fully baked in mobile OSs. I just finished my first HTML5 deep dive, and I'm not yet convinced.

Will HTML5 work as a replacement development platform for native apps, or are there certain things that require targeting the native runtime?

View 5 Replies View Related

Android :: Make Application's Canvas In Terms Of Pixels?

Mar 13, 2010

I've determined an estimate of the size of my Android emulator's screen in pixels, although I think its resolution can be changed to other numbers. Quite frankly though that doesn't eliminate the general problem of not knowing how many pixels on each axis I have to work with on my Android applications in general.The main problem I'm trying to solve is this: How do I make sure I don't use a faulty resolution on Android applications if I want to keep things' sizes constant (so that if the application screen shrinks, for instances, objects will still show up just as big - there just won't be as many of them being shown) if I wish to do this with a single universal resolution for each program? Failing that, how do I make sure everything's alright if I try to do everything the same way with maybe a few different pre-set resolutions?

Mainly it seems like a relevant question that must be answered before I can come across a complete answer for the general problem is how big can I always make my application in pixels, NOT regarding if and when a user resizes the application's screen to something smaller than the maximum size permitted by the phone and its operating system.I really want to try to keep this simple. If I were doing this for a modern desktop, for instance, I know that if I design the application with a 800x600 canvas, the user can still shrink the application to the point they're not doing themselves any favors, but at least I can basically count on it working right and not being too big for the monitor or something. Is there such a magic resolution for Android, assuming that I'm designing for API levels 3+ (Android 1.5+)?

View 1 Replies View Related

Android :: Reset Canvas - Draw A New Bitmap Into The Canvas

Jul 7, 2010

My loadMap() method generate a canvas.throwIfRecycled exception when i try to load a new map.
When i start the game, the initial map loads and work fine though,
its only when i try to load a new map that i get the exception ..

How can i "reset" canvas and the bitmap i use to draw into, so i can startover fresh with them ?
here's what i use to create and draw my maps:

CODE:.........

So basicaly once i created and used picDest and canvas, i cannot figure how to reset it all for when i want to load a new map..

View 1 Replies View Related

Android :: Does Web Kit Support Html5?

Mar 20, 2009

Does android webkit support html5 currently or in cupcake branch? I am particularly interested in the <audio> tag.

View 2 Replies View Related

Android :: Implement HTML5 In OS

Nov 6, 2010

I have tried to implement HTML5 in Android OS. But i didnt get it....Can anyone give example HTML 5 in Android?

View 2 Replies View Related

Android :: WebView And HTML5 Features?

Oct 9, 2009

I am experimenting with Androids WebView[1] and its HTML5 features. I have written a little webpage with does the features detection like described here: http://diveintohtml5.org/detect.html

And now I see (I am on a SDK1.6 Emulator) that the LocalStorage, the WebWorkers and Offline Web Applications are not supported!

Does anyone know when these features will be supported? Or does anyone know the exact version (or build) of the webkit engine, that is used in Android 1.6?

View 9 Replies View Related

Android :: Html5 And Video Tag Working Example

Dec 2, 2009

Anybody have a working example of HTML5 file with a video tag ? [working in chrome lite] What resolution and format is supported ?

View 3 Replies View Related

Android :: WebView And HTML5 - Video

Sep 28, 2010

I'm piecing together a cheapo app that amongst other things "frames" some of our websites... Pretty simple with the WebViewClient... until I hit the video.

The video is done as HTML5 elements, and these work fine and dandy on Chrome, iPhones, and now that we fixed the encoding issues it works great on Android... in the native browser.

Now the rub: WebView doesn't like it. At all. I can click on the poster image, and nothing happens.

Googling, I found http://www.codelark.com/2010/05/12/android-viewing-video-from-embedded-webview/ which is close, but seems to be based on a 'link' (as in a href...) instead of a video element. (onDownloadListener does not appear to get invoked on video elements...)

I also see references to overriding onShowCustomView, but that seems to not get called on video elements... nor does shouldOverrideUrlLoading..

I would rather not get into "pull xml from the server, reformat it in the app".. by keeping the story layout on the server, I can control the content a bit better without forcing people to keep updating an app. So if I can convince WebView to handle tags like the native browser, that would be best.

View 3 Replies View Related

Android :: HTML5 ApplicationCache.update()

Feb 25, 2010

The HTML5 applicationCache in the 2.x browser is working well except for one problem:

when you force a cache update in JavaScript (window.applicationCache.update()) then it doesn't go out to the web to check the manifest it just throws the "checking" and then the "noupdate" events.

I imagine that eventually it actually checks the manifest online, but the update() is supposed to force it. any ideas on how to force an update or how old the manifest needs to be before it checks the web again?

View 2 Replies View Related

Android :: HTML5 Geolocation Features ?

Mar 11, 2010

I'm trying to use the HTML5 Geolocation features found in Android 2.0. However, it does not work in the browser or a WebView. I've tested in the emulator and on multiple devices. The code I have works in multiple other browsers that support the spec. Has anyone gotten this to work?

View 2 Replies View Related

Android : HTML5 Is Not Working In WebView

Oct 6, 2010

I wrote several simple HTML5 apps which all works on Android browser, but the webview in my activity doesn't work. I have enable javascript in webview setting. Is there anything setting needed for HTML5 to work?

View 3 Replies View Related

Building Android App From HTML5 And JAVA?

Feb 23, 2013

I am trying to make an app base on HTML and java actually I have this mobile site and contents are mostly text and 2 java picture galleries, and I need to run it as a native app. Is it possible to make mobnile website in other tools and somehow import them manually to Eclipse to get the app built? Because when I use new-->android application, the projects have only XML files and I am not familiar with xml.

View 9 Replies View Related

General :: Nexus 7 - HTML5 Only Browser

Sep 14, 2013

I entered the Android world with a Nexus 7 (2012) edition recently.

I create some webpages which I want to make sure that it works in HTML5 browsers. The way I go about the testing is, I first create the webpages in my laptop, copy the folder to my Nexus 7, and open the index.html in the browser.

Now, I heard that Google Chrome is a HTML5 browser. But I am unable to open my html file in that when I open it from File Manager. I tried Dolphin Browser, but it crashes the moment it opens.

So, is there any other HTML5-only browser I can use for this purpose?

View 5 Replies View Related

General :: Scaling HTML5 Built App

Jun 6, 2012

I have created an HTML5 'app' with a width and height 480 x 800 to be used as an android app.

Plan is that this can be scaled down/up for other Android devices to fit screen.

The app runs fine, but it is not being scaled to my device screen size. I have to scroll up/down and left/right on the every screen.

I have tried nearly every variation of the meta viewport tag with no succes (in the index.html file).

View 1 Replies View Related

Android :: List Of HTML5 Supported Features?

Oct 14, 2010

Is there any list which HTML5 features the WebView supports and which not? I am interested mainly in: 1) localStorage/sessionStorage 2) offline manifest 3) web sockets 4) web workers. Prior there was lack of those features (http://www.mail-archive.com/android-developers@googlegroups.com/msg60143.html), but in Android 2.1, first two should be supported, but I am not sure about 3 and 4. Is there any list of supported features or we have to test it on our own?

View 1 Replies View Related

Android :: Playing Html5 Audio In Browser

Jun 18, 2010

I have a javascript that plays audio in the browser, using the html5 <audio> tag. It works fine in the iPhone browser, but not in Android. (Testing using a htc desire with android 2.1.) Anyone know why?By the way, I am also trying to enlarge the audio button that shows up in the iphone (the default one is quite small), with no luck so far - would be grateful for any ideas!

View 3 Replies View Related

Android :: Schedule For HTML5 Support In WebKit?

Jul 22, 2009

What is the schedule for HTML5 support in WebKit? Specifically - offline web applications and storage.

View 2 Replies View Related

Android :: How To Draw With Finger On IPhone Web App HTML5?

Aug 11, 2010

As a webapp, not a native app on the iPhone or Andriod. Is it possible to draw with your finger? If so, how?Anyone have or can provide a barebone simple example that just loads a blank page?

View 2 Replies View Related

General :: HTML5 Supported Mobile Browser

Feb 29, 2012

i usually use Opera but its not working on the current ICS rom I'm using on my G2x, so in every ones eyes what's the best browser that supports Flash and HTML5 in your opinion and why, the current stock browser isn't cutting it for me.

View 4 Replies View Related

General :: Flash HTML5 Free Browser?

Jan 8, 2014

I was wondering if there's any free browser that "does" flash and html5 "equally" well...

View 9 Replies View Related

Android :: Does HTML5 Video Work On Nexus One Version 2.1?

Apr 6, 2010

I'm trying to get an html5 demo page working on Android 2.1, have tried both droid and nexus one with 2.1 but they only display the poster image, and do not play the video. Pressing on the video does not do anything. Resolved with the onclick handler on the video tag. Is it possible to use html5 video in the android 2.1 browser at this time? My demo page is working for both the iphone and the ipad.
The mp4 video: avc1, 29.97 fps, 380 kbps, 480 x 370
Audio: mp4a, 44 kHz, 64 kbps

Here's how the page is written:
<!DOCTYPE html>
<html><head><title>html5 test</title></head><body>
<video id="movie" width="480" height="370" poster="http://example.com/still.jpg" controls>
<source src="http://example.com/video.mp4" type="video/mp4">
Your browser does not support html5 video.
</video>
</body></html>

View 2 Replies View Related

Android :: HTML5 Webapp As Regular Icon Or App On IPhone

Jun 7, 2010

if this is a noob question, I searched quite a bit and couldn't find an answer. I'm developing a html5 app that relies on sqlite for local storage.I'd like for it to appear as an app icon on the iPhone/Android screen, what's the best way to do this? Ie can I write some sort of "wrapper" app to achieve it?

View 4 Replies View Related

Android :: Resources & Frameworks For Mobile Development Using HTML5

Jun 13, 2010

I am looking for resources to develop HTML5 apps for iphone primarily. Are their frameworks and tools that I can use to get started? I am looking for: Javascript frameworks that help with UI layout Touch based controls for phones Articles on iphone development, best practices, etc.I searched stackoverflow and was not able to come up with a good list of resources. I am looking for examples like these http://jqtouch.com/

View 4 Replies View Related

Android : Roadmap For HTML5 Features In WebKit For Droid?

May 14, 2010

I recently tried out the applicationCache / offline web apps on Android 2.1's WebKit and unfortunately it does not work exactly like on a webkit on the iPhone. I was wondering how I can easily see what features should be implemented and if there is something like a roadmap?

Does that information somewhere exist?

View 1 Replies View Related

Android :: How To Store Photo Image On HTML5 SQLite Database?

Nov 18, 2010

I would like an html5 page that runs in Android 2.2 Browser that I can take a picture using the phone's built-in camera and save it to a sqlite database as a blob.

View 2 Replies View Related

General :: Flash Embedded In HTML5 Doesn't Work On Android

Jan 21, 2013

my application, flash embedded in android does not function.

View 1 Replies View Related

Android :: Gears Or HTML5 Location API On 1.5 - Getting OnFailure Callback With Permission Denied Error

Apr 21, 2010

I am trying to use gwt-mobile-webkit, particularly its location api. It works well with iPhone (both device and simulator) and Firefox and on G1 with 1.6 Android, however, it does not work on G2 with Android 1.5 on it. In result I am getting onFailure callback with Permission Denied error.

So it seems, that there is some geolocation API (gears or HTML5) in the browser available, but it just does not want to ask user for granting permissions. Do you know if there is any workaround or just enable it somewhere in settings?

View 2 Replies View Related

General :: Device Navigation Softkeys Stay Lit During Stock Browser HTML5 Video Playback

May 30, 2014

I'm using the Note2 with the TW-based Digiblur rom and am having trouble when playing HTML5 player videos in the stock web browser. Any time a video plays, instead of timing out like they are supposed to, the navigation softkeys on the device stay lit while the video is playing. If I pause or stop the video, everything goes back to normal and the keys time out like they are supposed to. The problem is not present in any video player application, including the stock YouTube client.

View 3 Replies View Related

Android :: HTML5 Apps Available In Android Marketplace?

Sep 13, 2010

Are there any app built with html5 feature (such as canvas, video playback) available in Android marketplace?I'm looking for html5 web apps wrapped as a native android app.

View 1 Replies View Related

Android :: Transparent Canvas

Apr 4, 2009

I'm trying to make an app that requires me to draw over a layout with buttons, etc. I want to build a transparent canvas over the current layout and draw onto that canvas. How is this done?

View 3 Replies View Related

Android :: Draw From Old Canvas

Oct 28, 2010

I'm making an App that needs to be able to draw new graphics on top of the last set.

This is my current onDraw() method -
protected void onDraw(Canvas canvas) {
canvas.drawColor(Color.WHITE);
if(points.size() > 0) {
//do some stuff here - this is all working ok
canvas.drawLine(p1.x, p1.y, p2.x, p2.y, linePaint);
}
}

Basically, I need to draw the new graphics as a layer on top of the last, so what I'm looking for is a way to carry the image of the last canvas to the current. I have tried to figure it out myself using the canvas.setBitmap() method but it acts very funny.

View 2 Replies View Related

Android :: Copy From One Canvas To Another?

Oct 4, 2010

I want to copy the image drawn in one canvas (details) into another canvas. The commonly discussed solution of using bitmaps will not work because the Bitmap class does not have many of the important methods belonging to the Canvas class.

View 1 Replies View Related

Android :: OpenGL ES Canvas ?

Jun 13, 2010

I'm working on an OpenGL ES game using the NDK. My min SDK version is 1.6. I have created an OpenGL Es 1.0 renderer in Java and am calling a native JNI method in that renderloop.

The problem I'm having is that it seems that the resolution of the rendering context is limited. When using the emulator I'm getting a rendering canvas of 480x320, which is fine. Now; when I use my HTC Desire I am only getting a canvas of 533x320 while the native resolution of this phone is 800x480px.

View 2 Replies View Related

Android :: Possible For A View Having More Than One Canvas?

Aug 26, 2009

I have a View and that has a canvas. I am rotating the canvas, for rotating a bitmap. But after that, I need to draw one more bitmap on the Canvas and, this should not rotate. The second bitmap has to be static.

I tried with matrix rotation for bitmap. But its not rotating in the specified co-ordinates.

View 3 Replies View Related

Android :: Canvas.drawText ?

Apr 16, 2010

I have a view, I'm drawing with the Canvas object in the onDraw(Canvas canvas) method.

My code is:

CODE:....................

The problem is the text doesn't show through the background, what am I doing wrong? If I remove the canvas.drawPaint(paint) and paint.setColor(android.R.color.black) you can see the text on the screen.....

View 2 Replies View Related

How To Add Canvas To A Linear Layout

Apr 6, 2012

I'm writing an app that will graph a line. The user enters two points and the app draws and displays a line. The math I can figure out, but I am completely confused on how to use a canvas. I'm just using a basic linear layout with a couple edit texts and a button. Below that I need to display the canvas. All I am trying to do now is add that canvas below my edit texts and then draw a vertical line on it.

View 1 Replies View Related

How To Write On Canvas In Android

Mar 25, 2013

How I can show keyboar to write like text on canvas by soft keyboad?

View 4 Replies View Related

Android :: Save Canvas To Disk

Sep 22, 2009

I am doing a painting program (KIds Paint - you can find in Android Market) and I have a lot of requests to save the content on disk or to wallpaper. I have been searching around but cannot find solution. My guess is that I probably wanted to get the bitmap from the canvas, but I can't find ways to get it. Then I try to set an empty bitmap into the canvas and draw on the canvas, and save the bitmap... but I got an empty bitmap..........

View 7 Replies View Related

Android :: Converting Canvas To Drawable?

Sep 5, 2009

Is it possible to convert a Canvas to Drawable?I may be really off in my solution, so if you have a better suggestion, please do tell me. This is what I'm trying to do.I'm trying to create a custom RadioButton. to set different states of the radio button, I need to use this parameter and one of the parameter to addState is Drawable. I know I can easily provide an image file and use it as a Drawable, but I want to do some image manipulation to the image before using it.There is a tutorial in ApiDemo called AlphaBitmap. It uses the onDraw method of a View to change a PNG file to full red and draw something with a gradient. So I customized it to shade an icon with gradient. So the problem now is that this is a View, and the View works perfectly fine if I add this View to the main view. But i want to convert this View to Drawable so I can use it as one of the parameter in addState. What I really want to achieve is to have different colour shades for different state of the RadioButton without providing different images to do so.

View 6 Replies View Related

Android :: Path Appearing Twice On Map Canvas

Sep 14, 2010

I have a Main_Overlay class that extends Overlay. I added This overlay to the mapview and override the Draw method as of below:....................

View 5 Replies View Related

Android :: Draw Text On Canvas?

Oct 28, 2010

i'm trying to develop a simple pie chart class for android. For now, it can take a map of labels and values and draw the pie chart. I'm yet to add the legends for the pie, which is where i need to place the texts near small rectangles on the screen corner. Any help appreciated, since i'm new to Android dev.

View 1 Replies View Related

ADVERTISEMENT