[android-developers] Database design

2012-03-07 Thread joel witherspoon
I'm writing an app with a local SQLite DB stored on the device and I wanted 
to periodically have the app write data to a database located on a web host 
or Amazon's EC2. 

EC2 (e.g.) will store numbers from multiple users databases into one 
database, then crunch numbers from that database and store the statistics 
into a series of tables. My device will pull the data from these tables to 
display the statistics - most likely stored in another database located on 
the device. 
In short,


User updates the database on the tablet or phone --- Tablet or phone sends 
data to EC2 (or other web host) --- EC2 crunches numbers and sends 
calculated data (statistics) to tables --- Tablet or phone pulls data from 
EC2 for display to user.

Would I be looking at a content provider at EC2 (e.g.), or should I use a 
MySQL database on the EC2 end? What should my architecture be for this type 
of setup?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Tutorial, example code

2011-10-26 Thread Joel Witherspoon
On Wed, Oct 26, 2011 at 10:33 AM, newbee12 johan.hjor...@gmail.com wrote:

 can anyone help me locate a source code that do something simular to
 this. I learn easiest by doing and testing and this is my 2nd day
 codeing.

 Looking for an app (source code) that do some basic things 1. initial
 screen with some text and small picture, click picture to get to next
 page 2. the main page have 3 tabs, tab1, tab2, tab2, when one tab is
 clicked new page should open, this time showing a list of
 items(column1 in excel), when one item i clicked more information is
 revield (culumn2,3,4,5,6 in excel and column1 would be headline of
 the new page).

 information is today availibe in excel files (can be converted to any
 format) I would prefere if the database is offline, included in the
 app

 i use eclipse api 10.

 not looking to steal someones code, just trying to learn

 cheers!

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



Look on the android dev guide for the Hello, Tab widget tutorial (
http://developer.android.com/guide/tutorials/views/hello-tabwidget.html)

However, if this is your second day coding and you want to get a good handle
on Android Dev, I'd recommend the following books:

http://www.amazon.com/gp/product/1449393306/ref=s9_newr_gw_g14_ir05?pf_rd_m=ATVPDKIKX0DERpf_rd_s=center-2pf_rd_r=02TNNS9JEAQW09QSD6WHpf_rd_t=101pf_rd_p=470938631pf_rd_i=507846

http://www.amazon.com/Android-Application-Development-Dummies-Felker/dp/047077018X/ref=sr_1_1?s=booksie=UTF8qid=1319661857sr=1-1

http://commonsware.com/books (Mark Murphy is the author and frequently on
this list helping people out like you and me)

http://www.amazon.com/Reto-Meier/e/B002BMF4OC/ref=sr_ntt_srch_lnk_9?qid=1319661984sr=8-9
(Reto's
books are not for the faint of heart but damn, they are thorough)

In addition to this list, you should also frequent Stack Overflow.
http://stackoverflow.com/questions/tagged/android

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] sqlite help

2011-10-21 Thread Joel Witherspoon
On Fri, Oct 21, 2011 at 10:33 AM, Mark Murphy mmur...@commonsware.com wrote:

 On Fri, Oct 21, 2011 at 1:31 PM, erik wagner erik.j.wag...@gmail.com wrote:
  I am wondering if anyone has a simple SQLite app/example they can
  point to, provide or whatever.  Just basically looking for an example
  that will connect to a database, and add or remove a record.  Been
  trying to sift through the searchable dictionary example and currently
  not having much luck getting to the barebone essentials.

 Here's one from one of my books, if that helps:

 https://github.com/commonsguy/cw-android/tree/master/Database/Constants

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 Android 3.1 Programming Books: http://commonsware.com/books

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

Erik,
I recommend Mark's books for leaning Android dev period. They are
fantastic. I also recommend Android Application Development For
Dummies by Donn Felker. The SQLLite section is simple and easy to
understand and learn. I started down the SQLLite road after reading
this tutorial: http://www.screaming-penguin.com/node/7742.

Without knowing your level of development expertise, it's hard to give
you a tutorial to fit your needs.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Sqlite question

2011-10-20 Thread Joel Witherspoon
Well,
**
The easiest query would be SELECT * FROM Your Table Name WHERE id = 101;

Your result set would be
101   a
101   b
101  c

Reference SQLLite here http://www.sqlite.org/lang_select.html



On Thu, Oct 20, 2011 at 9:31 PM, NAVI NEW navi44...@gmail.com wrote:

 Hello Sir,

 i have a table in sqlite

 id  value
 101   a
 101   b
 101  c
 102  d
 104 e
 104 f
 103 g


 Here i want to retrieve 101 id all data like a,b and c , Please help
 me which query is best for this approach.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] NEWBIE needs help with Android Tab Widget tutorial

2011-10-01 Thread Joel Witherspoon
Chris,

You should only add the intent-filter into one activity. Intents are
communication channels between the layout and the code (to put it roughly).
When you have an intent in an activity, that activity is the main
communication point of the app.

