Re: [android-beginners] Re: New Android Project in Eclipse - Build Target Section Not Selectable

2010-01-04 Thread Mike Robinson
I had similar problems. I believe that if you select the project, then right
click, choosing Run As-Run Configuration. Then select the Target tab and
make sue that the proper Android Virtual Device is selected. Then click Run.

I admit that this seems that it should not be necessary since the Deployment
Target Selection Mode is marked as automatic. But hey, I'm new at this too.

On Wed, Dec 30, 2009 at 6:43 PM, matthewevans87 matthewevan...@gmail.comwrote:

 Same exact thing here. It is VERY unlikely that the screen size is the
 problem, as so many have said. If it were, why would the build targets
 be in the dialog box when you do test project but not when you do
 android project. VERY frustrating.
 Let me know if you figure it out...

 On Dec 25, 11:35 pm, android12345 oramirez...@gmail.com wrote:
  I have the same prob. When starting a new project, there are no
  options for thebuildtarget, but
  if I start a test project they do show up. I have no idea what is
  happening, please help!

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: New Android Project in Eclipse - Build Target Section Not Selectable

2010-01-04 Thread Max Sun
hey Songmak,
I have encountered the same problem too!!
After googling this problem, I've found the solution!!

What you have to do is:
1. In Eclipse, go to Window-Preferences
2. Select Android on the left, on the right you'll see a box to enter
your SDK Location
3. Browse to your Android SDK folder, hit OK and hit Apply

If your SDK is downloaded correctly, you should see a list of Target
Names
Create a new android project now, you should be able to select build
targets!!

:)

Max Sun



On 2009年11月4日, 上午9時20分, Songmak kevinve...@gmail.com wrote:
 Hi-

 I was finally able to get Android SDK installed on Ubuntu 9.10 but now
 when I try to create an Android project the build target cannot be
 selected.  This in turn does not allow me to move to the next step.

 It is as if the UI is shrinking the Build Target section so much that
 nothing can be selected.  I can see what appears to be the headers of
 the columns and condensed scroll arrows but nothing can be selected.

 Has anyone experienced this issue and know how to correct it?

 Thanks.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Getting an error when running the android Hello World tutorial

2010-01-04 Thread Benny Skogberg
I had the same problems in the beginning and i posted my solution on
my wiki:
http://skogberg.eu/wiki/index.php?title=Android

When running correct it should look like this video on you screen:
http://skogberg.eu/ia/program.php

Pleas tell me if it worked, and if it didn't - why :)

On Dec 30 2009, 10:47 pm, pransome caneg...@gmail.com wrote:
 I have followed the instructions for the Hello World tutorial 
 athttp://developer.android.com/resources/tutorials/hello-world.html
 It all builds as expected, but when I run the application I get ...

 [2009-12-30 14:26:09 - Android Hello World]Waiting for HOME
 ('android.process.acore') to be launched...
 [2009-12-30 14:26:11 - Emulator]
 [2009-12-30 14:26:11 - Emulator]This application has requested the
 Runtime to terminate it in an unusual way.
 [2009-12-30 14:26:11 - Emulator]Please contact the application's
 support team for more information.
 [2009-12-30 14:26:11 - Android Hello World]emulator-5554 disconnected!
 Cancelling 'rnt.android.learning.hello activity launch'!

 I am using the Eclipse IDE with the ADT plugin, etc.
 I am doing this on a laptop running MS Windows XP Professional OS

 I have done some google searches on this problem and haven't found a
 solution for my particular circumstances.
 Can anyone suggest what might be going on?

 Thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Getting an error when running the android Hello World tutorial

2010-01-04 Thread Benny Skogberg
* When creating AVD's be sure to use more than size 8 MiB (I use 16
MiB) to get you Phone app to run properly.
* On start-up of an Android Project you have 2 errors. Right-Click the
gen-folder and select Build Path. In the new Window Select Android on
left menu and select the AVD appropriate for your project (1.1).
Choose apply and your errors disapear.
* When you run the app - notice you are starting a new Virtual Machine
of a phone (i.e turn on a Mobile Phone) so it takes a while. Be very
patient.
* You get a warning message like Warning once: This application, or a
library it uses, is using NSQuickDrawView, which has been deprecated.
Apps should cease use of QuickDraw and move to Quartz. - but its just
a warning. Application run just as well. Wait for a new SDK to make it
go away :)

Good Luck!

On 30 Dec 2009, 22:47, pransome caneg...@gmail.com wrote:
 I have followed the instructions for the Hello World tutorial 
 athttp://developer.android.com/resources/tutorials/hello-world.html
 It all builds as expected, but when I run the application I get ...

 [2009-12-30 14:26:09 - Android Hello World]Waiting for HOME
 ('android.process.acore') to be launched...
 [2009-12-30 14:26:11 - Emulator]
 [2009-12-30 14:26:11 - Emulator]This application has requested the
 Runtime to terminate it in an unusual way.
 [2009-12-30 14:26:11 - Emulator]Please contact the application's
 support team for more information.
 [2009-12-30 14:26:11 - Android Hello World]emulator-5554 disconnected!
 Cancelling 'rnt.android.learning.hello activity launch'!

 I am using the Eclipse IDE with the ADT plugin, etc.
 I am doing this on a laptop running MS Windows XP Professional OS

 I have done some google searches on this problem and haven't found a
 solution for my particular circumstances.
 Can anyone suggest what might be going on?

 Thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Is there an app for this?

2010-01-04 Thread Mike G.
Pardon me if I'm in the wrong group, please. If there is a more
appropriate group, I'd be happy to move along.

I'm considering an Android phone IF I know a particular app exists

I want my tasks displayed on my home screen. That's it. Simple

I now use an iPhone and I can't do this. The only phone that
sucessfully did this IMHO was WinMo devides with apps from 3rd
parties.

I want to see, when I turn on the phone, that today I need to pick up
cleaning and call the plumber. Tasks on the home screen. Is this so
hard?

Thanks, folks...

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Problem with eclipse and ADT

2010-01-04 Thread ChT
I am facing some quite big problems with Android ADT, as eclipse
refuses to work.

I used to have Android 1.5 version SDK working fine on Galileo
(running on Windows Vista 32bit Home Premium), projects would build
fine and run in the emulator.

I have decided to update the SDK to support newest editions. I have
downloaded sdk and installed without any problems. I have also updated
ADT from eclipse. I have also set the sdk\tools directory to path

Now everything refuses to load:

When I try to use Android SDK and ADT manager a popup appears in
eclipse:
--
'Android SDK Content Loader' has encountered a problem.

parseSdkContent failed

(java.lang.NullPointerException).
---

Any help anyone?


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: New Android Project in Eclipse - Build Target Section Not Selectable

2010-01-04 Thread Walt Armour
I've seen this problem also.  However, for me, if I wait a bit the targets
show up.  It's almost like something is hitting a network timeout waiting to
populate the list.

As a worst case workaround you could also try creating the project from the
command line ('android create project') and then loading it up in Eclipse.
Not sure how well that will work for all the automagical stuff in Eclipse.

On Wed, Dec 30, 2009 at 17:43, matthewevans87 matthewevan...@gmail.comwrote:

 Same exact thing here. It is VERY unlikely that the screen size is the
 problem, as so many have said. If it were, why would the build targets
 be in the dialog box when you do test project but not when you do
 android project. VERY frustrating.
 Let me know if you figure it out...

 On Dec 25, 11:35 pm, android12345 oramirez...@gmail.com wrote:
  I have the same prob. When starting a new project, there are no
  options for thebuildtarget, but
  if I start a test project they do show up. I have no idea what is
  happening, please help!

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Positioning images on top of one another

2010-01-04 Thread keith
Hello all,
I'm very new to android development, and I'm coming from a php/web
development background. For my first exercise, I'm trying to draw a
gauge face and a needle, and be able to rotate that needle to whatever
direction I want (not dynamically, just by changing the angle in code
and recompiling)
I'm running into a problem that is 2-fold:

1, If I build the layout programmatically using LinearLayout, I can
rotate the needle, but I cannot manage to get the needle to sit in the
proper position on top of the gauge, in fact, I can't seem to be able
to control the position of either image at all. I looked into using
AbsoluteLayout, but that is depricated.

2. If I use the xml layout, I can position the gauge and needle
exactly where I want them, but I cannot seem to access the needle
programmatically to rotate it. I have tried setting android:@+id and
using getById, but that doesn't do anything, although it doesn't throw
an error either.

Does anyone have any tips or references or examples on how to
accomplish this seemingly easy task?

Thanks,
Keith

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Spinner colors wrong

2010-01-04 Thread Alessandro Pellizzari
Hi all,

I am trying to create a Spinner with data extracted from a DB.

This is the code:

private static String[] FROM = {material};
private static int[] TO = {R.id.listitem_name};  
...
spn1 = (Spinner)findViewById(R.id.spinner1);

Cursor cur1 = this.dbhelper.getTessuti(this);

spn1.setAdapter(new SimpleCursorAdapter(this, R.layout.listitem, cur1,
FROM, TO));


The listitem is defined as

?xml version=1.0 encoding=utf-8?
LinearLayout
  xmlns:android=http://schemas.android.com/apk/res/android;
  android:layout_width=fill_parent
  android:layout_height=wrap_content
  TextView
   android:id=@+id/listitem_name
   android:layout_width=fill_parent
   android:layout_height=wrap_content
   android:ellipsize=end
   android:singleLine=true
   android:textSize=20dp
   android:padding=6dp
   /
/LinearLayout



Tha problem is that both the spinner text and the popup list are greyed
out (grey text on white background, instead of black text).

I don't want to force the color with android:textColor, because someone
could have a black theme (me, on my GalaxoHero-powered Galaxy :) ), but
don't understand why it is greyed.

I could also use standard Android spinner listitems, but I don't
understand what to write in the TO array (in the SimpleCursorAdapter
parameter). I always get blank lines both in the spinner and in the
popup. :(

Thanks for any help!
Bye.


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] ADB and Eclipse Losing Contact with Emulator

2010-01-04 Thread jimjenkins5
Hello all,

I am having a problem with the emulator (or ADB).  I consistently lose
connection with the emulator and ADB does not list it as a running
device.  Eclipse will report back sad result from adb! after trying
to install the program.

I am running Eclipse Galileo and most AVD's I've tried have been 1.6
although I have tried 2.0, 1.5, 1.1 also.

I've added an exception in my firewall, turned the firewall off, and
disabled antivirus applications.

I've also tried completely uninstalling eclipse (i.e. deleting the
folder and redoenloading) and the Android SDK.

So far nothing has worked and my development is at a standstill.  The
only thing I can get to work is to create a new AVD each time I debug
the application which is time consuming and requires waiting 10
minutes for the emulator to start up again for every change in code.

Any ideas on what I may be able to do would be appreciated.  I am very
frustrated at this point.

Thanks,
Jim

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Problem with Custom Dialog

2010-01-04 Thread Lenea
Hello, everyone.
I've got an application in which a button triggers a custom dialog.
In the custom dialog i have an EditText.
I want to collect data from the EditText and set the text of a
TextView to that data.
The problem is, the TextView is located in my main Activity(the one
which triggered the custom dialog)
How do I do that?


Cheers,
Lenea

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Android Virtual Device manager freezing upon creation

2010-01-04 Thread Greg Chambers
So I've been doing so basic development with one little hitch that
I've run into so far.  I would like to make several AVD's in the AVD
manager where each virtual device replicates each of the existing
released phones with the Android platform for both hardware and
software upon the release of the phone.  However, every time so far I
have specified additional properties other than Abstracted LCD
density, the AVD manager freezes on me.  I just did it again to me
when all I did was also specify SD Card support = true, Device ram
size = 256, Resolution = 854 x 480, SD Card size = 16000 MiB, and
Abstracted LCD density = 160 in an attempt to make a virtual Verizon
Droid device.  Anything I can do to avoid these freezes?

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Facing serious problem with static objects

2010-01-04 Thread Coco
His code as given would crash if initialized to null on activity
change. I think what you mean is to reinitialize the containers which
is what I would suggest trying. Something like this:

public class MyActivity extends Activity {
public static HashMapString, String hMap;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
hMap = new HashMapString, String(); // Recreate container
each time.
...
}

Alternatively he can just call hMap.clear() in onCreate() which will
have much of the same effect. Which approach is better depends on
exactly what he's trying to do.

Another thing to consider is whether these members really want to be
static in the first place.

-Melinda

