Dreaming of Electric Sheep

by Peter Groman » Tue, 15 Jun 2010 15:49:07 GMT

Sponsored Links
 Hello All,

Very "newbie" Android SDK... I am interested in begging android development.
I have pair of related applications  in mind that I want to develop rather
quickly.  I tend to learn better when I'm learning while actively working
toward my "goal app", and I've got Eclipse and the SDK installed and
running, so I decided to jump right in.  

In hindsight, that probably wasn't the best thing to do, since I don't know
much Java or Linux. I've been more of a Networking, SQL, VBA, VB.NET, MS
kinda guy.  But I have a (now distant) background in several other
languages, so I thought it could not be that hard (ha ha on me).  I quickly
found out that I'm not familiar with the tools (eclipse? Emulator?) nor the
concepts (Activity?  What?).  

What I want to do sounds relatively simple.

App 1:  Load at startup, Read some system values (Time, GPS, etc), write to
a TXT file on the SD card.
App 2:  Loaded manually, read from the TXT file, display textual information
in a tab form.  Email the TXT file.

So far, I have added a tab form and 3 blank activities.  And I've got errors
already. (R.drawable.ic_tab_Help can not be resolved) etc...

I know that's kind of a overly general, wide-scoped kind of request, but any
help would be much appreciated.



Other Threads

1. Bitmap encoding is always lossy

   I have a case where I need to retrieve the bitmap from an ImageView
and write that bitmap to a file so that I can later on retrieve it
back again and set it on a new ImageView. I do this using
bitmap.compress() method. However, the problem is that after I do this
about 5 times, the quality of the Bitmap degenerates badly. The format
I use for the bitmap.compress() is JPEG with the quality as 100. In my
mind 100 would mean no compression of the source bitmap and that the
bitmap should be lossless, but it doesnt seem to be that way. Is this
a bug or is this how it is meant to be?

I want a lossless compression and I tried to use PNG as the format
with bitmap.compress() but that doesnt seem to work either. After
digging around I found out that PNG encoding is not supported, which
basically leads me to believe there is no way of storing (in a
lossless way) a bitmap - isnt that weird?

How else can I achieve this lossless writing of bitmap to the file.
Why doesn the Bitmap class simply have an encode() method to write the
bitmap in memory as is?

2. Relative layout and include tag

Hi, I'm reworking some of my layouts to use Relative layout. I have
some building blocks which i'd like to reuse.
The problem i seems to have with the include of the layout and
position other layouts out of this include. Example:

                android:layout_below="@id/story_position_container" />
                android:layout_height="fill_parent" />


doesnt work in terms that ContentLayout is not getting positioned
below first layout. However if i move my include code to the layout
itself like this

                android:src="@android:drawable/divider_horizontal_bright" />
                android:layout_height="fill_parent" />

Everything seems to work. I've tried to overwrite the id attribute on
include - didn't really help. Also it seems putting attributes like
android:layout_marginTop doesnt affect layouts that added via include.

3. Is setting volume for individual apps possible for an end user?

4. android on samsung memoir

5. ADC2 Dev phones at Google events

6. Revenue Splitting in Android Market

7. Can i set a different Browser Homepage through code?