Magic trackpad problems - Nexus 4 Q&A, Help & Troubleshooting

Hi,
i have the same Problem as described here:
http://code.google.com/p/android/issues/detail?id=39665
Same problem has been reported with the N7:
http://forum.xda-developers.com/showthread.php?p=29494425
It should work like this:
http://www.youtube.com/watch?v=TJvT0GeF1p4
My system: Nexus 4; Stock ROM 4.2.1; rooted
Apples Magic Trackpad pairs with the N4 but is is recognized as some sort of Joystick.
Only a spot in the middle of the screen is visible and it can be clicked.
I was able to change the pointer style from spots to pointer
creating the file:
/system/usr/idc/Vendor_05ac_Product_030e_Version_0060.idc
With the text:
Code:
# Copyright (C) 2010 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Emulator keyboard configuration file #2.
#
device.internal = 0
touch.deviceType = pointer
touch.orientationAware = 0
touch.gestureMode = pointer
touch.size.calibration = area
you can change touch.gestureMode = pointer to spots to see the effect
note: my wifi gets very slow when using this file!
the parameters can be found here:
http://source.android.com/tech/input/touch-devices.html#indirect-multi-touch-pointer-gestures
can someone with more experience create a idc file for the trackpad?

Related

NetFront v3.3 (Technical Preview version)