On Jan 2, 8:50 am, Yousuf Faheem yousuf.syed@gmail.com wrote:
 Hi,

 Try initiallizing them to null before the change of activity takes place or
 at the start of home activity. Since your application is not closed(scope of
 the static objects), the static objects are there in memory allocated to
 that process and hence retain the value that you give.

 Thanks  Regards,
 Yousuf Syed

 On Sat, Jan 2, 2010 at 2:27 AM, Alok Kulkarni kulsu...@gmail.com wrote:
  Hi guys, I am facing a problem in my application.
  I have a few static arrays and Hashmaps in my app which i fill in when my
  Activity starts.Then this  activity later launches another Activity. Now
  user presses Home button of Back button and again restarts the app, even
  then the static objects remain in memory. I beleive this is default android
  behaviour.
  I have an example app.
  package com.cm.test;

  import java.util.HashMap;

  import android.app.Activity;
  import android.os.Bundle;
  import android.util.Log;

  public class MyActivity extends Activity {
      public static HashMapString, String hMap = new HashMapString,
  String();

      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
          Log.i(***,Hash map size = +hMap.size());

          hMap.put(Alok,Alo);
          hMap.put(Jitu,Jit);

          Log.i(***,Activity onCreate() called);
      }
      @Override
      public void onDestroy()
      {
          Log.i(***,Activity onDestroy() called);
          super.onDestroy();

      }

      @Override
      public void onResume()
      {
          super.onResume();
          Log.i(***,Activity onResume() called);
      }
      @Override
      public void onStop()
      {

          super.onStop();

          Log.i(***,Activity onStop() called);
      }

  }
  Output First time is Size = 0. for 1st launch, Next for every launch ,
  HashMap size is 2... If i use ArrayList , the size of ArrayList goes on
  increasing.
  I dont want this to happen.One thing was that to clear the HashMap in
  onDestroy() or in onStop() in case user presses Home button. But my Activity
  launches another ListActivity in it. So the alternae option is to clear the
  Hashmaps in onDestroy() | onStop() of this activity.
  I am not much clear when the Activity exits. From the posts that i have
  read i found few things here
 http://groups.google.com/group/android-developers/browse_thread/threa...
  The manifest part android:clearTaskOnLaunch=true does not work in my case.
  What do you people suggest in this case?
  Thanks,
  Alok.

  --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.

  NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Font Set

2010-01-04 Thread Business Talk
Is it posible to define a new font set in android?

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Getting internal compiler error while compiling ddms

2010-01-04 Thread saswata
Hi,
I was trying to compile the ddms code as outlined in
http://source.android.com/using-eclipse in the section: Debugging the
emulator with Eclipse.

Given below is the envsetup.sh that i have slightly modified after
downloading from repo.