Here's an example from the Dashboard Demo at this site:
http://blahti.wordpress.com/2011/03/14/build-dashboard-ui-for-android/. The
application then calls the other activities from within the code.

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=com.wglxy.example.dash1
  android:versionCode=1
  android:versionName=1.0
application
  android:theme=@style/Theme.D1
  android:icon=@drawable/icon
  android:label=@string/app_name
  activity android:name=.HomeActivity
  android:label=@string/app_name
 intent-filter
 action android:name=android.intent.action.MAIN /
 category android:name=android.intent.category.LAUNCHER /
 /intent-filter
  /activity

  activity android:name=.F1Activity
android:theme=@style/Theme.D1
android:label=@string/title_feature1
/
  activity android:name=.F2Activity
android:theme=@style/Theme.D1
android:label=@string/title_feature2
/
  activity android:name=.F3Activity
android:theme=@style/Theme.D1
android:label=@string/title_feature3
/
  activity android:name=.F4Activity
android:theme=@style/Theme.D1
android:label=@string/title_feature4
/
  activity android:name=.F5Activity
android:theme=@style/Theme.D1
android:label=@string/title_feature5
/
  activity android:name=.F6Activity
android:theme=@style/Theme.D1
android:label=@string/title_feature6
/
  activity android:name=.AboutActivity
android:theme=@style/Theme.D1
android:label=@string/title_about
/
  activity android:name=.SearchActivity
android:theme=@style/Theme.D1
android:label=@string/title_search
/

  /application
uses-sdk android:minSdkVersion=8 /

/manifest



*Joel C. Witherspoon*

(626) 502 - 7201

joel.withersp...@gmail.com
My profiles: [image: LinkedIn]
http://www.linkedin.com/in/jcwitherspoon [image:
Twitter] http://www.twitter.com/joelwitherspoon
[image: Twitter] http://twitter.com/joelwitherspoonLatest tweet: OK
Android devs. I'm looking to put a Fisheye menu in my app. I can't port it
from Java. I need code. Any ideas? I need your help.
Follow @joelwitherspoon http://twitter.com/joelwitherspoon Reply
http://twitter.com/?status=@joelwitherspoon%20in_reply_to_status_id=106551753209683970in_reply_to=joelwitherspoon
Retweet
http://twitter.com/?status=RT%20%40joelwitherspoon%3A%20OK%20Android%20devs.%20I%27m%20looking%20to%20put%20a%20Fisheye%20menu%20in%20my%20app.%20I%20can%27t%20port%20it%20from%20Java.%20I%20need%20code.%20Any%20ideas%3F%20I%20need%20your%20help.
 19:21 Aug-24http://twitter.com/joelwitherspoon/statuses/106551753209683968
  Get this email app!
http://www.wisestamp.com/apps/twitter?utm_source=extensionutm_medium=emailutm_term=twitterutm_campaign=apps

Designed with WiseStamp -
http://r1.wisestamp.com/r/landing?u=64944b580c4ca423v=2.8.5t=1317489985962promo=10dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_10Get
yourshttp://r1.wisestamp.com/r/landing?u=64944b580c4ca423v=2.8.5t=1317489985962promo=10dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_10



On Wed, Sep 28, 2011 at 9:30 PM, Chris Cullington-Johnson 
chriscj...@gmail.com wrote:

 I have just joined the Android World and am lovn it, however having a bit
 of trouble with some of the tutorials, in particular the Hello Tab Widget
 one.  Particular part states
 Notice that this doesn't use a layout file. Just create a TextView, give
 it some text and set that as the content. Duplicate this for each of the
 three activities, and add the corresponding activity/ tags to the Android
 Manifest file.  I think this is where I am going wrong, I don't fully
 understand how to add the corresponding activity/ tags in manifest
 file.  see below for my code what have I done (or not done).

 My app now doen't display errors but will not run it shows the following
 error

   The appication HelloTabWidget (process Tab.Widget) has stopped
 unexpectedly..






 ?
 xml version=*1.0*
  encoding=*utf-8*?

 
 manifest xmlns:android=*http://schemas.android.com/apk/res/android*

 package=*Tab.Widget*

 android:versionCode=*1*

 android:versionName=*1.0*

 uses-sdk android:minSdkVersion=*3* /

 application android:icon=*@drawable/icon* android:label=*
 @string/app_name*

 activity android:name=*.HelloTabWidget*

 

Re: [android-developers] What are peoples' thoughts on developing for Kindle Fire

2011-10-01 Thread Joel Witherspoon
Jeff knows the value of the developer community. I'm sure he will be more
open to the community at a later time. Amazon is stepping up its game and
I'm sure he'll make the Kindle more approachable in a few months.

*Joel C. Witherspoon*

(626) 502 - 7201

