Android WebView

Advertisements

Using Git and GitHub

1. http://git-scm.com/download/win to download Git..

2. then found out the this GUI is also available : http://www.collab.net/downloads/giteye, but its not needed as i found that 1. above installs a GUI too,

3. The next step is simple :

Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m “first commit”
git remote add origin https://github.com/tkhemani/Hello-World.git
git push -u origin master

Push an existing repository from the command line

git remote add origin https://github.com/tkhemani/Hello-World.git
git push -u origin master

4. I would suggest using GIT Bash over windows CMD..

Well. this is it..follow this guide for the rest
http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository
and
https://help.github.com/articles/create-a-repo



Sencha Ext.device.Camera.capture

Till now i have tried this in Sencha :

function a() {
    // Grab elements, create settings, etc.
    var canvas = document.getElementById(“canvas”),
    context = canvas.getContext(“2d”),
    video = document.getElementById(“video”),
    videoObj = { “video”: true },
    errBack = function (error) {console.log(“Video capture error: “, error.code);};

    // Put video listeners into place
    if (navigator.getUserMedia) { // Standard
        navigator.getUserMedia(videoObj, function (stream) {
            video.src = stream;
            video.play();
        }, errBack);
    } else if (navigator.webkitGetUserMedia) { // WebKit-prefixed
        navigator.webkitGetUserMedia(videoObj, function (stream) {
            video.src = window.webkitURL.createObjectURL(stream);
            video.play();
        }, errBack);
    }

    // Trigger photo take
    document.getElementById(“snap”).addEventListener(“click”, function () {
        context.drawImage(video, 0, 0, 200, 100);
    });

}

a();

This thing works like a charm in mobile and dextop chrome browsers (note that in mobile chrome it worked only on hosting and not thru the local copy of html)…but sadly, the sencha app isn’t able to work  with this….

Trying this Sencha thing out :

Ext.device.Camera.capture({
success
: function(image) {
imageView
.setSrc(image);
},
quality
: 75,
width
: 200,
height
: 200,
destination
: 'data'
});
Well i now saw that in both the cases above the browser is actually searching for camera on the dextop chrome ..so it works 🙂

But on device, as apk is opening some other webview ..its not showing up…



1.36
NOW The only option is PHONEGAP………..






clickonce deployment for windows apps

Hi,

Just came across some issuse with the clickonce packaging of a windows app.

The issue was that once installed, when i changed the code and build it again using VS 2010, thought the new .application file got created, it wouldn’t install and is giving the error :

+ Unable to install this application because an application with the same identity is already installed. To install this application, either modify the manifest version for this application or uninstall the preexisting application.

Steps Tried :

0. Looked for the app in the control panel “Add/Rem Programs” but wasn’t there

1. Deleted the contents from the physical path of the app : %UserProfile%\AppData\Local\Apps\2.0

2. Then it still gave same error so i tried to clean the registry but couldn’t find the app key

3. Finally tried to clean the app cache using :

C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools>mage.exe
 -cc
Application cache cleared.

But still same error….

Finally resolved it by changing the revision of the app in Publish tab of Projfect props.

Also found that clickone packaging is done easily thru VS2010 thru the same Publish tab in VS

Another issue  with clickOnce is that it picks up the icon from the manifest and hence doesn’t reflect the icon changed done using code..

Solution : Change the taskbar settings to : never combine

Visual Studio Extensions

My extensions :

ToDo List :

1. Install Tools-> Web Components (i.e. http://download.microsoft.com/download/7/0/4/704CEB4C-9F42-4962-A2B0-5C84B0682C7A/WebPlatformInstaller_amd64_en-US.msi )..

well, i just installed it but it’s really not what i thought it was : http://www.microsoft.com/web/downloads/platform.aspx

Issues faced with :

1. ReSharper

Favourites 

1. Web Essentials