function help() {
cat EOF
Invoke . build/envsetup.sh from your shell to add the following
functions to your environment:
- croot:   Changes directory to the top of the tree.
- m:   Makes from the top of the tree.
- mm:  Builds all of the modules in the current directory.
- mmm: Builds all of the modules in the supplied directories.
- cgrep:   Greps on all local C/C++ files.
- jgrep:   Greps on all local Java files.
- resgrep: Greps on all local res/*.xml files.
- godir:   Go to the directory containing a file.

Look at the source to view more functions. The complete list is:
EOF
T=$(gettop)
local A
A=
for i in `cat $T/build/envsetup.sh | sed -n /^function /s/
function \([a-z_]*\).*/\1/p | sort`; do
  A=$A $i
done
echo $A
}

# Get the value of a build variable as an absolute path.
function get_abs_build_var()
{
T=$(gettop)
if [ ! $T ]; then
echo Couldn't locate the top of the tree.  Try setting TOP.
2
return
fi
CALLED_FROM_SETUP=true BUILD_SYSTEM=build/core \
  make --no-print-directory -C $T -f build/core/config.mk
dumpvar-abs-$1
}

# Get the exact value of a build variable.
function get_build_var()
{
T=$(gettop)
if [ ! $T ]; then
echo Couldn't locate the top of the tree.  Try setting TOP.
2
return
fi
CALLED_FROM_SETUP=true BUILD_SYSTEM=build/core \
  make --no-print-directory -C $T -f build/core/config.mk
dumpvar-$1
}

# check to see if the supplied product is one we can build
function check_product()
{
T=$(gettop)
if [ ! $T ]; then
echo Couldn't locate the top of the tree.  Try setting TOP.
2
return
fi
CALLED_FROM_SETUP=true BUILD_SYSTEM=build/core \
TARGET_PRODUCT=$1 TARGET_BUILD_VARIANT= \
TARGET_SIMULATOR= TARGET_BUILD_TYPE= \
get_build_var TARGET_DEVICE  /dev/null
# hide successful answers, but allow the errors to show
}

VARIANT_CHOICES=(user userdebug eng)

# check to see if the supplied variant is valid
function check_variant()
{
for v in ${variant_choic...@]}
do
if [ $v = $1 ]
then
return 0
fi
done
return 1
}

function setpaths()
{
T=$(gettop)
if [ ! $T ]; then
echo Couldn't locate the top of the tree.  Try setting TOP.
return
fi

##
##
#  Read me before you modify this code   #
##
#   This function sets ANDROID_BUILD_PATHS to what it is adding  #
#   to PATH, and the next time it is run, it removes that from   #
#   PATH.  This is required so lunch can be run more than once   #
#   and still have working paths.#
##
##

# out with the old
if [ -n $ANDROID_BUILD_PATHS ] ; then
export PATH=${PATH/$ANDROID_BUILD_PATHS/}
fi

# and in with the new
CODE_REVIEWS=
prebuiltdir=$(getprebuilt)
export ANDROID_EABI_TOOLCHAIN=$prebuiltdir/toolchain/arm-
eabi-4.4.0/bin
export ANDROID_TOOLCHAIN=$ANDROID_EABI_TOOLCHAIN
export ANDROID_QTOOLS=$T/development/emulator/qtools
export ANDROID_BUILD_PATHS=:$(get_build_var ANDROID_BUILD_PATHS):
$ANDROID_QTOOLS:$ANDROID_TOOLCHAIN:$ANDROID_EABI_TOOLCHAIN
$CODE_REVIEWS
export PATH=$PATH$ANDROID_BUILD_PATHS

unset ANDROID_PRODUCT_OUT
export ANDROID_PRODUCT_OUT=$(get_abs_build_var PRODUCT_OUT)
export OUT=$ANDROID_PRODUCT_OUT

# needed for building linux on MacOS
# TODO: fix the path
#export HOST_EXTRACFLAGS=-I $T/system/kernel_headers/
host_include

# needed for OProfile to post-process collected samples
export OPROFILE_EVENTS_DIR=$prebuiltdir/oprofile
}

function printconfig()
{
T=$(gettop)
if [ ! $T ]; then
echo Couldn't locate the top of the tree.  Try setting TOP.
2
return
fi
get_build_var report_config
}

function set_stuff_for_environment()
{
settitle
setpaths
set_sequence_number

# Don't try to do preoptimization until it works better on OSX.
export DISABLE_DEXPREOPT=true

export ANDROID_BUILD_TOP=$(gettop)
}

function set_sequence_number()
{
export BUILD_ENV_SEQUENCE_NUMBER=9
}

function settitle()
{
if [ $STAY_OFF_MY_LAWN =  ]; then
local product=$(get_build_var TARGET_PRODUCT)
local variant=$(get_build_var TARGET_BUILD_VARIANT)
export PROMPT_COMMAND=echo -ne \\033]0;[${product}-$
{variant}] 

[android-beginners] Re: importing nbandroid into netbeans

2010-01-04 Thread transmutableJ
Tag,

This is a question probably best asked in the nbandroid forums at
http://kenai.com/projects/nbandroid/.  These forums are for questions
regarding Android itself.  That being said, I'm a nbandroid user and
can give you a hand.  Are you trying to create a new Android project
in NetBeans? or are you trying to create a project for the nbandroid
sources?  Both of these cases are covered in the wiki here:
http://kenai.com/projects/nbandroid/pages/Home.  That should get you
started.  I would also recommend upgrading NetBeans to the 6.8
release.

J

On Dec 30 2009, 9:32 pm, Marc Mrc bent...@gmail.com wrote:
 I am new to this. I have downloaded the Android SDK and the android platform
 components up to 2.0.1,  Java Netbeans IDE 6.7.1 and can't seem to find
 where to pull the nbandroid files into it? I have not used netbeans before
 and I am learning, when I open a new project I don't see it listed in the
 project category, nor do I see it listed under tools. plug-ins. How do I
 point the file so netbeans imports it or sees it?

 Thanks,

 Tag

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Very new - need some help.

2010-01-04 Thread cjk
I just recently started looking into the Android SDK using eclipse and
I'm having problems. How can I just make a simple listview app? Like
this:


Item1 *on click, go to different listview*
Item2 *on click, go to different listview2*
Item3 *on click, go to different listview3*
etc.

I've been researching for hours and I can't find anything.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Getting an error when running the android Hello World tutorial

2010-01-04 Thread ikram
Hi,

I have the same problem. Also, I could not see any 'Hello, Android'
message. The emulator screen only shows 'A N D R O I D _' and nothing
else. Could you please help me in figuring out the reason for doing
so?

Thanks
Ikram

On Dec 31 2009, 6:47 am, pransome caneg...@gmail.com wrote:
 I have followed the instructions for the Hello World tutorial 
 athttp://developer.android.com/resources/tutorials/hello-world.html
 It all builds as expected, but when I run the application I get ...

 [2009-12-30 14:26:09 - Android Hello World]Waiting for HOME
 ('android.process.acore') to be launched...
 [2009-12-30 14:26:11 - Emulator]
 [2009-12-30 14:26:11 - Emulator]This application has requested the
 Runtime to terminate it in an unusual way.
 [2009-12-30 14:26:11 - Emulator]Please contact the application's
 support team for more information.
 [2009-12-30 14:26:11 - Android Hello World]emulator-5554 disconnected!
 Cancelling 'rnt.android.learning.hello activity launch'!

 I am using the Eclipse IDE with the ADT plugin, etc.
 I am doing this on a laptop running MS Windows XP Professional OS

 I have done some google searches on this problem and haven't found a
 solution for my particular circumstances.
 Can anyone suggest what might be going on?

 Thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] all in one poste for site visite all sites here''

2010-01-04 Thread bakiyaraj p
http://basicsofdnafingerprinting.blogspot.com/
http://dnafingerprintingandforensics-baki.blogspot.com/
http://plasmid-fingerprinting.blogspot.com/ 
http://dna-fingerprinting001.blogspot.com/
http://amplifiedfragment-length-polymorphis.blogspot.com/
http://whatisdnafingerprinting.blogspot.com/
http://amplifiedfragment-length-polymorphis.blogspot.com/
http://dna-profiling.blogspot.com/  
http://hivaids-in-india.blogspot.com/
http://india-hiv-caseload.blogspot.com/ 
http://hivaids-in-asia.blogspot.com/
http://the-mobilestore.blogspot.com/
http://app-store123.blogspot.com/
http://baki-standard-chartered-bank.blogspot.com/
http://structural-engineering123.blogspot.com/
http://chiefministersinsuranceschemeforbaki.blogspot.com/http://baki-nokia6600.blogspot.com/
http://baki-annamalai-university.blogspot.com/  
http://visa-requirements-baki.blogspot.com/
http://userwisewhipbharatmatrimony.blogspot.com/
http://health-tips57.blogspot.com/
http://baki-dna123.blogspot.com/
http://al-service.blogspot.com/
http://cancer-information107.blogspot.com/  
http://dna-money.blogspot.com/?zx=c0e2aa080cbac622
http://dnareplication123.blogspot.com/  
http://types-ofcancer.blogspot.com/
http://baki-hdfcbank.blogspot.com/  
http://dna-fingerprinting001.blogspot.com/
http://experimenttakes-us-backto.blogspot.com/  
http://baki-reliance.blogspot.com/
http://rob-zombie143.blogspot.com/  
http://baki-mostbeautifulhollywoodactress.blogspot.com/
http://keggpathway.blogspot.com/
http://white-blood-cell.blogspot.com/
http://computer-softwares001.blogspot.com/

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Bug in SDK Manager: cannot update

2010-01-04 Thread leuat
Did you guys manage to find a solution? I am still having problems
with the SDK on  OSX 10.5.5  with This repository requires a
more recent version of the tools.. This is even though the SDK
updater
is version 4.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] now open all blocked site with our proxy

2010-01-04 Thread alagmy
now open all blocked site with our proxy

now if you find any blocked site in your country you open it with this
proxy just enter this site and put your site and click browse

this is the site

http://alagmy.almslol.net

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Installing app

2010-01-04 Thread androidnewbie
Hi guys!

I've just gotten a HTC Tattoo and want to get some apps to be
installed on the phone. This is my first time using an Android phone
so I have no clue how to do it. I did download some apps and unzip
the .apk files using winzip. No idea how to continue from that part!
Would prefer to connect the phone to com using USB. I don't want to
get apps via Market app on the phone. Any help?

Thank you very much :)))

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: no text displayed on emulator in Hello World program

2010-01-04 Thread Cristian Andrei
I do not own an Android device, yet. Is the real thing this slow too?

On Dec 24 2009, 2:46 pm, MWarren mwarren3...@gmail.com wrote:
 I had went around with this for sometime my first day too.  It will
 show up however keep in mind it is basically starting an operating
 system on your computer.  It takes alot of resources to get it started
 and a few minutes.  Once the Android text clears you will see the
 unlock slider thenhomescreen and then your app.  I usually run my
 app to get it started from my last compile to give it time while I
 continue development and will leave it open for the rest of the day,
 and sometimes 2.

 Matrix

 On Dec 23, 10:42 am, Chris S chriss...@gmail.com wrote:

  Has anyone figured this out yet? It's a bit depressing something as
  simple as Android's hello world tutorial doesn't work.

  I'm running this under Eclipse 3.5 on Ubuntu. The fancy emulator
  window pops up, showing a reddish phone displaying the Android logo,
  and that's it. My console seems to show a red message (presumably an
  error?):

  [2009-12-23 10:34:19 - HelloAndroid]Android Launch!
  [2009-12-23 10:34:19 - HelloAndroid]adb is running normally.
  [2009-12-23 10:34:19 - HelloAndroid]Performing
  com.example.helloandroid.HelloAndroid activity launch
  [2009-12-23 10:34:19 - HelloAndroid]Automatic Target Mode: launching
  new emulator with compatible AVD 'my_avd'
  [2009-12-23 10:34:19 - HelloAndroid]Launching a new emulator with
  Virtual Device 'my_avd'
  [2009-12-23 10:34:19 - HelloAndroid]New emulator found: emulator-5554
  [2009-12-23 10:34:19 - HelloAndroid]WaitingforHOME
  ('android.process.acore') to belaunched...
  [2009-12-23 10:34:20 - Emulator]emulator: emulator window was out of
  view and was recentred
  [2009-12-23 10:34:20 - Emulator]
  [2009-12-23 10:34:49 - HelloAndroid]emulator-5554 disconnected!
  Cancelling 'com.example.helloandroid.HelloAndroid activity launch'!

  Am I missing something?

  Chris

  On Dec 22, 9:14 pm, Dayong Sun sund...@gmail.com wrote:

   The emulator is VERY slow. Wait for 10 minutes and then you will see it.

   On Fri, Dec 18, 2009 at 4:49 AM, Amit Patel amit.sav...@gmail.com wrote:
I am facing same problem as does cybereality

On Nov 16, 6:42 am, cybereality cybereal...@gmail.com wrote:
I am having the same problem on Eclipse. The 'hello, android' text
does not show up, even though the program compiles and I followed
every instruction exactly. The emulator pops up but just shows the
default android text and nothing happens. Can anyone help?

On Nov 11, 8:17 pm, Bossco juanbos...@gmail.com wrote:

 Hello, I'm using NetBeans, and I have the same problem, theemulator
 does not show the text.

 I got this error:

 Device's package manager not ready to install new packages

 On Nov 5, 9:59 am, Walker Rowe wer...@walkerrowe.com wrote:

  Hi,

  Following the tutorial I wrote the hello world application shown 
  below
  and eclipse shows the console messages shown at the bottom.  
  Problem
  is theemulatorlaunched just has normal graphical display and does
  not show the message Hello, Android.

  package com.rosewoodhillfarm.helloandroid;

  import android.app.Activity;
  import android.os.Bundle;
  import android.widget.TextView;

  public class HelloAndroid extends Activity {
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          TextView tv = new TextView(this);
          tv.setText(Hello, Android);
          setContentView(tv);
      }

  }

  [2009-11-05 12:37:57 - Android 
  Project]--
  [2009-11-05 12:37:57 - Android Project]Android Launch!
  [2009-11-05 12:37:57 - Android Project]adb is running normally.
  [2009-11-05 12:37:57 - Android Project]Performing
  com.rosewoodhillfarm.helloandroid.HelloAndroid activity launch
  [2009-11-05 12:37:57 - Android Project]Automatic Target Mode:
  Preferred AVD 'my_avd' is not available. Launching newemulator.
  [2009-11-05 12:37:57 - Android Project]Launching a newemulatorwith
  Virtual Device 'my_avd'
  [2009-11-05 12:38:01 - Android Project]Newemulatorfound:
 emulator-5554
  [2009-11-05 12:38:01 - Android Project]WaitingforHOME
  ('android.process.acore') to belaunched...
  [2009-11-05 12:38:34 - Android Project]HOMEis up on device
  'emulator-5554'
  [2009-11-05 12:38:34 - Android Project]Uploading Android 
  Project.apk
  onto device 'emulator-5554'
  [2009-11-05 12:38:34 - Android Project]Installing Android
  Project.apk...
  [2009-11-05 12:38:48 - Android Project]Success!
  [2009-11-05 12:38:48 - Android Project]Starting activity
  com.rosewoodhillfarm.helloandroid.HelloAndroid on device
  [2009-11-05 12:38:56 - Android 

[android-beginners] Re: New Android Project in Eclipse - Build Target Section Not Selectable

2010-01-04 Thread Geo
It's very possible it could be the screen res. I have reasons for
suggesting this based on some testing.

The Test Android Project dialog box is a different form, FYI.

Could you tell us what screen resolution you're running? Or try
changing to higher than 1366x768 and let us know if that fixes the
issue.

On Dec 30 2009, 7:43 pm, matthewevans87 matthewevan...@gmail.com
wrote:
 Same exact thing here. It is VERY unlikely that the screen size is the
 problem, as so many have said. If it were, why would the build targets
 be in the dialog box when you do test project but not when you do
 android project. VERY frustrating.
 Let me know if you figure it out...

 On Dec 25, 11:35 pm, android12345 oramirez...@gmail.com wrote:



  I have the same prob. When starting a new project, there are no
  options for thebuildtarget, but
  if I start a test project they do show up. I have no idea what is
  happening, please help!

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Making a simple navigation based app?

2010-01-04 Thread cjk
I can't find any good documentation or samples anywhere for developing
Android apps. How can I make a simple navigation based app? Not
navigating like through maps or anything, just like how yoou would
navigate through android settings. Like a listview with many items and
clicking each item leads to seperate/new listviews.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Error in Building Hello World

2010-01-04 Thread rocky
Hi All,

i am getting the below 2 errors while Building a simple Hello World
program.
could anyone Genius help it out? looks some problem in my eclipse
settings...

regds
rocky


Description ResourcePathLocationType
Error launching external scanner info generator (sh -c 'gcc -E -P -v -
dD D:/Profiles/xtcg76/workspace/.metadata/.plugins/
org.eclipse.cdt.make.core/specs.c ')HelloWorld  Unknown C/C++ 
Problem
Error launching external scanner info generator (sh -c 'gcc -E -P -v -
dD D:/Profiles/xtcg76/workspace/.metadata/.plugins/
org.eclipse.cdt.make.core/specs.c ')HelloWorld  Unknown C/C++ 
Problem

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Help with scrollbar in resized LinearLayout

2010-01-04 Thread Stephen B
I'm developing my first Android application. I've got it working, in a
basic, It compiles, it links, and it even accepts input and doesn't
crash, sort of way. I'm seeing a very strange behavior, though, when
I deploy it to my DROID (android version 2.0.1). If I start the app
with the phone held so that it's in a portrait orientation, there's
enough room for all the layout elements and the screen does not have
any scrollbars. If I start the app with the phone held so that it's in
landscape orientation (slide the keyboard out, or just hold the phone
up as if to use the camera) there isn't enough vertical space for all
the elements and there's a scrollbar on the right.

Now for the mystery: if I start out in portrait mode and then turn the
phone over to landscape, the screen gets reoriented but *no scrollbar
appears*. Am I missing some callback? Is there something like an
orientation changed event that I should listen for and tell the view
to redraw?

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Eclipse Project Dependencies

2010-01-04 Thread Coco
I have the same problem too. Seems that the emulator is not being
given the class path to any referenced projects that the compiler
clearly knows about. I'd love a solution too.

-Melinda

On Dec 30 2009, 3:03 am, CosminB cosm...@gmail.com wrote:
 Hi,

 I'm having the same problem. Did you find a solution to this yet?

 Thanks,
 Cosmin

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Problem with creating SMS folder and copying messages to that folder

2010-01-04 Thread Yang Zhou
Hi,
  I want to create a new folder for SMS, and copy some messages to
that folders. What should i do?  The Android reference doesnt mention
that.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] System wide properties

2010-01-04 Thread Lox
Hello,

I would like my app to set a property system wide, something like
setprop lox.myapp.enabled=1. I can't find how.

Why I need that? Because I have a sh script that runs at boot from
init.rc. It as to check that property to know if it has to run.  I
thought about setprop but any other way of setting a flag from an
android app and have it available from a sh script that runs at boot
will do it.

Thanks.

-- 
Lox
lox@knc.nc

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] MediaPlayer cannot play music file in res/raw folder

2010-01-04 Thread csaunders
Hello,

I am trying to make an app that simply plays an mp3 file when you
click on a button.  I've based my code off the API Demos from the
android website, and I've been scouring various Android developer
boards but all the solutions are still resulting in the same problem.

When you click on the button this code should be executed:

private void playAudio(Integer media){
MediaPlayer m = MediaPlayer.create(this, R.raw.b);
m.start();
}

When the program gets executed and I click on the button the program
crashes.  All I've been able to determine from the stack trace is
that:
1 - The resource file cannot be found
or
2 - I am not able to open the file descriptor for some reason (it's
compressed?)

Here is the stack trace I am getting from logcat:
E/AndroidRuntime( 1425): Uncaught handler: thread main exiting due to
uncaught
exception
E/AndroidRuntime( 1425): java.lang.RuntimeException: Unable to start
activity ComponentInfo{org.me.demogo/org.me.demogo.DemoGoPlayer}:
android.content.res.Resources$NotFoundException: File res/raw/a.mp3
from drawable resource ID
#0x7f04
E/AndroidRuntime( 1425):at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2268)
E/AndroidRuntime( 1425):at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2284)
E/AndroidRuntime( 1425):at android.app.ActivityThread.access
$1800(ActivityThread.java:
112)
E/AndroidRuntime( 1425):at android.app.ActivityThread
$H.handleMessage(ActivityThread.java:
1692)
E/AndroidRuntime( 1425):at android.os.Handler.dispatchMessage
(Handler.java:
99)
E/AndroidRuntime( 1425):at android.os.Looper.loop(Looper.java:
123)
E/AndroidRuntime( 1425):at android.app.ActivityThread.main
(ActivityThread.java:
3948)
E/AndroidRuntime( 1425):at
java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime( 1425):at java.lang.reflect.Method.invoke
(Method.java:
521)
E/AndroidRuntime( 1425):at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:
782)
E/AndroidRuntime( 1425):at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:
540)
E/AndroidRuntime( 1425):at dalvik.system.NativeStart.main
(Native
Method)
E/AndroidRuntime( 1425): Caused by: android.content.res.Resources
$NotFoundException: File res/raw/a.mp3 from drawable resource ID
#0x7f04
E/AndroidRuntime( 1425):at
android.content.res.Resources.openRawResourceFd(Resources.java:
814)
E/AndroidRuntime( 1425):at android.media.MediaPlayer.create
(MediaPlayer.java:
550)
E/AndroidRuntime( 1425):at org.me.demogo.DemoGoPlayer.playAudio
(DemoGoPlayer.java:
29)
E/AndroidRuntime( 1425):at org.me.demogo.DemoGoPlayer.onCreate
(DemoGoPlayer.java:
25)
E/AndroidRuntime( 1425):at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1123)
E/AndroidRuntime( 1425):at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2231)
E/AndroidRuntime( 1425):... 11
more
E/AndroidRuntime( 1425): Caused by: java.io.FileNotFoundException:
This file can not be opened as a file descriptor; it is probably
compressed
E/AndroidRuntime( 1425):at
android.content.res.AssetManager.openNonAssetFdNative(Native
Method)
E/AndroidRuntime( 1425):at
android.content.res.AssetManager.openNonAssetFd(AssetManager.java:
412)
E/AndroidRuntime( 1425):at
android.content.res.Resources.openRawResourceFd(Resources.java:
811)
E/AndroidRuntime( 1425):... 16 more

Thank you,
CS

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Google Map is not displaying in emulator

2010-01-04 Thread Xu Bill
hello

RTFM~ :)

Just read the guide below~

http://code.google.com/intl/US-EN/apis/maps/signup.html

2009/12/31 mapper sai.vaiku...@gmail.com

 Hi,
 The MapsDemo working fine.
 But in my app, same coding as MapsDemo, but still not working, only
 grids are there.
 I am having this problem since last 3 weeks but not get any solution.
 I have done lots of experiment for that but the result is same.

 And how to open port to internet access?

 Can you suggest me?

 Thanks,


 On Dec 31, 9:58 am, Turnkey Builder ronnie...@gmail.com wrote:
  It's your maps key
 
  On Dec 30, 2009 10:54 PM, me,Ramesh Yankati rameshyank...@gmail.com
  wrote:
 
  Hi ,
  You need to open port to internet access
 
  Regards
  Ramesh
 
  On Wed, Dec 30, 2009 at 9:22 AM, ZhouSu zsmarga...@gmail.com wrote: 
 
 
  Have you solved this probl...

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en




-- 
There are only 10 types of people in the world...
Those who know binary and those who don't.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] blending layers of Bitmaps

2010-01-04 Thread Kiripolszky Károly
Dear Reader!

Android graphics is new to me and I can't get a solution for this
problem, even though I know the docs very well by now. What I wanna do
is to blend several overlapping bitmaps using a given operation like
xor or multiply. My app has a Spot class which has function to return
a generated Bitmap and a BitmapShader based on the Bitmap, plus an
attribute that stores a PorterDuff.Mode value. Could someone please
explain why the following code doesn't work? All I get is a black
empty screen, but no errors.

parts of the Spot class:

  public final Bitmap toBitmap()
  {
Bitmap out = Bitmap.createBitmap(width, height,
Bitmap.Config.ARGB_);
out.eraseColor(Color.TRANSPARENT);
Canvas layer = new Canvas(out);
RoundRectShape rr = new RoundRectShape(new float[]{2, 2, 2, 2, 2,
2, 2, 2}, null, null);
getPaint().setColor(color);
rr.draw(layer, getPaint());
return out;
  }

  public BitmapShader getShader()
  {
return new BitmapShader(toBitmap(), Shader.TileMode.REPEAT,
Shader.TileMode.REPEAT);
  }

...and my main View:

  @Override
  protected void onDraw(Canvas canvas)
  {
Bitmap screen = Bitmap.createBitmap(canvas.getWidth(),
canvas.getHeight(), Bitmap.Config.ARGB_);
Spot spot;
Paint paint = new Paint();
Canvas spotLayers = new Canvas(screen);
for (int i=0, mi=spots.size(); imi; i++)
{
  spot = getSpot(i);
  if (i  1)
paint.setShader(new ComposeShader(getSpot(i-1).getShader(),
spot.getShader(), spot.getXferMode()));
  else
paint.setShader(spot.getShader());
  spotLayers.drawPaint(paint);
}
canvas.drawColor(Color.BLACK);
canvas.drawBitmap(screen, 0, 0, null);
  }

I've already browsed through the API examples and all reference pages
related to graphics, but still dunno what's up. Any help would be
great!

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Google Map is not displaying in emulator

2010-01-04 Thread mapper
Thanks,
I have this key.
But for Android development we have to get MD5 fingerprint and from
that maps Api key.
Which I have done with success.
And mapsDemo working fine with this key.
But my applicaion is not working.
Any suggestion.

Thanks

On Jan 3, 6:51 pm, Xu Bill billfight...@gmail.com wrote:
 hello

 RTFM~ :)

 Just read the guide below~

 http://code.google.com/intl/US-EN/apis/maps/signup.html

 2009/12/31 mapper sai.vaiku...@gmail.com



  Hi,
  The MapsDemo working fine.
  But in my app, same coding as MapsDemo, but still not working, only
  grids are there.
  I am having this problem since last 3 weeks but not get any solution.
  I have done lots of experiment for that but the result is same.

  And how to open port to internet access?

  Can you suggest me?

  Thanks,

  On Dec 31, 9:58 am, Turnkey Builder ronnie...@gmail.com wrote:
   It's your maps key

   On Dec 30, 2009 10:54 PM, me,Ramesh Yankati rameshyank...@gmail.com
   wrote:

   Hi ,
   You need to open port to internet access

   Regards
   Ramesh

   On Wed, Dec 30, 2009 at 9:22 AM, ZhouSu zsmarga...@gmail.com wrote: 

   Have you solved this probl...

  --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.

  NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Facing serious problem with static objects

2010-01-04 Thread swapnil kamble
Hi Alok,
if your both activities are from part of a single application
then why don't you simply create a common non-activity class with members as
static and access them from wherever you want.

On Sun, Jan 3, 2010 at 12:17 AM, Coco meli...@superliminal.com wrote:

 His code as given would crash if initialized to null on activity
 change. I think what you mean is to reinitialize the containers which
 is what I would suggest trying. Something like this:

 public class MyActivity extends Activity {
 public static HashMapString, String hMap;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
 hMap = new HashMapString, String(); // Recreate container
 each time.
...
}

 Alternatively he can just call hMap.clear() in onCreate() which will
 have much of the same effect. Which approach is better depends on
 exactly what he's trying to do.

 Another thing to consider is whether these members really want to be
 static in the first place.

 -Melinda

 On Jan 2, 8:50 am, Yousuf Faheem yousuf.syed@gmail.com wrote:
  Hi,
 
  Try initiallizing them to null before the change of activity takes place
 or
  at the start of home activity. Since your application is not closed(scope
 of
  the static objects), the static objects are there in memory allocated to
  that process and hence retain the value that you give.
 
  Thanks  Regards,
  Yousuf Syed
 
  On Sat, Jan 2, 2010 at 2:27 AM, Alok Kulkarni kulsu...@gmail.com
 wrote:
   Hi guys, I am facing a problem in my application.
   I have a few static arrays and Hashmaps in my app which i fill in when
 my
   Activity starts.Then this  activity later launches another Activity.
 Now
   user presses Home button of Back button and again restarts the app,
 even
   then the static objects remain in memory. I beleive this is default
 android
   behaviour.
   I have an example app.
   package com.cm.test;
 
   import java.util.HashMap;
 
   import android.app.Activity;
   import android.os.Bundle;
   import android.util.Log;
 
   public class MyActivity extends Activity {
   public static HashMapString, String hMap = new HashMapString,
   String();
 
   /** Called when the activity is first created. */
   @Override
   public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.main);
   Log.i(***,Hash map size = +hMap.size());
 
   hMap.put(Alok,Alo);
   hMap.put(Jitu,Jit);
 
   Log.i(***,Activity onCreate() called);
   }
   @Override
   public void onDestroy()
   {
   Log.i(***,Activity onDestroy() called);
   super.onDestroy();
 
   }
 
   @Override
   public void onResume()
   {
   super.onResume();
   Log.i(***,Activity onResume() called);
   }
   @Override
   public void onStop()
   {
 
   super.onStop();
 
   Log.i(***,Activity onStop() called);
   }
 
   }
   Output First time is Size = 0. for 1st launch, Next for every launch ,
   HashMap size is 2... If i use ArrayList , the size of ArrayList goes on
   increasing.
   I dont want this to happen.One thing was that to clear the HashMap in
   onDestroy() or in onStop() in case user presses Home button. But my
 Activity
   launches another ListActivity in it. So the alternae option is to clear
 the
   Hashmaps in onDestroy() | onStop() of this activity.
   I am not much clear when the Activity exits. From the posts that i have
   read i found few things here
  http://groups.google.com/group/android-developers/browse_thread/threa.
 ..
   The manifest part android:clearTaskOnLaunch=true does not work in my
 case.
   What do you people suggest in this case?
   Thanks,
   Alok.
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Beginners group.
 
   NEW! Try asking and tagging your question on Stack Overflow at
  http://stackoverflow.com/questions/tagged/android
 
   To unsubscribe from this group, send email to
   android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 android-beginners%2bunsubscr...@googlegroups.comandroid-beginners%252bunsubscr...@googlegroups.com
 
   For more options, visit this group at
  http://groups.google.com/group/android-beginners?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en




-- 

Re: [android-beginners] System wide properties

2010-01-04 Thread Mark Murphy
 I would like my app to set a property system wide, something like
 setprop lox.myapp.enabled=1. I can't find how.

There is no way to do that for an SDK application, and this list for
assisting developers with the Android SDK.

 Why I need that? Because I have a sh script that runs at boot from
 init.rc. It as to check that property to know if it has to run.  I
 thought about setprop but any other way of setting a flag from an
 android app and have it available from a sh script that runs at boot
 will do it.

Questions regarding modified Android firmware are best asked on
[android-porting], particularly if your changes are not meant to be
contributed back to the Android open source project.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Is there an app for this?

2010-01-04 Thread ryan alford
The widget for the Calendar shows a list of appointments.  I use this to
show what bills I need to pay so I don't forget.

There are also plenty of tasks apps that probably have widgets that do the
same.

Ryan

Sent from my DROID

On Jan 4, 2010 4:29 AM, Mike G. mgross...@gmail.com wrote:

Pardon me if I'm in the wrong group, please. If there is a more
appropriate group, I'd be happy to move along.

I'm considering an Android phone IF I know a particular app exists

I want my tasks displayed on my home screen. That's it. Simple

I now use an iPhone and I can't do this. The only phone that
sucessfully did this IMHO was WinMo devides with apps from 3rd
parties.

I want to see, when I turn on the phone, that today I need to pick up
cleaning and call the plumber. Tasks on the home screen. Is this so
hard?

Thanks, folks...

--
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Font Set

2010-01-04 Thread Mark Murphy

 Is it posible to define a new font set in android?

You can embed TrueType fonts into your application and use them, via the
Typeface class. However, you cannot define new fonts for use by all
applications.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] MediaPlayer cannot play music file in res/raw folder

2010-01-04 Thread Sean Hodges
I'm a bit busy to do a test myself, but on a quick glance this line in
the stacktrace seems interesting:

 E/AndroidRuntime( 1425): Caused by: java.io.FileNotFoundException:
 This file can not be opened as a file descriptor; it is probably
 compressed

Try converting your mp3 file to a raw .wav format and loading that
from your res/raw directory instead...

If this works, you may find that there is some issue playing
compressed formats directly from the APK file, and that you need to
read them some other way (e.g. copy them to the SD card before
playback). This might also be a bug.


On Sat, Jan 2, 2010 at 7:42 PM, csaunders c.saunders...@gmail.com wrote:
 Hello,

 I am trying to make an app that simply plays an mp3 file when you
 click on a button.  I've based my code off the API Demos from the
 android website, and I've been scouring various Android developer
 boards but all the solutions are still resulting in the same problem.

 When you click on the button this code should be executed:

    private void playAudio(Integer media){
        MediaPlayer m = MediaPlayer.create(this, R.raw.b);
        m.start();
    }

 When the program gets executed and I click on the button the program
 crashes.  All I've been able to determine from the stack trace is
 that:
 1 - The resource file cannot be found
 or
 2 - I am not able to open the file descriptor for some reason (it's
 compressed?)

 Here is the stack trace I am getting from logcat:
 E/AndroidRuntime( 1425): Uncaught handler: thread main exiting due to
 uncaught
 exception
 E/AndroidRuntime( 1425): java.lang.RuntimeException: Unable to start
 activity ComponentInfo{org.me.demogo/org.me.demogo.DemoGoPlayer}:
 android.content.res.Resources$NotFoundException: File res/raw/a.mp3
 from drawable resource ID
 #0x7f04
 E/AndroidRuntime( 1425):        at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
 2268)
 E/AndroidRuntime( 1425):        at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
 2284)
 E/AndroidRuntime( 1425):        at android.app.ActivityThread.access
 $1800(ActivityThread.java:
 112)
 E/AndroidRuntime( 1425):        at android.app.ActivityThread
 $H.handleMessage(ActivityThread.java:
 1692)
 E/AndroidRuntime( 1425):        at android.os.Handler.dispatchMessage
 (Handler.java:
 99)
 E/AndroidRuntime( 1425):        at android.os.Looper.loop(Looper.java:
 123)
 E/AndroidRuntime( 1425):        at android.app.ActivityThread.main
 (ActivityThread.java:
 3948)
 E/AndroidRuntime( 1425):        at
 java.lang.reflect.Method.invokeNative(Native
 Method)
 E/AndroidRuntime( 1425):        at java.lang.reflect.Method.invoke
 (Method.java:
 521)
 E/AndroidRuntime( 1425):        at com.android.internal.os.ZygoteInit
 $MethodAndArgsCaller.run(ZygoteInit.java:
 782)
 E/AndroidRuntime( 1425):        at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:
 540)
 E/AndroidRuntime( 1425):        at dalvik.system.NativeStart.main
 (Native
 Method)
 E/AndroidRuntime( 1425): Caused by: android.content.res.Resources
 $NotFoundException: File res/raw/a.mp3 from drawable resource ID
 #0x7f04
 E/AndroidRuntime( 1425):        at
 android.content.res.Resources.openRawResourceFd(Resources.java:
 814)
 E/AndroidRuntime( 1425):        at android.media.MediaPlayer.create
 (MediaPlayer.java:
 550)
 E/AndroidRuntime( 1425):        at org.me.demogo.DemoGoPlayer.playAudio
 (DemoGoPlayer.java:
 29)
 E/AndroidRuntime( 1425):        at org.me.demogo.DemoGoPlayer.onCreate
 (DemoGoPlayer.java:
 25)
 E/AndroidRuntime( 1425):        at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
 1123)
 E/AndroidRuntime( 1425):        at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
 2231)
 E/AndroidRuntime( 1425):        ... 11
 more
 E/AndroidRuntime( 1425): Caused by: java.io.FileNotFoundException:
 This file can not be opened as a file descriptor; it is probably
 compressed
 E/AndroidRuntime( 1425):        at
 android.content.res.AssetManager.openNonAssetFdNative(Native
 Method)
 E/AndroidRuntime( 1425):        at
 android.content.res.AssetManager.openNonAssetFd(AssetManager.java:
 412)
 E/AndroidRuntime( 1425):        at
 android.content.res.Resources.openRawResourceFd(Resources.java:
 811)
 E/AndroidRuntime( 1425):        ... 16 more

 Thank you,
 CS

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this 

[android-beginners] يسعدنى ويشرفنى ان تنضم لأسرة منتدى اجدع اصحاب

2010-01-04 Thread alagmy
يسعدنى ويشرفنى ان تنضم لأسرة منتدى اجدع اصحاب


السلام عليكم يسعدنى ويشرفنى ان تنضم لأسرة منتدى اجدع اصحاب لتشارك معنا
بالمواضيع والردود

والمنتدى به افضل البرامج والألعاب ومواضيع واخرى كثيره منوعه

المنتدى انشىء من اجلكم ونتمنى ان تكونوا متفاعلين معنا


http://agd3as7ab.eb2a.com/vb

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Font Set

2010-01-04 Thread Business Talk
Thanks Mark, I am trying to define fonts representing musical
notation. How can I go about it? I have notexperience with fonts. It
doesn't have be used by all applications as long as my app can use it.

On Jan 4, 6:32 am, Mark Murphy mmur...@commonsware.com wrote:
  Is it posible to define a new font set in android?

 You can embed TrueType fonts into your application and use them, via the
 Typeface class. However, you cannot define new fonts for use by all
 applications.

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 Android App Developer Books:http://commonsware.com/books.html

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Motodev Studio for Android Dev?

2010-01-04 Thread er...@motorola.com
Hi,

Sorry for being late to reply to this.  I'm the Product Manager for
MOTODEV Studio.

Bobby is correct, you can use MOTODEV Studio to develop for any
Android handset, not just those from Motorola. We take the core IDE
plus the ADT plugins from Google and add in quite a few features of
our own. We also package in a couple of popular plugins that Eclipse
users favor (i.e. CVS/SVN).

We would love to hear your impressions of the product and any ideas
you have for improvements. If you want to contact us about support or
ideas, we ask that you use the forums at developer.motorola.com.

Regards

Eric

On Dec 16 2009, 3:25 pm, IrvineCAGuy eniwebmas...@e-novative.com
wrote:
 Yup, I'm slogging my way about in an effort to find the best workable
 approach to developing an Andriod app.  Looking into the Motorola
 Droid environment, Motodev was very easy to install.  It uses the
 Eclipse IDE, and comes with the library and Simulator for a Mot
 device.  HOWEVER, I might want to develop not for the Motorla but for
 the HTC or other Android device.  Can I use the MOTDEV Studio for non-
 mot target devices?  Thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Motodev Studio for Android Dev?

2010-01-04 Thread ryan alford
Does MOTODEV Studio now support 2.0?  I remember looking into it about a
month ago, and it hadn't been updated for 2.0 yet.

If I currently have Eclipse installed, what changes would I need to make to
install MOTODEV Studio?  Is it it's own IDE, or is it compatible with a
current installed version of Eclipse?

Ryan

On Mon, Jan 4, 2010 at 12:38 PM, er...@motorola.com
ehclonin...@gmail.comwrote:

 Hi,

 Sorry for being late to reply to this.  I'm the Product Manager for
 MOTODEV Studio.

 Bobby is correct, you can use MOTODEV Studio to develop for any
 Android handset, not just those from Motorola. We take the core IDE
 plus the ADT plugins from Google and add in quite a few features of
 our own. We also package in a couple of popular plugins that Eclipse
 users favor (i.e. CVS/SVN).

 We would love to hear your impressions of the product and any ideas
 you have for improvements. If you want to contact us about support or
 ideas, we ask that you use the forums at developer.motorola.com.

 Regards

 Eric

 On Dec 16 2009, 3:25 pm, IrvineCAGuy eniwebmas...@e-novative.com
 wrote:
  Yup, I'm slogging my way about in an effort to find the best workable
  approach to developing an Andriod app.  Looking into the Motorola
  Droid environment, Motodev was very easy to install.  It uses the
  Eclipse IDE, and comes with the library and Simulator for a Mot
  device.  HOWEVER, I might want to develop not for the Motorla but for
  the HTC or other Android device.  Can I use the MOTDEV Studio for non-
  mot target devices?  Thanks

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Layout - Is there some way to do wraparound with horizontal linear layout

2010-01-04 Thread Marc
I have been trying to create layouts that will work on various device
screen sizes. I keep running in to cases where I want to line things
up horizontally and have them wrap around if the screen is not wide
enough.

For example in landscape mode I might have
() Radio Button 1 () Radio Button 2 () Radio Button 3 ()
Radio Button 4() Radio Button 5   () Radio Button 6

but in portrait I would have
() Radio Button 1 () Radio Button 2 () Radio Button 3
() Radio Button 4() Radio Button 5   () Radio Button 6


I have the same issues with text view and edit text combinations
for a wide screen I would like
TextViewEditText

for a narrow screen I would like
TextView
EditText

It seems like there should be some way of getting views to wrap around
to a new line if there is no room, just like a text string does.

I know I can have separate layouts for different screen sizes. I am
hoping to find something more elegant.

Thanks.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Stream PM4 video

2010-01-04 Thread ikalbeniz
hi,

i have been following some messages on the mail list and I have found
a way to play streaming video, but it seems that don’t work with mp4.
The code is like this:


main.xml
*
?xml version=1.0 encoding=utf-8?
LinearLayout
xmlns:android=http://schemas.android.com/apk/res/android;
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent
TextView
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=Video Playback JOC /
RelativeLayout
android:layout_width=fill_parent
android:layout_height=wrap_content
android:id=@+id/frame
VideoView
android:id=@+id/video
android:layout_width=226px
android:layout_height=194px
android:keepScreenOn=true /
/RelativeLayout
/LinearLayout

MainActivity.java
***
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.me.videoplayer;

import android.app.Activity;
import android.os.Bundle;
import android.widget.VideoView;
import android.widget.MediaController;
import android.net.Uri;

/**
 *
 * @author iker.perez
 */
public class MainActivity extends Activity {

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle icicle) {
  super.onCreate(icicle);
  setContentView(R.layout.main);
   //getWindow().setFormat(PixelFormat.TRANSLUCENT);

//videoHolder = new VideoView(this);
  VideoView videoView = (VideoView) findViewById
(R.id.video);
  MediaController mc = new MediaController(this);
  mc.setAnchorView(videoView);
  Uri video = Uri.parse(http://www.eitb.com/multimedia/
videos/2010/01/04/224025/KIR_caparros_20100104_094955.mp4);
  videoView.setMediaController(mc);
  videoView.setVideoURI(video);
  videoView.start();
}

}

I have an error saying that this video cannot be transmitted to my
device? Anyone knows what happens?

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Viewing Call Details

2010-01-04 Thread acgilmore1
Ok, i just got my android htc from verizon a couple days ago
and i don't know how to view the details of my calls.
As in, if i call someone...and we get off the phone..how can i view
the amount of time we were on the phone?
:(

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Setting ringtones to the notification sound

2010-01-04 Thread acgilmore1
As i stated before, im new to this Android HTC
I've been trying to set a personal ringtone to the notification
sound,like i had on my env2; I must be doing something wrong.
?

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] change security permissions of any application

2010-01-04 Thread vaibhav
hi,

I have two questions

a)how can we change the default security permissions of any
application?

b) Can we add our own activity in already installed application?

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Enlarge/Shrink button size with onLongClick

2010-01-04 Thread Kritzli
Hi,

I'm going to create a custom keyboard app. One feature is, that an
user can resize the keys.
Currently I'm doing this by firstly creating a button, which can be
resized and letters can be entered. In the second step, the button
should be transformed into a key. Resizing is done by two buttons,
making by onClick the Key-Button bigger and smaller. But i think
it's very annoying to do 20 clicks if you want a 20 times bigger
button.
So i tried to use onLongClick, that if a resize button is pushed and
held, the Key-Button should be resized.

But my problem at the moment is, that the onLongClickListener-method
doesn't work properly. I tried it like this:

 zoomin_button.setOnLongClickListener(new OnLongClickListener(){

public boolean onLongClick(View v){
int height = current_button.getHeight();
int width = current_button.getWidth();
boolean longclick = true;

while(longclick == true){
current_button.setHeight(height+2);
current_button.setWidth(width+2);
}
Toast.makeText(BApp.this, Long Click, 
Toast.LENGTH_SHORT).show();
return true;
}
  });


If I do it like this, after a short time I get a message which says:
Activity xy doesn't react.
While I tried it like:

 zoomin_button.setOnLongClickListener(new OnLongClickListener(){

public boolean onLongClick(View v){
int height = current_button.getHeight();
int width = current_button.getWidth();

current_button.setHeight(height+2);
current_button.setWidth(width+2);

Toast.makeText(BApp.this, Long Click, 
Toast.LENGTH_SHORT).show();
return true;
}
  });

The Toast shows up but the button isn't resized.

Okai. If you have any suggestion how this can be solved I would be
deeply grateful !

Thanks in advance !

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Databases in Android

2010-01-04 Thread verb
I'm currently doing a project which requires a potentially large
underlying relational database, and have a couple of queries on how to
implement this in Android.

Firstly, is it possible to implement composite keys? I have seen
methods which suggest that all primary keys in a database must be
called '_id' for Android to recognise them, but cannot find anything
on if there is more than one key in a table.

And secondly, how can I load a pre-created database onto an Android
device efficiently? It will only need to be added once on
installation, but potentially be updated or have individual entries
added by the user.

I am currently implementing in API Level 4 (Android 1.6).

Thanks in advance.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] It is possible to test pre defined activities using monkey scripting option

2010-01-04 Thread pradeep
Hi

I would like to inform every body that it is possible to test pre
defined activities using monkey.

It is possbile through monkey scripting option -f and with android
2.0 sdk.

Regards,
Pradeep

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Create an .apk progamatically

2010-01-04 Thread tsimmi
Hi!

The problem is this:

I make an internet connection to some url
and receive an HttpResponse with an app_example.apk.

Then I want to create a file (an .apk) in the sdcard with this data
so that this downloaded application can be installed later.

How can I convert the HttpResponse to an .apk file?



Thank you all

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Google Map is not displaying in emulator

2010-01-04 Thread John Pollard
I just had a similar problem - turns out I had the uses-
permissions ... / nodes under the application node, when they should
be under the manifest node. Moving them to be children of the
manifest fixed the problem for me.

This page was helpful too:
http://informationideas.com/news/2008/11/06/getting-android-emulator-working-with-google-maps-api-key/

Hope that helps you too
John


On Jan 4, 9:49 am, mapper sai.vaiku...@gmail.com wrote:
 Thanks,
 I have this key.
 But for Android development we have to get MD5 fingerprint and from
 that maps Api key.
 Which I have done with success.
 And mapsDemo working fine with this key.
 But my applicaion is not working.
 Any suggestion.

 Thanks

 On Jan 3, 6:51 pm, Xu Bill billfight...@gmail.com wrote:



  hello

  RTFM~ :)

  Just read the guide below~

 http://code.google.com/intl/US-EN/apis/maps/signup.html

  2009/12/31 mapper sai.vaiku...@gmail.com

   Hi,
   The MapsDemo working fine.
   But in my app, same coding as MapsDemo, but still not working, only
   grids are there.
   I am having this problem since last 3 weeks but not get any solution.
   I have done lots of experiment for that but the result is same.

   And how to open port to internet access?

   Can you suggest me?

   Thanks,

   On Dec 31, 9:58 am, Turnkey Builder ronnie...@gmail.com wrote:
It's your maps key

On Dec 30, 2009 10:54 PM, me,Ramesh Yankati rameshyank...@gmail.com
wrote:

Hi ,
You need to open port to internet access

Regards
Ramesh

On Wed, Dec 30, 2009 at 9:22 AM, ZhouSu zsmarga...@gmail.com wrote: 

Have you solved this probl...

   --
   You received this message because you are subscribed to the Google
   Groups Android Beginners group.

   NEW! Try asking and tagging your question on Stack Overflow at
  http://stackoverflow.com/questions/tagged/android

   To unsubscribe from this group, send email to
   android-beginners+unsubscr...@googlegroups.comandroid-beginners%2Bunsubscr
i...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-beginners?hl=en

  --
  There are only 10 types of people in the world...
  Those who know binary and those who don't.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Giving selection priority in XML Layout

2010-01-04 Thread Roman Romano
Dear both,

Many thanks for your help. I think it was an error on my part :-)

i needed to:

btn_Contact.setFocusableInTouchMode(true);

once that was set, the btn_Contact.requestFocus(); worked fine

Thanks Guys!

Regards

Roman

On Jan 3, 11:48 pm, Yousuf Faheem yousuf.syed@gmail.com wrote:
 Hi,

 try this.

 btn_Contact = (Button) findViewById(R.id.btn_Contact);



           editText_Message = (EditText) findViewById(R.id.messageText);
         btn_Save = (Button) findViewById(R.id.btn_Save);

        btn_Contact.requestFocus();

 Thanks  Regards,
 Yousuf Syed

 On Sun, Jan 3, 2010 at 6:32 PM, Roman Romano
 very.cross...@googlemail.comwrote:

  No joy :-(

  here's what i did:

         btn_Contact = (Button) findViewById(R.id.btn_Contact);
         btn_Contact.requestFocus();
         editText_Message = (EditText) findViewById(R.id.messageText);
         btn_Save = (Button) findViewById(R.id.btn_Save);

  but the EditText remains the first thing that is active on launching
  the intent.

  Any other suggestions??

  many thanks

  Roman

  On Jan 3, 6:28 pm, Roman Romano very.cross...@googlemail.com wrote:
   Many thanks both, I will give it a go.

   kind regards

   Roman

   On Jan 3, 12:57 am, Caius 'kaio' Chance k...@kaio.me wrote:

(2010年01月03日 08:56), Yousuf Faheem wrote:

 call
 btn.requestFocus();

BTW, create the btn with getViewById() first.

--
Caius 'kaio' Chance ☺ かいお
   Fedora Project Contributorhttp://fedoraproject.org/wiki/User:kaio
   kaio at fedoraproject.org, kaio on irc.freenode.net, GPG: 17BEFCFA

  --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.

  NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Create an .apk progamatically

2010-01-04 Thread schwiz
why not just upload the signed apk and have them download it directly?

On Jan 4, 12:33 pm, tsimmi gilga...@gmail.com wrote:
 Hi!

 The problem is this:

 I make an internet connection to some url
 and receive an HttpResponse with an app_example.apk.

 Then I want to create a file (an .apk) in the sdcard with this data
 so that this downloaded application can be installed later.

 How can I convert the HttpResponse to an .apk file?

 Thank you all

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Eclipse Project Dependencies

2010-01-04 Thread Kevin Duffey
For the original poster, your eclipse is 1.2.1? That seems wrong.. the
latest is 3.5 or later. I am assuming you got that version from the about
box or something and perhaps it doesn't show the actually IDE version.

Anyway, the way I do this.. quite honestly.. is to NOT depend on the IDE. I
instead use my ant build files to handle dependencies. There are several
ways you could do this, from using Ant + Ivy, Maven2, or if it's as simple
as one project using only one other project, have an ant task in the first
project that can drop the built .jar file into the 2nd projects /lib path.
You build the first project... first... which will deposit the .jar with the
class(es) you need into the path of the second project. My task may be
something like:

copy toDir=../secondProject/lib file=dist/myjar.jar/

(Forgive me if that is the wrong ant task.. it's been a while since I did
this from memory). Now, after you build the first project, you go into the
2nd project properties, and add the second project/lib/*.jar files to the
classpath. Since you built the first project, it will see the .jar that
project copied over to the second projects lib/ folder. Now.. if you try to
add the jar WITHOUT building the project first.. it won't work...which is
why you manually build the first project. The down side to this approach is
that if you work on both projects frequently, you have to build the first,
then the 2nd. If however the first is more a library, that you update from
time to time, and the 2nd is the one you are working on daily, it's not too
big a deal.

An alternative you can do.. is using the 2nd projects properties, you can
add the jar file directly from the first project as part of the 2nd projects
classpath. I think there is an option that links the first project as a
dependency and will then build it for you when you build the 2nd project.
HOWEVER, this will only work via the Eclipse build process. IF you use Ant
like I do, so that I can free myself of IDE specific dependencies and use a
nightly build process on a linux server to build my projects, you'll
probably want to stick with doing it all in the ant build.xml file.

A third option is to have a master build script that you can then call out
to each ant task of each project to build them in the order you want. You
basically write a single main build.xml that makes antcall calls to
specific projects build.xml files. You can even layer in the copying of the
built jars and such from one project to another and so forth. This is manual
management of dependencies, but again if you're using small projects, to me
I like the control over it and it's really not that much work to do.



On Sat, Jan 2, 2010 at 7:18 PM, Coco meli...@superliminal.com wrote:

 I have the same problem too. Seems that the emulator is not being
 given the class path to any referenced projects that the compiler
 clearly knows about. I'd love a solution too.

 -Melinda

 On Dec 30 2009, 3:03 am, CosminB cosm...@gmail.com wrote:
  Hi,
 
  I'm having the same problem. Did you find a solution to this yet?
 
  Thanks,
  Cosmin

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Create an .apk progamatically

2010-01-04 Thread Sean Hodges
On Mon, Jan 4, 2010 at 6:33 PM, tsimmi gilga...@gmail.com wrote:
 Hi!

 The problem is this:

 I make an internet connection to some url
 and receive an HttpResponse with an app_example.apk.

 Then I want to create a file (an .apk) in the sdcard with this data
 so that this downloaded application can be installed later.

 How can I convert the HttpResponse to an .apk file?

You should be able to do a byte stream copy of the data returned
straight to the SD card, something like:

FileOutputStream fos = new FileOutputStream(new
File(/sdcard/app_example.apk));
InputStream in = myHttpResponse.getEntity().getContent();
byte[] buffer = new byte[1024];
int bufferSize = 0;
while ( (bufferSize = in.read(buffer))  0 ) {
fos.write(buffer, 0, bufferSize);
}
fos.close();

Obviously you should add some checking code in there; ensure that data
is returned, the content-type is correct, the file is written to
successfully, etc.

Also make sure you have the correct permissions in your
AndroidManifest for writing to the SD card.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Very new - need some help.

2010-01-04 Thread Kevin Duffey
Best option is to buy a book. There are a few good ones out there for not
too much money. They'll walk you thru all the steps quite quickly. There is
an online PDF book as well.. forget the name now. I got it.. it's the best
I've found. Author is Mark Murphy I think it is.

GL.


On Fri, Jan 1, 2010 at 1:09 AM, cjk codyker...@gmail.com wrote:

 I just recently started looking into the Android SDK using eclipse and
 I'm having problems. How can I just make a simple listview app? Like
 this:


 Item1 *on click, go to different listview*
 Item2 *on click, go to different listview2*
 Item3 *on click, go to different listview3*
 etc.

 I've been researching for hours and I can't find anything.

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Android Virtual Device manager freezing upon creation

2010-01-04 Thread Walt Armour
I can't be sure what is causing yours to freeze but I do know these two
things:
- When I created a large SD card the init of it took a _long_ time.
Depending on how long you waited it may not actually be frozen.
- You may want to just use the command line to create the AVDs.  Check the
SDK docs for full details.

On Fri, Jan 1, 2010 at 21:56, Greg Chambers gregory.w.chamb...@gmail.comwrote:

 So I've been doing so basic development with one little hitch that
 I've run into so far.  I would like to make several AVD's in the AVD
 manager where each virtual device replicates each of the existing
 released phones with the Android platform for both hardware and
 software upon the release of the phone.  However, every time so far I
 have specified additional properties other than Abstracted LCD
 density, the AVD manager freezes on me.  I just did it again to me
 when all I did was also specify SD Card support = true, Device ram
 size = 256, Resolution = 854 x 480, SD Card size = 16000 MiB, and
 Abstracted LCD density = 160 in an attempt to make a virtual Verizon
 Droid device.  Anything I can do to avoid these freezes?

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Very new - need some help.

2010-01-04 Thread Sean Hodges
On Mon, Jan 4, 2010 at 11:15 PM, Kevin Duffey andjar...@gmail.com wrote:
 Best option is to buy a book. There are a few good ones out there for not
 too much money. They'll walk you thru all the steps quite quickly. There is
 an online PDF book as well.. forget the name now. I got it.. it's the best
 I've found. Author is Mark Murphy I think it is.
 GL.


The book you refer to is The Busy Coders Guide to Android Development.
You can get it at:

http://commonsware.com/Android/

 On Fri, Jan 1, 2010 at 1:09 AM, cjk codyker...@gmail.com wrote:

 I just recently started looking into the Android SDK using eclipse and
 I'm having problems. How can I just make a simple listview app?

List views are actually one of the more complex features in Android
(although they are not too bad once you've got used to them). I agree
with Kevin that you'd benefit most from getting a book, but you can
also check out the List view examples found in your SDK directory.
Navigate into:

platforms/android-*/samples/ApiDemos/src/com/example/android/apis/view/

There are some examples named List1.java etc. They are not ideal for
a beginner, but you might still find them useful.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Layout - Is there some way to do wraparound with horizontal linear layout

2010-01-04 Thread Walt Armour
Take a look at a GridView.  I'm using it in such a fashion right now.

On Mon, Jan 4, 2010 at 11:39, Marc gobl...@gmail.com wrote:

 I have been trying to create layouts that will work on various device
 screen sizes. I keep running in to cases where I want to line things
 up horizontally and have them wrap around if the screen is not wide
 enough.

 For example in landscape mode I might have
 () Radio Button 1 () Radio Button 2 () Radio Button 3 ()
 Radio Button 4() Radio Button 5   () Radio Button 6

 but in portrait I would have
 () Radio Button 1 () Radio Button 2 () Radio Button 3
 () Radio Button 4() Radio Button 5   () Radio Button 6


 I have the same issues with text view and edit text combinations
 for a wide screen I would like
 TextViewEditText

 for a narrow screen I would like
 TextView
 EditText

 It seems like there should be some way of getting views to wrap around
 to a new line if there is no room, just like a text string does.

 I know I can have separate layouts for different screen sizes. I am
 hoping to find something more elegant.

 Thanks.

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: ADB and Eclipse Losing Contact with Emulator

2010-01-04 Thread Paul Turchenko
Try restarting ADB:
adb kill-server
adb start-server

this might save you 10 minutes waiting, but this issue occured to me
and I didn't find any solution yet.

On Jan 1, 6:18 pm, jimjenkins5 jimjenki...@gmail.com wrote:
 Hello all,

 I am having a problem with the emulator (or ADB).  I consistently lose
 connection with the emulator and ADB does not list it as a running
 device.  Eclipse will report back sad result from adb! after trying
 to install the program.

 I am running Eclipse Galileo and most AVD's I've tried have been 1.6
 although I have tried 2.0, 1.5, 1.1 also.

 I've added an exception in my firewall, turned the firewall off, and
 disabled antivirus applications.

 I've also tried completely uninstalling eclipse (i.e. deleting the
 folder and redoenloading) and the Android SDK.

 So far nothing has worked and my development is at a standstill.  The
 only thing I can get to work is to create a new AVD each time I debug
 the application which is time consuming and requires waiting 10
 minutes for the emulator to start up again for every change in code.

 Any ideas on what I may be able to do would be appreciated.  I am very
 frustrated at this point.

 Thanks,
 Jim

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] How to play a audio resource on Hero?

2010-01-04 Thread DulcetTone
These phones are killing me with exceptions while running the same
trivial code that works on other phones, in which I play a short mp3
file packed as a raw resource.  This is the only MediaPlayer use in my
app, so I am sure not exhausting any limits on number of such items.

Here is the code that works on most Android phones and not on at least
SOME Hero/Eris.
What can/should I be doing differently?

// often (always?) returns null on Hero/Eris when called from within
my app's main activity
MediaPlayer mp = MediaPlayer.create(this, resId);
mp.start(); // this will just crash on a Hero/Eris, as mp will be null

// ditto... returns null and I do not know why
mp = MediaPlayer.create(getBaseContext(), resId);

**I have no Hero or Eris on which to test**, and so further detail is
difficult to obtain.

I also tried the following code after some other dev opined that Hero/
Eris had trouble playing audio resources.  I copy the resource out to
a file and then just get another error.

mp = new MediaPlayer();
copyResourceToFile(resId, foo.mp3);
mp.setDataSource(fname);
mp.prepare();   // fails on java.io.IOException: Prepare failed.:
status=0x1

Could this be an unsupported codec (it's a 4 second mp3 for crying out
loud, exported from Audacity)?  Should I try a PCM encoded wav file?

I would love some data from those who have actually done this on Hero/
Eris.  I suspect any well, this should work answers will fail just
as mine have.

tone

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Insert Content in MediaStore.Audio.Media.EXTERNAL_CONTENT_URI

2010-01-04 Thread jjoe64
Hello.

I get an error if I use this simple code:

   import android.provider.MediaStore.Audio.Media;
 // Save the name and description of an image in a ContentValues
map.
ContentValues values = new ContentValues(3);
values.put(Media.DISPLAY_NAME, road_trip_1);
values.put(Media.TITLE, Day 1, trip to Los Angeles);
values.put(Media.MIME_TYPE, audio/mp3);

// Add a new record without the bitmap, but with the values
just set.
// insert() returns the URI of the new record.
Uri uri = getContentResolver().insert
(Media.EXTERNAL_CONTENT_URI, values);

The error I get is on the last code line:
Writing exception to parcel
java.lang.NullPointerException
  at com.android.providers.media.MediaProvider.insertInternal
(MediaProvider.java:1286)
  at com.android.providers.media.MediaProvider.insert
(MediaProvider.java:1193)
(...)


But, when I insert a new image entry instead of an audio entry I get
no error!
(import android.provider.MediaStore.Images.Media; instead of
android.provider.MediaStore.Audio.Media; would work, but I need to
insert a audio file)

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: MediaPlayer cannot play music file in res/raw folder

2010-01-04 Thread DulcetTone
Are you by any chance trying this on a Hero or Eris?
The code you cite works fine for me EXCEPT on Hero and Eris (in which
case, I think it works on SOME of them).

I think the issue might indeed be that (some?) MP3 files fail on (some
of?) these phones.
I am myself working toward a solution that includes a fallback to a
WAV file if the first create(idForMp3) returns null.

tone

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Viewing Call Details

2010-01-04 Thread Scott Hulsmann
If you select the call it should show you the amount of time you spent on
that call. When I go into phone and select call log, then click on the name
or number of the conversation it opens a new screen/menu and towards the top
it will display the info that you are asking for.

On Mon, Jan 4, 2010 at 9:37 AM, acgilmore1 acgilmo...@gmail.com wrote:

 Ok, i just got my android htc from verizon a couple days ago
 and i don't know how to view the details of my calls.
 As in, if i call someone...and we get off the phone..how can i view
 the amount of time we were on the phone?
 :(

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en




-- 
Scott Hulsmann
huls...@gmail.com

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Error in Building Hello World

2010-01-04 Thread cellurl
You gotta give more info up front.
1. Do it on a PC.
2. Run the existing HelloWorld first before writing your own
HelloWorld.
It works if you install and follow all the step by step steps.
I had absolutely no experience and I got the HelloWorld to work right
out of the box..



On Jan 4, 12:15 am, rocky hulkman...@gmail.com wrote:
 Hi All,

 i am getting the below 2 errors while Building a simple Hello World
 program.
 could anyone Genius help it out? looks some problem in my eclipse
 settings...

 regds
 rocky

 Description     Resource        Path    Location        Type
 Error launching external scanner info generator (sh -c 'gcc -E -P -v -
 dD D:/Profiles/xtcg76/workspace/.metadata/.plugins/
 org.eclipse.cdt.make.core/specs.c ')    HelloWorld              Unknown C/C++ 
 Problem
 Error launching external scanner info generator (sh -c 'gcc -E -P -v -
 dD D:/Profiles/xtcg76/workspace/.metadata/.plugins/
 org.eclipse.cdt.make.core/specs.c ')    HelloWorld              Unknown C/C++ 
 Problem

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Specify URL for Uri.parse() in resource file?

2010-01-04 Thread Eno
I tried creating a string with an id (myurl) and then referring to it
using R.id.myurl in my code but this doesn't work. So how can I
specify a URL in the XML and then retrieve it to use in Uri.parse() ?


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Specify URL for Uri.parse() in resource file?

2010-01-04 Thread Eno
On Jan 4, 10:43 pm, Eno symb...@gmail.com wrote:
 I tried creating a string with an id (myurl) and then referring to it
 using R.id.myurl in my code but this doesn't work. So how can I
 specify a URL in the XML and then retrieve it to use in Uri.parse() ?

Never mind, I figured it out.

For anyone else out there, you can use Uri.parse(getString
(R.string.myurl));



--

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Google Map is not displaying in emulator

2010-01-04 Thread mapper
Thanks John,
Its working.
Thanks for the help.


On Jan 4, 8:53 pm, John Pollard yeltzl...@gmail.com wrote:
 I just had a similar problem - turns out I had the uses-
 permissions ... / nodes under the application node, when they should
 be under the manifest node. Moving them to be children of the
 manifest fixed the problem for me.

 This page was helpful 
 too:http://informationideas.com/news/2008/11/06/getting-android-emulator-...

 Hope that helps you too
 John

 On Jan 4, 9:49 am, mapper sai.vaiku...@gmail.com wrote:

  Thanks,
  I have this key.
  But for Android development we have to get MD5 fingerprint and from
  that maps Api key.
  Which I have done with success.
  And mapsDemo working fine with this key.
  But my applicaion is not working.
  Any suggestion.

  Thanks

  On Jan 3, 6:51 pm, Xu Bill billfight...@gmail.com wrote:

   hello

   RTFM~ :)

   Just read the guide below~

  http://code.google.com/intl/US-EN/apis/maps/signup.html

   2009/12/31 mapper sai.vaiku...@gmail.com

Hi,
The MapsDemo working fine.
But in my app, same coding as MapsDemo, but still not working, only
grids are there.
I am having this problem since last 3 weeks but not get any solution.
I have done lots of experiment for that but the result is same.

And how to open port to internet access?

Can you suggest me?

Thanks,

On Dec 31, 9:58 am, Turnkey Builder ronnie...@gmail.com wrote:
 It's your maps key

 On Dec 30, 2009 10:54 PM, me,Ramesh Yankati 
 rameshyank...@gmail.com
 wrote:

 Hi ,
 You need to open port to internet access

 Regards
 Ramesh

 On Wed, Dec 30, 2009 at 9:22 AM, ZhouSu zsmarga...@gmail.com wrote: 
 

 Have you solved this probl...

--
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
   http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.comandroid-beginners%2Bunsubscr
 i...@googlegroups.com
For more options, visit this group at
   http://groups.google.com/group/android-beginners?hl=en

   --
   There are only 10 types of people in the world...
   Those who know binary and those who don't.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Eclipse error when trying to install the ADT Plugin

2010-01-04 Thread Omega
Windows 7, after lots of fiddling turns out I had to specify the
equinox launcher and such in the eclipse.ini
Now my problem is that Eclipse is entirely unusable. I'm attempting to
do the hello android tutorial, but now whenever i open the
layout.xml file (or apparently any other file for that matter) Eclipse
stops responding and I have to force close it. I'm entirely lost on
this one :/

On Jan 3, 8:13 am, Caius 'kaio' Chance k...@kaio.me wrote:
 (2009年12月31日 22:56), Omega wrote:
  I've literally been up all night trying to get this to work, and I'm
  at my wits end. I'm trying to start getting into writting applications
  for Android, but this little issue is in my way.

  Upon installing Eclipse, and finally figuring out how to get it to
  find my JDK, I am now trying to install the ADT plugin. However, it
  reaches around ~50% installed and then spits out this error:

  An error occurred while installing the items
     session context was:(profile=SDKProfile,
  phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Install,
  operand=null --  [R]com.android.ide.eclipse.adt
  0.9.5.v200911191123-20404,
  action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction).
     Error while loading manipulator.
     Error while loading manipulator.

  I have no idea why this is happening, at first I thought I was because
  I was running 64-bit Java and Eclipse, but after redoing everything in
  32-bit, it only led to Eclipse freezing up, and spitting out an error
  for just about everything. Just now I have 64-bit Eclipse running off
  an 32-bit JDK, which I didn't even think would work, but this combo
  has gotten me the closest to getting the plugin to install. Prior to
  this, when both Eclipse and Java were 64-bit, it would spit out the
  very same error as soon as install started.

  Can anyone please help me?

 What OS are you using?

 --
 Caius 'kaio' Chance ☺ かいお
    Fedora Project Contributorhttp://fedoraproject.org/wiki/User:kaio
    kaio at fedoraproject.org, kaio on irc.freenode.net, GPG: 17BEFCFA

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: MediaPlayer cannot play music file in res/raw folder

2010-01-04 Thread csaunders
I am doing my development against Android 1.5 in the emulator.  I
don't think it's anything 'special'.

Also, the mp3 files aren't very large, they are about 7K each.

On Jan 4, 4:57 pm, DulcetTone dulcett...@gmail.com wrote:
 Are you by any chance trying this on a Hero or Eris?
 The code you cite works fine for me EXCEPT on Hero and Eris (in which
 case, I think it works on SOME of them).

 I think the issue might indeed be that (some?) MP3 files fail on (some
 of?) these phones.
 I am myself working toward a solution that includes a fallback to a
 WAV file if the first create(idForMp3) returns null.

 tone

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Eclipse error when trying to install the ADT Plugin

2010-01-04 Thread Kevin Duffey
I've not heard of this issue. Is your machine fast enough.. enough memory,
all that jazz? Do you have an updated win7 video driver for your video card?
Very strange tho.

On Mon, Jan 4, 2010 at 8:43 PM, Omega omega...@gmail.com wrote:

 Windows 7, after lots of fiddling turns out I had to specify the
 equinox launcher and such in the eclipse.ini
 Now my problem is that Eclipse is entirely unusable. I'm attempting to
 do the hello android tutorial, but now whenever i open the
 layout.xml file (or apparently any other file for that matter) Eclipse
 stops responding and I have to force close it. I'm entirely lost on
 this one :/

 On Jan 3, 8:13 am, Caius 'kaio' Chance k...@kaio.me wrote:
  (2009年12月31日 22:56), Omega wrote:
   I've literally been up all night trying to get this to work, and I'm
   at my wits end. I'm trying to start getting into writting applications
   for Android, but this little issue is in my way.
 
   Upon installing Eclipse, and finally figuring out how to get it to
   find my JDK, I am now trying to install the ADT plugin. However, it
   reaches around ~50% installed and then spits out this error:
 
   An error occurred while installing the items
  session context was:(profile=SDKProfile,
  
 phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Install,
   operand=null --  [R]com.android.ide.eclipse.adt
   0.9.5.v200911191123-20404,
  
 action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction).
  Error while loading manipulator.
  Error while loading manipulator.
 
   I have no idea why this is happening, at first I thought I was because
   I was running 64-bit Java and Eclipse, but after redoing everything in
   32-bit, it only led to Eclipse freezing up, and spitting out an error
   for just about everything. Just now I have 64-bit Eclipse running off
   an 32-bit JDK, which I didn't even think would work, but this combo
   has gotten me the closest to getting the plugin to install. Prior to
   this, when both Eclipse and Java were 64-bit, it would spit out the
   very same error as soon as install started.
 
   Can anyone please help me?
 
  What OS are you using?
 
  --
  Caius 'kaio' Chance ☺ かいお
 Fedora Project Contributorhttp://fedoraproject.org/wiki/User:kaio
 kaio at fedoraproject.org, kaio on irc.freenode.net, GPG: 17BEFCFA

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Problem with Custom Dialog

2010-01-04 Thread Justin Anderson
There are several methods available for dealing with dialogs within an
activity...  Have a look at onCreateDialog(), onPrepareDialog(),
showDialog(), and removeDialog():

http://developer.android.com/reference/android/app/Activity.html#onCreateDialog%28int%29

Thanks,
Justin

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Sat, Jan 2, 2010 at 6:55 AM, Lenea danmo...@gmail.com wrote:

 Hello, everyone.
 I've got an application in which a button triggers a custom dialog.
 In the custom dialog i have an EditText.
 I want to collect data from the EditText and set the text of a
 TextView to that data.
 The problem is, the TextView is located in my main Activity(the one
 which triggered the custom dialog)
 How do I do that?


 Cheers,
 Lenea

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Positioning images on top of one another

2010-01-04 Thread Justin Anderson
Please post your XML file and the code you are using to access the different
parts of it...

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Thu, Dec 31, 2009 at 1:09 PM, keith keith.gre...@gmail.com wrote:

 Hello all,
 I'm very new to android development, and I'm coming from a php/web
 development background. For my first exercise, I'm trying to draw a
 gauge face and a needle, and be able to rotate that needle to whatever
 direction I want (not dynamically, just by changing the angle in code
 and recompiling)
 I'm running into a problem that is 2-fold:

 1, If I build the layout programmatically using LinearLayout, I can
 rotate the needle, but I cannot manage to get the needle to sit in the
 proper position on top of the gauge, in fact, I can't seem to be able
 to control the position of either image at all. I looked into using
 AbsoluteLayout, but that is depricated.

 2. If I use the xml layout, I can position the gauge and needle
 exactly where I want them, but I cannot seem to access the needle
 programmatically to rotate it. I have tried setting android:@+id and
 using getById, but that doesn't do anything, although it doesn't throw
 an error either.

 Does anyone have any tips or references or examples on how to
 accomplish this seemingly easy task?

 Thanks,
 Keith

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: Getting an error when running the android Hello World tutorial

2010-01-04 Thread Justin Anderson
How long have you waited?  If you search the group you will find this same
problem asked over and over and over Sometimes it is a simple matter of
waiting longer.

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Thu, Dec 31, 2009 at 1:05 PM, ikram engr.ik...@gmail.com wrote:

 Hi,

 I have the same problem. Also, I could not see any 'Hello, Android'
 message. The emulator screen only shows 'A N D R O I D _' and nothing
 else. Could you please help me in figuring out the reason for doing
 so?

 Thanks
 Ikram

 On Dec 31 2009, 6:47 am, pransome caneg...@gmail.com wrote:
  I have followed the instructions for the Hello World tutorial athttp://
 developer.android.com/resources/tutorials/hello-world.html
  It all builds as expected, but when I run the application I get ...
 
  [2009-12-30 14:26:09 - Android Hello World]Waiting for HOME
  ('android.process.acore') to be launched...
  [2009-12-30 14:26:11 - Emulator]
  [2009-12-30 14:26:11 - Emulator]This application has requested the
  Runtime to terminate it in an unusual way.
  [2009-12-30 14:26:11 - Emulator]Please contact the application's
  support team for more information.
  [2009-12-30 14:26:11 - Android Hello World]emulator-5554 disconnected!
  Cancelling 'rnt.android.learning.hello activity launch'!
 
  I am using the Eclipse IDE with the ADT plugin, etc.
  I am doing this on a laptop running MS Windows XP Professional OS
 
  I have done some google searches on this problem and haven't found a
  solution for my particular circumstances.
  Can anyone suggest what might be going on?
 
  Thanks

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Re: no text displayed on emulator in Hello World program

2010-01-04 Thread Justin Anderson
No.

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Sat, Jan 2, 2010 at 2:02 PM, Cristian Andrei zink.kry...@gmail.comwrote:

 I do not own an Android device, yet. Is the real thing this slow too?

 On Dec 24 2009, 2:46 pm, MWarren mwarren3...@gmail.com wrote:
  I had went around with this for sometime my first day too.  It will
  show up however keep in mind it is basically starting an operating
  system on your computer.  It takes alot of resources to get it started
  and a few minutes.  Once the Android text clears you will see the
  unlock slider thenhomescreen and then your app.  I usually run my
  app to get it started from my last compile to give it time while I
  continue development and will leave it open for the rest of the day,
  and sometimes 2.
 
  Matrix
 
  On Dec 23, 10:42 am, Chris S chriss...@gmail.com wrote:
 
   Has anyone figured this out yet? It's a bit depressing something as
   simple as Android's hello world tutorial doesn't work.
 
   I'm running this under Eclipse 3.5 on Ubuntu. The fancy emulator
   window pops up, showing a reddish phone displaying the Android logo,
   and that's it. My console seems to show a red message (presumably an
   error?):
 
   [2009-12-23 10:34:19 - HelloAndroid]Android Launch!
   [2009-12-23 10:34:19 - HelloAndroid]adb is running normally.
   [2009-12-23 10:34:19 - HelloAndroid]Performing
   com.example.helloandroid.HelloAndroid activity launch
   [2009-12-23 10:34:19 - HelloAndroid]Automatic Target Mode: launching
   new emulator with compatible AVD 'my_avd'
   [2009-12-23 10:34:19 - HelloAndroid]Launching a new emulator with
   Virtual Device 'my_avd'
   [2009-12-23 10:34:19 - HelloAndroid]New emulator found: emulator-5554
   [2009-12-23 10:34:19 - HelloAndroid]WaitingforHOME
   ('android.process.acore') to belaunched...
   [2009-12-23 10:34:20 - Emulator]emulator: emulator window was out of
   view and was recentred
   [2009-12-23 10:34:20 - Emulator]
   [2009-12-23 10:34:49 - HelloAndroid]emulator-5554 disconnected!
   Cancelling 'com.example.helloandroid.HelloAndroid activity launch'!
 
   Am I missing something?
 
   Chris
 
   On Dec 22, 9:14 pm, Dayong Sun sund...@gmail.com wrote:
 
The emulator is VERY slow. Wait for 10 minutes and then you will see
 it.
 
On Fri, Dec 18, 2009 at 4:49 AM, Amit Patel amit.sav...@gmail.com
 wrote:
 I am facing same problem as does cybereality
 
 On Nov 16, 6:42 am, cybereality cybereal...@gmail.com wrote:
 I am having the same problem on Eclipse. The 'hello, android' text
 does not show up, even though the program compiles and I followed
 every instruction exactly. The emulator pops up but just shows the
 default android text and nothing happens. Can anyone help?
 
 On Nov 11, 8:17 pm, Bossco juanbos...@gmail.com wrote:
 
  Hello, I'm using NetBeans, and I have the same problem,
 theemulator
  does not show the text.
 
  I got this error:
 
  Device's package manager not ready to install new packages
 
  On Nov 5, 9:59 am, Walker Rowe wer...@walkerrowe.com wrote:
 
   Hi,
 
   Following the tutorial I wrote the hello world application
 shown below
   and eclipse shows the console messages shown at the bottom.
  Problem
   is theemulatorlaunched just has normal graphical display and
 does
   not show the message Hello, Android.
 
   package com.rosewoodhillfarm.helloandroid;
 
   import android.app.Activity;
   import android.os.Bundle;
   import android.widget.TextView;
 
   public class HelloAndroid extends Activity {
   /** Called when the activity is first created. */
   @Override
   public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   TextView tv = new TextView(this);
   tv.setText(Hello, Android);
   setContentView(tv);
   }
 
   }
 
   [2009-11-05 12:37:57 - Android
 Project]--
   [2009-11-05 12:37:57 - Android Project]Android Launch!
   [2009-11-05 12:37:57 - Android Project]adb is running
 normally.
   [2009-11-05 12:37:57 - Android Project]Performing
   com.rosewoodhillfarm.helloandroid.HelloAndroid activity launch
   [2009-11-05 12:37:57 - Android Project]Automatic Target Mode:
   Preferred AVD 'my_avd' is not available. Launching
 newemulator.
   [2009-11-05 12:37:57 - Android Project]Launching a
 newemulatorwith
   Virtual Device 'my_avd'
   [2009-11-05 12:38:01 - Android Project]Newemulatorfound:
  emulator-5554
   [2009-11-05 12:38:01 - Android Project]WaitingforHOME
   ('android.process.acore') to belaunched...
   [2009-11-05 12:38:34 - Android Project]HOMEis up on device
   'emulator-5554'
   

Re: [android-beginners] Installing app

2010-01-04 Thread Justin Anderson
This is what I do:

- You have to allow the phone to install non-market apps in the settings.
- Put your .apk files on your phone's SD card.
- Then, what I do is use Apps Organizer to install the .apk files from the
SD card

Unfortunately, you have to get the Apps Organizer app from the Market.
There may be another way to do but that is how I do it.

Thanks,
Justin

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Sun, Jan 3, 2010 at 12:02 AM, androidnewbie hnin9...@gmail.com wrote:

 Hi guys!

 I've just gotten a HTC Tattoo and want to get some apps to be
 installed on the phone. This is my first time using an Android phone
 so I have no clue how to do it. I did download some apps and unzip
 the .apk files using winzip. No idea how to continue from that part!
 Would prefer to connect the phone to com using USB. I don't want to
 get apps via Market app on the phone. Any help?

 Thank you very much :)))

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Problem with Custom Dialog

2010-01-04 Thread Kevin Duffey
If the dialog you open is to return a value, I forget the call.. still
learning myself.. I think it's like onWaitForDialog or something. You can
have it return a response to the activity that displayed it, which would
probably be the same activity you want to update the textview with. Just
update the textview, possibly in a thread to update the UI with the
response.

On Mon, Jan 4, 2010 at 10:29 PM, Justin Anderson janderson@gmail.comwrote:

 There are several methods available for dealing with dialogs within an
 activity...  Have a look at onCreateDialog(), onPrepareDialog(),
 showDialog(), and removeDialog():


 http://developer.android.com/reference/android/app/Activity.html#onCreateDialog%28int%29

 Thanks,
 Justin


 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --


 On Sat, Jan 2, 2010 at 6:55 AM, Lenea danmo...@gmail.com wrote:

 Hello, everyone.
 I've got an application in which a button triggers a custom dialog.
 In the custom dialog i have an EditText.
 I want to collect data from the EditText and set the text of a
 TextView to that data.
 The problem is, the TextView is located in my main Activity(the one
 which triggered the custom dialog)
 How do I do that?


 Cheers,
 Lenea

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] change security permissions of any application

2010-01-04 Thread Justin Anderson
a) Root your phone

b) Not that I am aware of

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Mon, Jan 4, 2010 at 6:13 AM, vaibhav vaibhav2...@gmail.com wrote:

 hi,

 I have two questions

 a)how can we change the default security permissions of any
 application?

 b) Can we add our own activity in already installed application?

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Problem with Custom Dialog

2010-01-04 Thread Lenea
I've got it done. I just created a new class and set the Theme to
@android:style/Theme.Dialog, then i created an intent and called
startActivityForResult() and
passed the parameters through Bundle. hope this helps others with the
same problem as me

Cheers,
Lenea

On Jan 5, 8:48 am, Kevin Duffey andjar...@gmail.com wrote:
 If the dialog you open is to return a value, I forget the call.. still
 learning myself.. I think it's like onWaitForDialog or something. You can
 have it return a response to the activity that displayed it, which would
 probably be the same activity you want to update the textview with. Just
 update the textview, possibly in a thread to update the UI with the
 response.

 On Mon, Jan 4, 2010 at 10:29 PM, Justin Anderson 
 janderson@gmail.comwrote:

  There are several methods available for dealing with dialogs within an
  activity...  Have a look at onCreateDialog(), onPrepareDialog(),
  showDialog(), and removeDialog():

 http://developer.android.com/reference/android/app/Activity.html#onCr...

  Thanks,
  Justin

  --
  There are only 10 types of people in the world...
  Those who know binary and those who don't.
  --

  On Sat, Jan 2, 2010 at 6:55 AM, Lenea danmo...@gmail.com wrote:

  Hello, everyone.
  I've got an application in which a button triggers a custom dialog.
  In the custom dialog i have an EditText.
  I want to collect data from the EditText and set the text of a
  TextView to that data.
  The problem is, the TextView is located in my main Activity(the one
  which triggered the custom dialog)
  How do I do that?

  Cheers,
  Lenea

  --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.

  NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

   --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.

  NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Installing app

2010-01-04 Thread Lenea
Just in case you don't have the market available to get an app
installer, there's also a non-market way :
1. install the android sdk (google it)
2. connect your phone to your PC
3. go to settings -- sd card  phone storage and touch unmount (eject
SD card)...while you're in settings check Unkown Sources in settings
-- applications
4. now open a command shell(start -- run -- cmd on Windows) and
type : adb install location of .apk fileapk file name
Hope this helps.

Cheers,
Lenea

On Jan 5, 8:42 am, Justin Anderson janderson@gmail.com wrote:
 This is what I do:

 - You have to allow the phone to install non-market apps in the settings.
 - Put your .apk files on your phone's SD card.
 - Then, what I do is use Apps Organizer to install the .apk files from the
 SD card

 Unfortunately, you have to get the Apps Organizer app from the Market.
 There may be another way to do but that is how I do it.

 Thanks,
 Justin

 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --

 On Sun, Jan 3, 2010 at 12:02 AM, androidnewbie hnin9...@gmail.com wrote:
  Hi guys!

  I've just gotten a HTC Tattoo and want to get some apps to be
  installed on the phone. This is my first time using an Android phone
  so I have no clue how to do it. I did download some apps and unzip
  the .apk files using winzip. No idea how to continue from that part!
  Would prefer to connect the phone to com using USB. I don't want to
  get apps via Market app on the phone. Any help?

  Thank you very much :)))

  --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.

  NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en