Code Monkey home page Code Monkey logo

alloy_fugitive's Introduction

Appcelerator Titanium Appcelerator Alloy


Videos

Appcelerator Alloy Simple TableView Mobile App: https://youtu.be/Sz_V5HAqroU via @YouTube Intro To Titanium Studio and Your First Appcelerator Alloy HelloWorld App: https://youtu.be/EBFbkM5eM6w via @YouTube


Sample Application Demostrating Appcelerator Alloy - Alloy Fugitive

You will need to properly configure the tiapp.xml file to support google maps for your application. Information can be found here:

http://docs.appcelerator.com/titanium/latest/#!/guide/Google_Maps_v2_for_Android-section-36739898_GoogleMapsv2forAndroid-GettingStarted

Aaron K. Saunders

Concepts here are meant to be a introductory guide to concepts covered in my book on Appcelerator Alloy and Appcelerator Cloud Services

New Appcelerator Alloy Book

text

There is a more comprehensive sample application here that integrates Appcelerator Titanium Alloy and Appcelerator Cloud Services Building Cross-Platform Apps using Titanium, Alloy, and Appcelerator Cloud Services

License

Copyright (c) 2012-2015 Aaron K. Saunders

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

alloy_fugitive's People

Contributors

aaronksaunders avatar skypanther avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alloy_fugitive's Issues

Ti.Geolocation requirements

To get the current longitude and latitude of the device, all we need to set are Ti.Geolocation.purpose and Ti.Geolocation.accuracy = Ti.Geolocation.ACCURACY_BEST, for energy saving in iOS, or ACCURACY_HIGH for Android so that getCurrentPosition can return the latitude and longitude, right? We don't need to distanceFilter, preferredProvider and headingFilter?

Table or database not updating.

I'm trying to update a column in my SQLite database table that is a BOOLEAN. The model is $.n2n_tb_trails and I update it by following your example; $.n2n_tb_trails.set("bookmarked", 1); and bookmarked is the exact name in the SQLite table n2n_tb_trails. After the set(), I do $.n2n_tb_trails.save(); I tried this and the database doesn't update on the spot because if I load the detailView having the same model attributes and values, bookmarked still carries the same original value. So I thought I'd do a fetch() on the collection. The collection is Alloy.Collection.n2n_tb_trails and I do Alloy.Collection.n2n_tb_trails.fetch() after I do $.n2n_tb_trails.save(); But the same thing still happens. The only time the detailView has the right bookmarked value is if I turn off the app and start it again. But I need it to update on the spot. Do you have any suggestions on how to do this or do you know what I'm doing wrong?

I based my tableview and details view like this fugitive project except I didn't use modelId. I use a dataFilter and return an array which is rendered in the tableView. When a tableViewRow is clicked, I get the e.index and use it to index the array created in the dataFilter to get the object and pass this object as the model to the detailView. I then successfully render the values of the object in the detailView. I just can't seem to update the database on the spot without turning it off and on to see bookmarked actually get updated with the most recent changes.

dataId vs modelId

What's the difference between dataId and modelId? modelId can be the specific alloy_id, right? Can dataId be ally column value from the database table like the primary key?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.