----------------
1. Introduction
----------------
The microbrowser NetFront v3.3 for Pocket PC was developed based
on standard Internet protocols and supports the latest
standard markup languages: HTML (HyperText Markup Language),
XHTML (Extensible HyperText Markup Language), and WAP2.0 (WML1.3).
It also can display pages to which CSS (Cascading Style Sheet),
ECMAScript (JavaScript), DOM (Document Object Model), or DHTML (Dynamic HTML)
has been applied, and provides powerful features similar to a PC browser.
--------------------------------
2. Main Function Specifications
--------------------------------
The following are the main functions of NetFront v3.3 for Pocket PC:
* HTML 4.01
* XHTML 1.1
* cHTML (Compact HTML)
* XHTML Basic (XHTML subset: W3C Recommendation)
* WML1.3
* CSS (Cascading Style Sheet) 1, 2 (partial)
* ECMAScript 3rd Edition (JavaScript 1.5 equivalent)
* DOM (Document Object Model) 1, 2 (partial)
* Image format: GIF, Animation GIF, PNG, JPEG, MNG-LC, BMP
* HTTP/1.1
* SSL (Secure Socket Layer) 2.0/3.0, TLS (Transport Layer Security) 1.0
* Multi-windows (function to display up to 5 tabbed windows by switching them)
* Cookie
* Bookmark, Page Memo
* Auto-Cruise
* Helper (start external applications)
* Internet search engine
* Smart-Fit Rendering
* Browsing mode (Full Browsing, Text Browsing, Simple Browsing, Rapid-Render)
* Certificate Manager
* Smart Frame Operation
* RSS, Atom Feed
* NetFront SMIL Player
* NetFront SVG Viewer
* Web data/Password Manager
* Enable/Disable pop-up function
* Rendering on a virtual-size screen (Virtual Canvas)
-----------------------
3. System Requirements
-----------------------
* CPU : PXA2xx (XScale)/PXA2xx compatible CPU
* OS : Windows Mobile 2003 software for Pocket PC (English version)
Windows Mobile 2003 Second Edition software for Pocket PC
(English version)
* Memory for data storage: Approx. 4.0MB
* Memory for program execution: Approx. 5.0MB or more
-------------------
4.Verified Devices
-------------------
HP iPAQ Pocket PC h2210
HP iPAQ Pocket PC hx2410
HP iPAQ Pocket PC hx4700
----------------
5. Installation
----------------
* Execute NF33PPC3ARENR103TP.exe on a PC to start the installation.
------------------
6. Uninstallation
------------------
* On a PC,
1. Open "Add and Remove Programs" in Control Panel.
2. Select NetFront v3.3 for Pocket PC (PPC3ARENR103TP) and press
the Change and Remove button.
* On a Pocket PC,
1. Select "Start" -> "Settings".
2. Open "Remove Programs" on the "System" tab.
3. Select "ACCESS NetFront33" and tap the Remove button.
--------------------------------------------
7. Changes from NetFront v3.2 for Pocket PC
--------------------------------------------
(1) VGA LCD support
* For Windows Mobile 2003 Second Edition software for Pocket PC,
display in VGA LCD is supported.
(2) Improved operatability
* You can now copy and paste into a password box
* You can now copy and paste into a text box
* Pressing the Enter key after entering characters in
the Search tool bar starts searching
* Cache setting has been changed
(3) Smart Frame Operation
* Enables you to operate pages with frames on the small
screen of a Pocket PC. With Smart-Fit Rendering, you can view
framed pages smoothly.
(4) RSS (RDF Site Summary / Really Simple Syndication), Atom Feed support
* Since RSS and Atom Feed, file formats for content distribution
using XML are supported, you can view update information for blogs or news sites.
(5) NetFront SMIL Player
* Conforms to 3GPP SMIL and W3C's SMIL Basic.
You can play multimedia contents that are composed by freely combining
various file formats, such as text, image, sound, movie, and animation.
(6) NetFront SVG Viewer
* Conforms to W3C's SVG Tiny1.1.
You can optimize SVG content for various terminal screen sizes, or
zoom the content in or out on a single screen.
(7) Enable/Disable pop-up function
* Avoids opening pop-up windows such as advertisements, which you do not
intend to receive.
(8) Other features
* Enhanced CSS support
CSS support such as changing the color of text boxes, etc. with CSS
has been enhanced.
* Web data/Password Manager
Centralizes and manages the username/password information
entered by a user.
* Page translation
Translation for the following language can be performed.
- From Japanese to English
* Rendering on a virtual-size screen (Virtual Canvas)
You can render data not only at the actual size of the screen,
but also at a virtual screen size that you set.
----------------------------------
8. Verified External Applications
----------------------------------
* Microsoft Pocket Excel
* Microsoft Pocket Word
* Windows Media Player for Pocket PC
----------------
9. Restrictions
----------------
(1) About the NetFront v3.3 for Pocket PC browser
* This Technical Preview version has the following restrictions:
- Usage of this program is limited until January 31st, 2006.
- Multi-windows function can open up to 2 tabbed windows.
- Only one user agent can be edited.
- Auto-Cruise supports only one-level links.
- Only 10 registered bookmarks can be displayed.
* ActiveX (Flash/WMP) plug-ins are not supported.
* JV-Lite2 is not supported.
* If NetFront is installed in external storage, when the power of
the Pocket PC is turned on or off, the behavior becomes unstable.
* Scroll mode is not available on plug-in screens.
* Integrated Windows Authentication for IIS is not supported.
* To activate scheduled Auto-Cruise, exit NetFront v3.3.
------------
10. Support
------------
Support for this Technical Preview version is not available.
If you find any problems or have any feedback, please submit it
using the form at http://nfppc.access.co.jp/english.
---------------------------------
11. Intellectual Property Rights
---------------------------------
* The copyrights relating to this product belong to ACCESS CO., LTD.
If the copyright notices are included separately in a program or
document, the copyright is the property of the copyright holder.
Copyright (C) 1996-2005 ACCESS CO., LTD.
* NetFront is a trademark or a registered trademark of ACCESS CO., LTD.
in Japan and other countries.
* ACCESS is a registered trademark of ACCESS CO., LTD. in Japan.
* Java, all Java-based trademarks and logos are trademarks or registered
trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
* All other trademarks, logos and trade names mentioned in the document
are the property of their respective owners.
* No one may delete or in any manner alter the copyright, trademark or
other proprietary right notices of ACCESS CO., LTD. or any other third
party appearing on or within this product; and no one may add any mark
or indication to this product which is similar to, or may be confused
with, the copyright or other proprietary marks or notices of
ACCESS CO., LTD. or any third party.

