svkirans / gwt-phonegap Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/gwt-phonegap
Automatically exported from code.google.com/p/gwt-phonegap
Add Storage API
Original issue reported on code.google.com by [email protected]
on 13 Jul 2011 at 8:00
What steps will reproduce the problem?
1.Put some sample *.png image in the folder given as path parameter to the
servlet.
2. Get the file reference on the client and then use
FileReader#readAsDataUrl(String) to get it's data url.
3.Create img tag on the webpage and set it's src attribute to data url from
point 2.
What is the expected output? What do you see instead?
Expected output is image from point 1. Instead there is a "broken image" icon
which informs that the file is not valid image.
What version of the product are you using? On what operating system?
I'm using 1.2.0.0 from maven central on Ubuntu 10.04 LTS.
Please provide any additional information below.
I looked into the problem and it seems that reason for wrong data url is that
servlet's readAsDataUrl(String) uses readAsText(String) to get String
representation of the file. Below rewritten method which returns correct
results (the image shows up in the browser):
@Override
public String readAsDataUrl(String relativePath) throws FileErrorException {
File basePath = new File(path);
File file = new File(basePath, relativePath);
ensureLocalRoot(basePath, file);
try {
byte[] binaryData = FileUtils.readFileToByteArray(file);
byte[] base64 = Base64.encodeBase64(binaryData);
String base64String = new String(base64, "UTF-8");
String mimeType = guessMimeType(file);
String dataUrl = "data:" + mimeType + ";base64," + base64String;
//logger.finest("dataUrl: " + dataUrl);
return dataUrl;
} catch (IOException e) {
logger.log(Level.WARNING, "error while reading file", e);
throw new FileErrorException(FileError.NOT_READABLE_ERR);
}
}
Original issue reported on code.google.com by [email protected]
on 13 Jan 2012 at 8:23
What steps will reproduce the problem?
1. Showcase with iPhone Simulator Version 3.1 (139.1)
What is the expected output? What do you see instead?
-only an error message appearing
What version of the product are you using? On what operating system?
-iPhone Simulator Version 3.1 (139.1)
-Gwt 2.0.3
-google plugin for eclipse 3.5
-Mac os x 10.6.4
Original issue reported on code.google.com by [email protected]
on 12 Oct 2010 at 10:36
Implement Media API
Original issue reported on code.google.com by [email protected]
on 13 Jul 2011 at 7:58
Add new Events to gwt-phonegap (Event API)
Original issue reported on code.google.com by [email protected]
on 13 Jul 2011 at 7:57
implement childbrowser open external
Original issue reported on code.google.com by [email protected]
on 25 May 2012 at 8:31
make sure unused modules compile out
Original issue reported on code.google.com by [email protected]
on 15 Jun 2012 at 6:22
thanks
Original issue reported on code.google.com by [email protected]
on 3 May 2012 at 10:51
see: http://groups.google.com/group/mgwt/browse_thread/thread/d22452346d8529bc
Original issue reported on code.google.com by [email protected]
on 7 Apr 2012 at 6:49
The accuracy function doesn't exist in gwt-phonegap-1.5. I have searched into
the api source (cordova-1.5.0.js) and I have found the property 'this.accuracy'
but I have not found 'this.accuracy.horizontal'. I think that is there any
change (in cordova-1.5.0.js) when the gwt-phonegap-1.5.0 was created and now...
Is able to fix this functionality and create the getAccuracy function?
Another point, the function 'getCurrentPosition' doesn't have any
geoLocationOptions params. Is all right?
Thank you!
Original issue reported on code.google.com by [email protected]
on 30 Apr 2012 at 11:36
PhoneGap Contact has "displayName" property and not "displayname"
Original issue reported on code.google.com by [email protected]
on 13 Feb 2012 at 3:33
Attachments:
setup automatic spanshot deployment to sonatype
Original issue reported on code.google.com by [email protected]
on 14 Nov 2011 at 11:19
see discussion from list:
http://groups.google.com/group/mgwt/browse_thread/thread/cfccf7babe0a08cc
Original issue reported on code.google.com by [email protected]
on 12 Apr 2012 at 7:55
The underlying cause is phonegap behaving weird: The flag of the filesystemroot
(isDirectory) is false on app start up.
Issue filed at https://issues.apache.org/jira/browse/CB-137
Original issue reported on code.google.com by [email protected]
on 19 Dec 2011 at 10:12
What steps will reproduce the problem?
1.PhonegapUtil.prepareService(..)
2.Run the project in Eclipse as a GWT web application
3.Then got [ERROR] - Deferred binding result type
'com.googlecode.gwtphonegap.client.util.PhonegapUtilImpl' should not be abstract
What is the expected output? What do you see instead?
The method should get called.
What version of the product are you using? On what operating system?
1.7.0.0 and Chrome on Mac (laptop)
Please provide any additional information below.
It's seems that the process of rebinding gets some problems. I checked the
property provider defined in the PhoneGap.gwt.mxl and had not found any
problems.
Original issue reported on code.google.com by [email protected]
on 20 May 2012 at 8:23
see discussion:
http://groups.google.com/group/mgwt/browse_thread/thread/54c2963af18048e6
Original issue reported on code.google.com by [email protected]
on 7 May 2012 at 5:35
make services use json instead of gwt rpc
Original issue reported on code.google.com by [email protected]
on 15 Jun 2012 at 6:49
On iOs theres support for triggering the activity indicator (spining wheel for
network) from phonegap.
Add support to the API
Original issue reported on code.google.com by [email protected]
on 16 May 2011 at 1:42
Android Menu Button Events is not working on Google Nexus S
Original issue reported on code.google.com by [email protected]
on 14 Sep 2011 at 1:56
see: https://groups.google.com/group/mgwt/browse_thread/thread/ef5a9a7fd7657fb8
Original issue reported on code.google.com by [email protected]
on 25 May 2012 at 2:47
The following is not invoking either callback functions and nothing happens:
LightArray<String> match = new JavaLightArray<String>();
match.push("displayName");
match.push("name");
phoneGap.getContacts().find(match, new ContactFindCallback() {
public void onSuccess(LightArray<Contact> contacts) {
Window.alert("contacts: " + contacts);
}
public void onFailure(ContactError error) {
Window.alert("contacts failed");
}
}, new ContactFindOptions("a"));
On a lighter note, ContactFactory getFacotry(); is mispelled
Original issue reported on code.google.com by [email protected]
on 4 Oct 2011 at 6:55
see: https://groups.google.com/forum/#!topic/mgwt/h3GMjMl_ShU
Original issue reported on code.google.com by [email protected]
on 6 Jan 2012 at 11:56
see: http://groups.google.com/group/mgwt/browse_thread/thread/a49cb19d5384cae9
Original issue reported on code.google.com by [email protected]
on 7 Feb 2012 at 1:18
phonegap.env is always equal to "no" so PhoneGap.class always is instance of
com.googlecode.gwtphonegap.client.PhoneGapBrowserImpl
(tested with GWT 2.4 et GWT PhoneGap 1.0.0)
Patch :
<define-property name="phonegap.env" values="yes, no" />
<property-provider name="phonegap.env"><![CDATA[
{
var ua = window.navigator.userAgent.toLowerCase();
if (ua.indexOf('android') != -1 || ua.indexOf('ipad') != -1 || ua.indexOf('iphone') != -1 || ua.indexOf('blackberry') != -1)
{
// var url = document.location.href;
// if(url.indexOf("file://") === 0)
// {
return "yes";
// }
}
return 'no';
}
Original issue reported on code.google.com by [email protected]
on 11 Oct 2011 at 11:48
Review new FileAPI of phonegap 1.0
Original issue reported on code.google.com by [email protected]
on 13 Jul 2011 at 7:57
Deprecate frequency in GPS module for phonegap 1.3
Original issue reported on code.google.com by [email protected]
on 6 Jan 2012 at 2:21
i get bank screen !
Original issue reported on code.google.com by [email protected]
on 3 May 2012 at 10:35
What steps will reproduce the problem?
1.Check interface: com.googlecode.gwtphonegap.client.file.FileSystem
2.Check file:
https://github.com/callback/callback-android/blob/master/framework/src/com/phone
gap/FileUtils.java from line 70
3. There is a mismatch...
What is the expected output? What do you see instead?
If I request Persistent file system I get access to Android/data/<package
name>/cache instead of ../files
What version of the product are you using? On what operating system?
I'm using version 1.2.0.0 on Ubuntu 10.04 LTS
Please provide any additional information below.
Replacement:
public interface FileSystem {
public static final int LocalFileSystem_TEMPORARY = 0;
public static final int LocalFileSystem_PERSISTENT = 1;
public static final int LocalFileSystem_RESOURCE = 2;
public static final int LocalFileSystem_APPLICATION = 3;
public String getName();
public DirectoryEntry getRoot();
}
Original issue reported on code.google.com by [email protected]
on 18 Jan 2012 at 8:45
Add connection API to gwt-phonegap
Original issue reported on code.google.com by [email protected]
on 13 Jul 2011 at 7:55
Add Notification.confirm in API
Original issue reported on code.google.com by [email protected]
on 13 Jul 2011 at 7:59
Take a look for quota apis in phonegap
Original issue reported on code.google.com by [email protected]
on 19 Nov 2011 at 9:13
AccelerometerWatcher JSO does not work when compared with null
Original issue reported on code.google.com by [email protected]
on 14 Mar 2011 at 10:28
Put in a nicer mock photo for camera module
Original issue reported on code.google.com by [email protected]
on 26 Sep 2011 at 4:57
Implement Fileupload in File API
Original issue reported on code.google.com by [email protected]
on 8 May 2012 at 5:09
What steps will reproduce the problem?
1. Showcase with iPhone Simulator Version 3.1 (139.1)
What is the expected output? What do you see instead?
-see the geolocation properties but nothings appearing
What version of the product are you using? On what operating system?
-iPhone Simulator Version 3.1 (139.1)
-Gwt 2.0.3
-google plugin for eclipse 3.5
-Mac os x 10.6.4
Original issue reported on code.google.com by [email protected]
on 12 Oct 2010 at 10:33
It seems that phonegap accepts more then 2 buttons: see
http://docs.phonegap.com/en/1.4.0/phonegap_notification_notification.md.html#not
ification.confirm
Your confirm function in NotificationMobileImpl.java states:
if (buttonLabels.length != 2) {
throw new IllegalArgumentException("expected two labels for buttons got: " + buttonLabels.length);
}
Original issue reported on code.google.com by [email protected]
on 16 Mar 2012 at 7:20
the capture api is missing in gwt-phonegap
Original issue reported on code.google.com by [email protected]
on 13 Jul 2011 at 7:53
According to:
http://docs.phonegap.com/en/1.2.0/phonegap_file_file.md.html#FileReader :
readAsDataURL: Read file and return data as a base64 encoded data url.
Original issue reported on code.google.com by [email protected]
on 18 Jan 2012 at 9:45
Attachments:
please update the spelling to onPhoneGapAvailable
Original issue reported on code.google.com by [email protected]
on 21 Nov 2010 at 3:31
What steps will reproduce the problem?
Getting an error when using writeAsText - this function has been deprecated
[INFO] Error in success callback: com.phonegap.file.testFileExists3 = TypeError: Result of expression 'navigator.fileMgr.writeAsText' [undefined] is not a function.
What is the expected output? What do you see instead?
Should write a file
What version of the product are you using? On what operating system?
phonegap-1.0.0, latest source for gwt-phonegap
Original issue reported on code.google.com by [email protected]
on 9 Sep 2011 at 12:53
Change package structure to fit maven central conventions
Original issue reported on code.google.com by [email protected]
on 27 Sep 2011 at 9:35
Hi All,
I am making an application for iphone using phonegap, in that i am reading html
file as text but for some files it's giving null result although Data is
present there
Original issue reported on code.google.com by [email protected]
on 21 Jan 2012 at 4:42
What steps will reproduce the problem?
1. Showcase with iPhone Simulator Version 3.1 (139.1)
What is the expected output? What do you see instead?
-see the phoneGap version but nothing appearing
What version of the product are you using? On what operating system?
-iPhone Simulator Version 3.1 (139.1)
-Gwt 2.0.3
-google plugin for eclipse 3.5
-Mac os x 10.6.4
Original issue reported on code.google.com by [email protected]
on 12 Oct 2010 at 10:32
There is no demo on how to use the capture api.
The Phonegap Camera API is buggy (on Android) and will be deprecated for the
Capture API.
A simple demo on how to get an image from the Capture Api (using gwt-phonegap)
would be useful.
Thanks
See: https://github.com/phonegap/phonegap-android/issues/83
Original issue reported on code.google.com by [email protected]
on 2 Nov 2011 at 10:31
Add compass api to gwt-phonegap
Original issue reported on code.google.com by [email protected]
on 13 Jul 2011 at 7:54
showcase test network crashes app on simulator with phonegap 0.9.4
Original issue reported on code.google.com by [email protected]
on 3 Mar 2011 at 9:19
Because the domain of the browser is file://some-long-dir/index.html, cookies
set during the RPC call are not readable. This is because the RPC call domain
is different and JS is blocking access to those cookies.
Inter RPC calls work fine as the Browser is doing the right thing for cookies
during the RPC call, so JSessionID and any cookies set my the back end are
still intact during the next call..
This might be handled by adding a custom client side serializer that will check
headers, trap and set-cookie headers and use the GWT Cookie helper class to set
also set the cookies in the domain of the GWT app.. This would also need to
occur for any Cookies.setCookie() calls on the client side, so that they are
copied from the locl domain to the RPC domain.
-John Gentilin
Original issue reported on code.google.com by [email protected]
on 2 May 2012 at 11:40
Version: from repo
Currently:
getFile(String path, Flags flags, FileCallback<DirectoryEntry, FileError>
callback);
Shouldn't it be:
getFile(String path, Flags flags, FileCallback<FileEntry, FileError> callback);
Original issue reported on code.google.com by [email protected]
on 21 Sep 2011 at 3:16
Update showcase wiki to reflect latest showcase
Original issue reported on code.google.com by [email protected]
on 23 Nov 2011 at 4:57
See new phonegap events:
http://docs.phonegap.com/en/1.5.0/phonegap_events_events.md.html#Events
Original issue reported on code.google.com by [email protected]
on 3 Apr 2012 at 8:00
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.