joel.withersp...@gmail.com
My profiles: [image: LinkedIn]
http://www.linkedin.com/in/jcwitherspoon [image:
Twitter] http://www.twitter.com/joelwitherspoon
[image: Twitter] http://twitter.com/joelwitherspoonLatest tweet: OK
Android devs. I'm looking to put a Fisheye menu in my app. I can't port it
from Java. I need code. Any ideas? I need your help.
Follow @joelwitherspoon http://twitter.com/joelwitherspoon Reply
http://twitter.com/?status=@joelwitherspoon%20in_reply_to_status_id=106551753209683970in_reply_to=joelwitherspoon
Retweet
http://twitter.com/?status=RT%20%40joelwitherspoon%3A%20OK%20Android%20devs.%20I%27m%20looking%20to%20put%20a%20Fisheye%20menu%20in%20my%20app.%20I%20can%27t%20port%20it%20from%20Java.%20I%20need%20code.%20Any%20ideas%3F%20I%20need%20your%20help.
 19:21 Aug-24http://twitter.com/joelwitherspoon/statuses/106551753209683968
  Get this email app!
http://www.wisestamp.com/apps/twitter?utm_source=extensionutm_medium=emailutm_term=twitterutm_campaign=apps

Designed with WiseStamp -
http://r1.wisestamp.com/r/landing?u=64944b580c4ca423v=2.8.5t=1317498730445promo=10dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_10Get
yourshttp://r1.wisestamp.com/r/landing?u=64944b580c4ca423v=2.8.5t=1317498730445promo=10dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_10



On Sat, Oct 1, 2011 at 11:46 AM, androidmediadeveloper 
kamathaj...@gmail.com wrote:

 It is well known that Kindle Fire is based on a 2.2 Fork of Android.
 However, Amazon has not once mentioned the Android name in all their
 Fire marketing. Wondering how all this is going to bode for Android
 developers such as us. Would be great to be able to port our existing
 apps onto Fire but what I'm sensing is Amazon is not going to make it
 too easy to do so, will have to at least jump thru some Amazon hoops
 to be able to port...

 Any thoughts, ideas, concerns ?

 Thanks

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Vertical scrolling Fish Eye Menu

2011-08-20 Thread joel witherspoon
In the latest version of Facebook's Android App, they have a Fish-eye
scrolling menu that pops up when you click Most Recent in the top
right corner of the app. Can someone point me to a resource that has a
tutorial that implements this menu (if you know it)?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Not able to run a simple Android Program on Eclipse 3.5.2 IDE - Caused by: java.lang.IllegalStateException

2011-07-11 Thread joel witherspoon
Try uninstalling ADT and/or DDMS and reinstalling.

Instructions for uninstalling are at the bottom of this link:
http://docs.huihoo.com/android/2.1/sdk/eclipse-adt.html

On Jul 7, 8:48 am, Sagar K sagar...@gmail.com wrote:
 Hi Everbody,

 I facing this Strange problem today.
 I'm not able to run a simple Android Program because of the below
 Error.

 Error logged from Debug UI:

 org.eclipse.core.runtime.CoreException: Plug-in
 com.android.ide.eclipse.adt was unable to load class
 com.android.ide.eclipse.adt.internal.launch.LaunchShortcut.
         at
 org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:
 180)
         at
 org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:
 162)
         at
 org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:
 874)
         at
 org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:
 243)
         at
 org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:
 51)
         at
 org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension.getDelegate(LaunchShortcutExtension.java:
 410)
         at
 org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension.launch(LaunchShortcutExtension.java:
 432)
         at
 org.eclipse.debug.internal.ui.actions.LaunchShortcutAction.run(LaunchShortcutAction.java:
 73)
         at
 org.eclipse.debug.internal.ui.actions.LaunchShortcutAction.runWithEvent(LaunchShortcutAction.java:
 121)
         at
 org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:
 584)
         at org.eclipse.jface.action.ActionContributionItem.access
 $2(ActionContributionItem.java:501)
         at org.eclipse.jface.action.ActionContributionItem
 $5.handleEvent(ActionContributionItem.java:411)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:
 3910)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:
 2405)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
         at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
         at
 org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:
 332)
         at
 org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:
 493)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:
 149)
         at
 org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:
 113)
         at
 org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:
 194)
         at
 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:
 110)
         at
 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:
 79)
         at
 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
 368)
         at
 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
 179)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
         at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
 Caused by: java.lang.IllegalStateException: Bundle
 reference:file:plugins/
 com.android.ide.eclipse.adt_11.0.0.v201105251008-128486.jar has been
 uninstalled
         at
 org.eclipse.osgi.framework.internal.core.AbstractBundle.checkValid(AbstractBundle.java:
 1160)
         at
 org.eclipse.osgi.framework.internal.core.BundleHost.checkLoader(BundleHost.java:
 185)
         at
 org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:
 227)
         at
 org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:
 1193)
         at
 org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:
 160)
         ... 34 more

 eclipse.buildId=unknown
 java.version=1.6.0_26
 java.vendor=Sun Microsystems Inc.
 BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
 Framework arguments:  -product org.eclipse.epp.package.jee.product
 Command-line arguments:  -os win32 -ws win32 -arch x86