NetFront 3.5

It isn't just Niki specific but the touch friendly NetFront v.3.5 is available for download
http://www.access-company.com/products/netfrontmobile/browser/35_wm_tp.html
So far it looks very nice
Arnon
I've had a quick look at this - a few issues but shows promise: http://randomelements.me.uk/Lists/Posts/Post.aspx?ID=631
been testing this out and so far this works really well, but only just started playing......
heres the page u gotta fillin BEFORE it lets u dload
https://www.access.co.jp/english/nfppc/form.php?type=4
readme txt
=======================================================================
= May/07/08 =
= NetFront Browser v3.5 for Windows Mobile Concept Version =
= =
= readme_e.txt =
= =
=======================================================================
----------------
1. Introduction
----------------
Experience faster and smoother browsing with NetFront Browser v3.5
for Windows Mobile Concept Version. Leveraging the latest NetFront
Browser core available for the Windows Mobile platform, NetFront
Browser v3.5 for Windows Mobile Concept Version features improved
key operation, stylus pen functionality and overall usability.
The browser also features improvements in speed including first
draw time, zooming speed and rendering mode selection.
-------------------------------
2. Main Feature Specifications
-------------------------------
The following are the main features:
- HTML 4.01
- XHTML 1.1
- cHTML (Compact HTML)
- XHTML Basic (XHTML subset: W3C Recommendation)
- WML1.3
- CSS (Cascading Style Sheet) 1, 2 (partial)
- ECMAScript 3rd Edition (JavaScript 1.5 equivalent)
- DOM (Document Object Model) 1, 2 (partial)
- Image format: GIF, Animation GIF, PNG, JPEG, BMP
- HTTP/1.1
- SSL (Secure Socket Layer) 2.0/3.0, TLS (Transport Layer Security) 1.0
- Multi-windows (function for displaying up to 5 tabbed windows by switching them)
- Cookie
- Bookmark, Page Memo
- Helper (starts external applications)
- Internet search
- Smart-Fit Rendering
- Browsing mode (Full Browsing, Text Browsing, Simple Browsing, Rapid-Render)
- Certificate Manager
- Japanese domain support
- RSS?AAtom Feed
- Pop-up Block
- Rendering on a virtual-size screen (Virtual Canvas)
- Visual Bookmark
- Swift Navi.
- Animated zoom
- PageMap
- Column Rendering
- Virtual Pointer
-----------------------
3. System Requirements
-----------------------
- CPU: XScale/ARM compatible
- OS: Windows Mobile 5.0 for Pocket PC
- For data storage: Approx. 5.8MB
- For program execution: Approx. 6.0MB
-------------------
4.Verified Devices
-------------------
- WILLCOM W-ZERO3 (WS003SH, WS004SH)
- WILLCOM W-ZERO3[es] (WS007SH)
- SoftBank X01HT
- DELL Axim X51v
------------------
5. File Structure
------------------
- NFB35EN_WMPRO_RxxxCV.CAB ... Windows Mobile 5.0 for Pocket PC Installer
Remarks: Release number is assigned to "xxx" for CAB in proper release
----------------
6. Installation
----------------
1.Copy the Cab file to Windows Mobile device
2.From Windows Mobile explorer, find the copied Cab file and run it to start installation
------------------
7. Uninstallation
------------------
1. On Windows Mobile, select [Setting] from [Start]
2. Open [Remove Programs] on the [System] tab
3. Select [ACCESS NetFront Browser v3.5] and tap the [Remove] button
---------------
8. New Features
---------------
(1). Speed Improvements
The speed of first draw time and content viewing are dramatically
improved enabling fast scrolling in any direction.
(2). Swift Navi
Scrolling is significantly smoother.
(3). Animated Zoom
Select and zoom areas on a web page quickly and smoothly.
[How to operate]
1. Double-tap the screen to zoom the whole area of virtual canvas
2. Move a frame with the cursor key/navigation pad
3. By pressing the enter key or tapping the navigation pad,
the selected part of the page is enlarged
(4). PageMap
PageMap thumbnail preview facilitates navigation.
This
[How to operate]
1. Hold the up or down part of the cursor key/navigation pad to show the pagemap
(5). Column Rendering
When viewing content in the previous desktop mode, text
often exceeded the screen width, requiring repeated use
of the scroll bar. This issue has been resolved,
and functionality has been dramatically improved.
(6) Virtual Pointer
Virtual Pointer is a UI for moving the pointer, and for performing operations
such as clicking, using the cursor keys and the Enter key.
Focus Assist
Function that supports automatically moving to, and selecting, an anchor or
input form in the direction of the pointer when the pointer is close to it.
[How to operate]
1. Press the enter button to show the pointer
2. Move the pointer with the cursor key
3. By pressing the enter key, click operation is performed
4. After waiting a bit without operation, the pointer is hidden
----------------------------------
9. Verified External Applications
----------------------------------
- Microsoft Pocket Excel
- Microsoft Pocket Word
- Windows Media Player for Pocket PC
-----------------
10. Restrictions
-----------------
(1) This concept version has the following restrictions:
- The trial period for this software expires on August 31, 2008
- Plug-in is not supported
- No technical support is available for this concept version
- If NetFront is installed in external storage, the behavior becomes unstable
when the device is turned on or off
- Integrated Windows Authentication for IIS is not supported
------------
11. Support
------------
No technical support is available for this concept version.
If you have any bug report, comments, and suggestions,
please visit our web site (http://nfppc.access.co.jp/english) and fill in the form.
---------------------------------
12. Intellectual Property Rights
---------------------------------
* The copyrights relating to this product belong to ACCESS CO., LTD.
If the copyright notices are included separately in a program or
document, the copyright is the property of the copyright holder.
Copyright (C) 1996-2008 ACCESS CO., LTD.
* NetFront is a trademark or a registered trademark of ACCESS CO., LTD.
in Japan and other countries.
* ACCESS is a registered trademark of ACCESS CO., LTD. in Japan.
* Java, all Java-based trademarks and logos are trademarks or registered
trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
* All other trademarks, logos and trade names mentioned in the document
are the property of their respective owners.
* No one may delete or in any manner alter the copyright, trademark or
other proprietary right notices of ACCESS CO., LTD. or any other third
party appearing on or within this product; and no one may add any mark
or indication to this product which is similar to, or may be confused
with, the copyright or other proprietary marks or notices of
ACCESS CO., LTD. or any third party.
Click to expand...
Click to collapse
thanks for share, I like use it more than opera, because netfront use a few of memory than opera.
Hi there,
Is there a way to use smartfit view as default viewing when launching a website with netfront?
Thanx

VB.NET how to pass a struct? anyone?

Anyone know how to pass a pointer to a struct in VB.NET that could help me out?
" pGPSPosition
Pointer to a GPS_POSITION structure. On return, this structure is filled with location data obtained by the GPS Intermediate Driver. The dwValidFields member of the GPS_POSITION instance specifies which fields of the instance are valid."
This is from a link on MS site: (http://msdn2.microsoft.com/en-us/library/bb202050.aspx)
So how do I do this in VB?
Looking for a little love here...
TIA,
WM6 SDK contains the sample with the complete wrapper around the GPS intermediate driver in the managed code
But one warning - on some devices (namely HTC Artemis) the serious bug in some version of code provided by Microsoft to Oem return an error when calling functions this API. Communication with a GPS via serial port is still more reliable for a commercial solutions...
Appreciate the response but do you have any source that I can use with VB? My biggest problem is actually retrieving any information from the GPS device using the "GPSGetPosition" function. (see other link - http://forum.xda-developers.com/showthread.php?p=1979418#post1979418)
"But one warning - on some devices (namely HTC Artemis) the serious bug in some version of code provided by Microsoft to Oem return an error when calling functions this API"
Could you be a little more specific?
TW,
Semi manual marshhalling of structure to pointer:
Dim pointerM As IntPtr = Marshal.AllocHGlobal(Marshal.SizeOf(myStruct))
Marshal.StructureToPtr(myStruct, pointerM, False)
Marshal.FreeHGlobal(pnt)
Ad Artemis and another devices) GPS structure has invalid size from old platform builder and intermediate driver (GPS API) refuse it with error.
RStein,
As I was reading about it appeared that Marshaling was going to have to be used in some way since I'm pretty sure that the struct would need to be passed to the C function.
Which brings me to another Q since it appears your are savy at programing in C - how to convert the following C struct?
The struct appears to have a couple of arrays and a few other enums thats are passed to the function, how is that handled in VB?
DWORD GPSGetPosition(
HANDLE hGPSDevice,
GPS_POSITION *pGPSPosition,
DWORD dwMaximumAge,
DWORD dwFlags
);
typedef struct _GPS_POSITION {
DWORD dwVersion;
DWORD dwSize;
DWORD dwValidFields;
DWORD dwFlags;
SYSTEMTIME stUTCTime;
double dblLatitude;
double dblLongitude;
float flSpeed;
float flHeading;
double dblMagneticVariation;
float flAltitudeWRTSeaLevel;
float flAltitudeWRTEllipsoid;
GPS_FIX_QUALITY FixQuality;
GPS_FIX_TYPE FixType;
GPS_FIX_SELECTION SelectionType;
float flPositionDilutionOfPrecision;
float flHorizontalDilutionOfPrecision;
float flVerticalDilutionOfPrecision;
DWORD dwSatelliteCount;
DWORD rgdwSatellitesUsedPRNs[GPS_MAX_SATELLITES];
DWORD dwSatellitesInView;
DWORD rgdwSatellitesInViewPRNs[GPS_MAX_SATELLITES];
DWORD rgdwSatellitesInViewElevation[GPS_MAX_SATELLITES];
DWORD rgdwSatellitesInViewAzimuth[GPS_MAX_SATELLITES];
DWORD rgdwSatellitesInViewSignalToNoiseRatio[GPS_MAX_SATELLITES];
} GPS_POSITION, *PGPS_POSITION;
Click to expand...
Click to collapse
I had a suggestion to create a library from the C# SDK, how difficult would that be? Would it be easier than trying to convert to VB?
Can you help with that?
Thanks for any feedback...

DataManagement Library for Easy Android Database Storage

Storing objects to a Database for an Android application should be fast and easy as:
Code:
dm.add(new StorableClass());
DataManagement is a new open source library that allows you to do just that.
DataManagement is a Java Android library designed to help easily and efficiently store aggregate classes to an SQLite database. It eliminates the need to write separate classes to manage database – object interactions and allows developers to use simple methods to store, query, update, and delete objects. The library is capable of storing all objects of classes whose instance variables are either primitive data types or are themselves objects of another storable class. The DataManagement Library condenses many standard database features into several simple methods. It is fully open source and the code can be found at http://epsilonlabsllc.github.com/DataManagement
Examples:
Creating a Storable Class:
Code:
public class StorableClass{
@Id
private int ident;
private int num1;
private double num2;
private String num3;
private boolean num4;
public static final int num5 = 3;
private OtherStorableClass[] ds2;
}
A storable class must meet two requirements. First, the class must have a private instance variable of type int that will be used as the id number of the object. This variable may be read by the application, but the application should not have the capability to write to or change this variable in anyway. This variable is identified by the system with an @Id annotation. In addition, the class should not have any instance variables that are not either primitive types, strings, or other storable objects.
Instantiating a DataManager Object:
Code:
DataManager dm = new DataManager(context);
The open method accepts the calling Context that is going to use the database. Usually this should be the calling Activity.
Opening a Database for Use:
Code:
dm.open();
This method must be called before the database is used in any way.
Closing a Database After Use:
Code:
dm.close();
This method should be called after all database operations have been performed.
Adding an Object to the Database:
Code:
int id = dm.add(new StorableClass());
The add method accepts an object of a storable class as its only parameter and adds it to the database. It returns its id in the database for future use.
Retrieving a Specific Item from the Database by ID:
Code:
StorableClass storableObject = dm.get(StorableClass.class, id);
The get method accepts two parameters: the data type of the stored object and the Id number of the object (the return value of the add method).
Retrieving All Objects of a Given Type Stored in the Database as a Collection:
Code:
storableObjectCollection = dm.getAll(StorableClass.class);
The getAll method’s only parameter is the class of the objects that should be retrieved.
Retrieving a Collection of Storable Objects that match a given criteria:
Code:
Collection<StorableClass> storableObjectCollection = dm.find(StorableClass.class, 5, "num1");
The find method accepts three parameters: the data type of the stored object, the value that is being searched for, and the name of the instance variable as a string. This method is overloaded in such a way that the second parameter may be any primitive value or a string.
Updating an Object in the Database:
Code:
dm.update(id, updatedObject);
The update method accepts two parameters: The id number of the object being updated and the updated object that will replace the existing one I the database. If the id number of the new object and the id number given as the first parameter do not match, the object’s id will be overwritten.
Deleting an Object by its Id number:
Code:
dm.delete(StorableClass.class, id);
The delete method accepts two parameters: The data type and id number of the object to be deleted.
Additional Notes:
Id numbers are used by the database to ensure that objects are put in the correct place and to allow the program to access these objects. It is important that programs using this library do not attempt to set these variables as they will be initialized and managed by the library. These id numbers are unique for objects of a given type; objects of different types may have the same id number. In addition, if objects are deleted from the database their id numbers are left empty and are not reused.
Licensing:
DataManagement is Currently Licensed under the GNU General Public License, version 3 (GPL-3.0). It is intended for open source use by anyone who would like to use it.
This is awesome!!
Tried it out for an app today-- incredibly simple! For those looking-- this library essentially replaces loads of SQL helper classes and queries with an interface that's similar to ArrayList.
Definitely going to use this for everything in the future!
Thanks
Did you change the license or something? The repo is no longer on github.
regaw_leinad said:
Did you change the license or something? The repo is no longer on github.
Click to expand...
Click to collapse
After a quick search on github, it looks like it's been moved here
https://github.com/epsilonlabsllc/DataManagement
cmike21 said:
After a quick search on github, it looks like it's been moved here
https://github.com/epsilonlabsllc/DataManagement
Click to expand...
Click to collapse
Thanks. I forgot to change it. I just edited my post with the correct url.
Sounds awesome! Great work.
Gonna try it this evening.
Anyone compared the performance with db4o?
are there any performance test with other DB libraries for android? and what about the this lib vs contentproviders?
activeandroid.com
code.google.com/p/orm-droid]orm-droid
satyan.github.com/sugar/
will definitly be using this once i learn some app development! thanks for this!
Just in time...
Hello,
I'm trying to build a simple project the test and learn how this lib works, but I'me quite new in programming and I have some difficulties to understand how to use dm.
The project will be a simple song database with edittexts for song and artist. I created the storableClass as the example, but I cannot understand how to connect it with the main activity, so I can use the output of the editTexts.
1st question is: do I need to have the String variables as private? I'm thinking that must have them as public, so I can connect them with the editTexts output.
2nd: question: all these methods needed to be called from storableClass, or from main activity, after I connected the storableClass with main activity? And how I do this?
Probably with the use of context you descibed, but I cannot understand how to do it. I tried sometimes but always get errors and a specific one "The constructor DataManager(Context) is not visible".
Is there any example project' source code which use this lib to get an Idea, or can you explain the context step more extensively?
Thanks in advance and sorry for noob questions.
dancer_69 said:
Hello,
I'm trying to build a simple project the test and learn how this lib works, but I'me quite new in programming and I have some difficulties to understand how to use dm.
The project will be a simple song database with edittexts for song and artist. I created the storableClass as the example, but I cannot understand how to connect it with the main activity, so I can use the output of the editTexts.
1st question is: do I need to have the String variables as private? I'm thinking that must have them as public, so I can connect them with the editTexts output.
2nd: question: all these methods needed to be called from storableClass, or from main activity, after I connected the storableClass with main activity? And how I do this?
Probably with the use of context you descibed, but I cannot understand how to do it. I tried sometimes but always get errors and a specific one "The constructor DataManager(Context) is not visible".
Is there any example project' source code which use this lib to get an Idea, or can you explain the context step more extensively?
Thanks in advance and sorry for noob questions.
Click to expand...
Click to collapse
Here is a sample project: https://github.com/epsilonlabsllc/D.../net/epsilonlabs/datamanagementefficient/test
(It's in the github project.)
You can set the strings on private, because you can grab the values of the edittext on your layout. Eclipse should generate your set/ get methods if you create your private strings. The methods. Take the values and insert them into your db, Look at the sample:
Code:
public DataSample(){
num1 = 3;
numderp = 3.0;
num3 = "three";
num4 = true;
ds2depier = new ArrayList<DataSample2>();
ds2depier.add(new DataSample2());
ds2depier.add(new DataSample2());
}
That is the basic constructor of the DataSample class. If you do an insert like
int id = dm.add(new StorableClass());
Click to expand...
Click to collapse
The basic constructor will be called and it sets your values for example the num1 =3. You could overwrite the basic constructor with your costum constructor to insert your values.
You activity call:
dm.add(DataSample(sSong,sTitle));
Click to expand...
Click to collapse
The constructor could be something like this:
public DataSample(String sSong, String sTitle){
sYourTitleDataBaseColumnCaption = sTitle;
sYourSongDataBaseColumnCaption = sSong;
}
Click to expand...
Click to collapse
Or use the set/get methods, my custom constructor are just an idea to show you an example. Just take a closer look at the github sample and it should work for you.
Thanks, I think I can figure it out now.
How to is very outdated. I can't initialize via new DataManager() but via getInstance(), also delete and update method doesn't have Id argument anymore.
Also,
I can't get this to work. I can't even add a member to collection because it needs to use db.add(new MyClass()); but i already have MyClass() initialized with their members. I have tried to do something like copy the Id from add, update into my other instance of this class and run a db.update() but it throws a RuntimeException.
Not usable at this time.
Sounds good!
I'll give it a try as soon as I start a new project that requires data storage ...
I really hate SQLiteOpenHelper, cursor and all this strange syntax ...
The idea is good, but it can't be compared to db4o, specially when talking about documentation.
Hello mate,
I'd like to use your library and backup the data with Google/Dropbox Sync... can you tell me the name of the file on which you save data?
Thanks,
Tiwiz

[LIB][2.2+]Font Widgets

Set of Android Widgets that support custom fonts(Typeface)
Note: Font file type support may vary across different android versions
Supported Widgets
* AutoCompleteTextView (as FAutoCompleteTextView)
* Button (as FButton)
* CheckBox (as FCheckBox)
* CheckedTextView (you get the idea...)
* Chronometer
* CompoundButton
* DigitalClock
* EditText
* ExtractEditText
* MultiAutoCompleteTextView
* RadioButton
* Switch
* TextClock
* TextView
* ToggleButton
Every implementation extends default android implementation of that widget
This means that FSwitch for example wont work on SDK < 14, same as default Switch
Usage
Fonts
3 sources for font files are supported: assets, absolute, internal
assets - you can include your font file directly in assets folder of your porject
absolute - you have to specifi full path of the font file. for example: /sdcard/Roboto-Light.ttf
internal - font file should be located relative to your applications private directory(/data/data/com.example.app), You only need to specifie name of the font, not whole path
Example
Layout
Code:
Java
No need to do anything special in code if you specified source and font in xml
To do everything in code you can do the following:
Code:
FTextView tv1 = new FTextView(this);
tv1.setTypeface("Roboto-Light.ttf", TypefaceHolder.Source.asset);
Developed By
* Predrag Čokulov - - this is me btw. . Dont spam my mail
License
Code:
Copyright 2014 Predrag Čokulov
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Library is Open Source

Categories

Resources