mySQL or Internally?

by MP » Tue, 10 Feb 2009 06:40:32 GMT


Sponsored Links
 Hello All,

I am currently brainstorming a project that would require offering new
content for every day of the year.  Each day the app would start with
the most recent content (text string).
I can think of two ways the app would obtain the string content:

SQL DB
Internally in the App

Would it be easier to incorporate the 365 text strings into the app?
(That a lot of entries), or have the app request the string from my
DB?  What would be your thoughts on this method?  Is there another
way?

Thanks for your time.

-MP

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Disable scaling of ImageView

Hi all.

Most of the time, Android scaling is nice but I have a case where I
don't wan't any scaling and I can't find how to do this.


I made a simple layout to test :


<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/carre"
            android:scaleType="@null"
        />

        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/carre"
            android:paddingLeft="100px"
            android:paddingTop="100px"
            android:scaleType="@null"
        />
</FrameLayout>


@drawable/carre is a 100x100 square.
The result is :
qvga : http://www.baroukh.com/qvga.png
hvga : http://www.baroukh.com/qvga.png
wxvga : http://www.baroukh.com/wxvga.png

So hvga is the only screen correct.



I tried to initialise scaleType to "null" but that's not possible
(btw, setScaleType() throw a NullPointerException if scaleType is
null. Shouldn't it theow an IllegalArgumentException ? :
public void setScaleType(ScaleType scaleType) {
        if (scaleType == null) {
            throw new NullPointerException();
        }
)

Do I have to make my own ImageView ?

Thanks for any help ...

Mike

-- 

2. Can I send an image byte[] to ACTION_VIEW intent?

Hi all,

Just wondering if its possible to use the built in image viewer to
display an image sourced from a database.

I'm hoping I can pass the byte[] as an extra to the ACTION_VIEW
intent, but can't find any docs on it so far.

Alternatively I'll have to roll my own viewer or first write the image
out to a file and pass that to the intent.

Thanks

-- 

3. Game Stuttering

4. Transmitting signals at 433Mhz

5. onHandleIntent(Intent) method does not get called

6. Accessing Resources in a ProviderTestCase2

7. New iPhone 4 camera test reveals impressive pictures and video - GSMArena.com news