Help required in application structuring

by cotyledon 11 » Sat, 30 Apr 2011 15:14:52 GMT


Sponsored Links
 Hi

I am trying to develop an application which needs to perform the following
tasks

 [1] Fetch and store data from database.

 [2]calculate my location through GPS.

 [3]Do some calculations based on the (1) and (2) data.

 [4] Draw the data from (3) on camera preview.

The main requirement is whenever my location is updated/changed the above
mentioned tasks should be performed again.

right now i am using services for the first three tasks and in the main
activity i am drawing the data over camera preview. But this does not seem
to work so i am confused if i am implementing it right or does my
application require re-structuring. Please suggest some alternatives or
improvements.

Thanks
-- 
-Nidhi Singh

-- 
.



Re: Help required in application structuring

by TreKing » Sun, 01 May 2011 04:46:37 GMT


 



Elaborating on "does not seem to work" would be helpful if you want help.

so i am confused if i am implementing it right or does my application


You've provided such a high-level description of a couple of very broad
topics with very little details that it's pretty much impossible to tell you
anything useful.

-------------------------------------------------------------------------------------------------
TreKing < http://sites.google.com/site/rezmobileapps/treking> ; - Chicago
transit tracking app for Android-powered devices

-- 
.


Sponsored Links


Other Threads

1. Are activity managed cursors requeried on the UI thread?

>From looking at Activity's source code it seems like managed cursors
are requiered straight from the UI thread.  Am I reading this wrong or
is this indeed the case?

-Jonas

-- 

2. TabActivity resulting in a crash.

Hi,

I have a small issue i hope someone will be able to help me.

Basically, I've a listactivity, and when the user clicks a line, it
starts a tabactivity.

The tabactivity starts with downloading a content in a separate thread
and when it's done, the runOnUI method is used to create the sub-tabs
accordingly to the downloaded data.

I works with the emulator on 2.2 and 2.3 but crashes with 2.1.

This is the resulting stack trace :

E/AndroidRuntime( 6306): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime( 6306): java.lang.RuntimeException: Unable to start
activity ComponentInfo{be.defimedia.android.walkawaremobile/
be.defimedia.android.walkawaremobile.ItemListActivity}:
java.lang.NullPointerException
E/AndroidRuntime( 6306):        at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2496)
E/AndroidRuntime( 6306):        at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2512)
E/AndroidRuntime( 6306):        at android.app.ActivityThread.access
$2200(ActivityThread.java:119)
E/AndroidRuntime( 6306):        at android.app.ActivityThread
$H.handleMessage(ActivityThread.java:1863)
E/AndroidRuntime( 6306):        at
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 6306):        at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 6306):        at
android.app.ActivityThread.main(ActivityThread.java:4363)
E/AndroidRuntime( 6306):        at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 6306):        at
java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 6306):        at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime( 6306):        at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime( 6306):        at dalvik.system.NativeStart.main(Native
Method)
E/AndroidRuntime( 6306): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 6306):        at
be.defimedia.android.walkawaremobile.ItemListActivity.onCreate(ItemListActivity.java:
75)
E/AndroidRuntime( 6306):        at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
E/AndroidRuntime( 6306):        at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2459)
E/AndroidRuntime( 6306):        ... 11 more

Does anyone has an idea how I can do that for Android 2.1 ? Thanks a
lot.

Best regards

-- 

3. JPEG Image has a map

4. [hawkboard.org] Flashing U-boot through uart

5. Problem Using Tamil font(Latha.ttf)

6. Image zooming functionality in Android just like the iphone

7. Desire nyangkut di booting up