[android-beginners] Re: Flickering camera preview in SurfaceView

2009-12-13 Thread kaloer
I'm using an HTC Hero with the 1.5 cupcake firmware. I just tried
different options to get it working, and this works..

On 9 Dec., 11:58, Wu-cheng Li (李務誠) wuchen...@google.com wrote:
 This is really strange. Which phone and release are you running on? I don't
 know any phone that supports JPEG preview frame.

 On Wed, Dec 9, 2009 at 12:25 AM, kaloer mkal...@gmail.com wrote:
  It works now. Should simply set the parameters.setPreviewFormat(); to
  PixelFormat.JPEG.

  On 5 Dec., 13:05, kaloer mkal...@gmail.com wrote:
   I have a screenshot of  the flicker here:http://tinypic.com/r/35003lv/6

   On 5 Dec., 12:59, kaloer mkal...@gmail.com wrote:

Hi,

I have an Dialog with a custom view. This view has a SurfaceView which
shows a camera preview. However, the preview is very flickering.

The taken photo does not contain flicker. It looks as it should.

Why does the preview flicker? (The camera does work :-) )

This is my custom view:
-

public class CameraView extends LinearLayout implements
SurfaceHolder.Callback, OnClickListener, PictureCallback {

        private SurfaceView surfView;
        private SurfaceHolder previewHolder;
        private Camera camera;
        OnProfilePictureTakenListener onProfilePictureTakenListener =
  null;

        public CameraView(Context context) {
                super(context);
                setOnClickListener(this);
                surfView = new SurfaceView(getContext());
                addView(surfView);
                previewHolder = surfView.getHolder();
                previewHolder.addCallback(this);

  previewHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
        }

        @Override
        public void surfaceChanged(SurfaceHolder holder, int format,
  int
width,
                        int height) {
                Camera.Parameters parameters = camera.getParameters();
                parameters.setPreviewSize(width, height);
                parameters.setPictureFormat(PixelFormat.JPEG);
                camera.setParameters(parameters);
                camera.startPreview();
        }

        @Override
        public void surfaceCreated(SurfaceHolder holder) {
                camera = Camera.open();
                try {
                        camera.setPreviewDisplay(previewHolder);
                } catch(Throwable t) {
                        Log.e(surfaceCallback, Exception, t);
                        Toast.makeText(getContext(), t.getMessage(),
  Toast.LENGTH_LONG).show
();
                }
        }

        @Override
        public void surfaceDestroyed(SurfaceHolder holder) {
                camera.stopPreview();
                camera.release();
                camera = null;
        }

        @Override
        public void onClick(View v) {
                takePicture();
        }

        private void takePicture() {
                camera.stopPreview();
                camera.takePicture(null, null, this);
        }

        @Override
        public void onPictureTaken(byte[] data, Camera camera) {
                new SavePhotoTask().execute(data);
                camera.startPreview();
        }

        public void
  setOnPictureTakenListener(OnProfilePictureTakenListener
lis) {
                onProfilePictureTakenListener = lis;
        }

        class SavePhotoTask extends AsyncTaskbyte[], String, String {

                @Override
                protected String doInBackground(byte[]... jpeg) {
                        File photo = new
  File(Environment.getExternalStorageDirectory(),
/.addMePictures/ + System.currentTimeMillis());
                        if(photo.exists()) {
                                photo.delete();
                        }
                        try {
                                FileOutputStream fos = new
  FileOutputStream(photo.getPath());
                                fos.write(jpeg[0]);
                                fos.close();
                        } catch(IOException e) {
                                e.printStackTrace();
                        }
                        if(onProfilePictureTakenListener != null) {

  onProfilePictureTakenListener.onProfilePictureTaken(photo);
                        }
                        return null;
                }

        }

        public interface OnProfilePictureTakenListener {
                public abstract void onProfilePictureTaken(File
  imgFile);
        }

}



Thank you very much!

//Kaloer

  --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.
  To post to this group, send email to 

Re: [android-beginners] how to get starting material of android

2009-12-13 Thread Yousuf Syed
Hi,

You can start from here.

http://developer.android.com/guide/index.html

and later on you can go through the books on the link below

http://wiki.andmob.org/books (given by some one on this forum earlier)

regards,

Yousuf.

On Thu, Dec 10, 2009 at 4:57 AM, Xi Shen davidshe...@googlemail.com wrote:

 hi,

 i am totally new to android, and have little programming experience
 about linux. can anyone point me where should i start?

 i am planing to get a HTC g1.


 --
 Best Regards,
 David Shen

 http://twitter.com/davidshen84/
 http://meme.yahoo.com/davidshen84/

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 To post to this group, send email to android-beginners@googlegroups.com
 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.
To post to this group, send email to android-beginners@googlegroups.com
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: Is there a way to add Video files to my application

2009-12-13 Thread CiprianU
As far as I know you can put them in raw resource folder and you could
use them as regular resources, I haven't tried with video files but I
tried with audio files in the past in it was easy to use. But be
careful your apk could get real big.

Regards,
Ciprian.

On Dec 11, 1:12 am, Yousuf Syed yousuf.syed@gmail.com wrote:
 Hi,

 I am developing an application where in I need to display video files in a
 video player. I need to push the video files on to the sdcard of the
 emulator in order for my application to play those videos. if this
 application is deployed on an android phone I need to push the files on that
 too.

 Is there a way I can bundle those file along within the apk file so that its
 easy for the users to download and install the application?

 Thanks in advance,

 Yousuf

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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 save xml file in android

2009-12-13 Thread ranjit
Hi friends,
 i am using
 import javax.xml.transform.dom.*;
 import  javax.xml.transform.*;
 import javax.xml.transform.stream.StreamResult;

 But these imports are not recognized please give
any other alternatives to save xml file i stick here from one week plz
help me

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: GK:How to Animate the single image in the Gallery

2009-12-13 Thread Ganesh Ram
Thanks a lot Mr.Justin,

Can you tell how to achive my requirement How put the animation on
the actual
 image itself ?

 If not gallery what else can be use ?

I want multiple images with touch scrolling effect in single row
view 


Cheers,
Ganesh

On Dec 11, 9:50 am, Justin Anderson janderson@gmail.com wrote:
 You are telling the gallery to do the animation.  If you want each image to
 have a different animation, then you need to put the animation on the actual
 image itself, not the gallery...

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



 On Thu, Dec 10, 2009 at 3:10 AM, Ganesh Ram ganesh...@gmail.com wrote:
  Hi All,
   I added and displayed set of images in my gallery. I made like at a
  time use can view three images.

  Now I want to do different Animation for these images. I used
  following snippet but its refreshing entire Gallery.
  @
                 gallery.setGravity(10);
                 gallery.setAnimationDuration(1000);
                 gallery.setSelection(position, true);
                 gallery.setFadingEdgeLength(100);
                 gallery.startAnimation(mGallaryAnim);
                 gallery.setCallbackDuringFling(false);
  @@@
  Try to help me. I need to complete this soon.

  --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.
  To post to this group, send email to android-beginners@googlegroups.com
  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- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Dynamic Spinner

2009-12-13 Thread krishna
Hi,
I am working on android i am able to draw simple spinner.
But my application needs dynamic spinner mean in a one view there may
be one or four spinner need it depends upon application needs.
So how we can draw dynamic Spinner without using XML.

Thanks  Regards
Vilas Talewale

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] adb push ..... system/lib

2009-12-13 Thread me,Ramesh Yankati
Hi Have you installed USB driver??.




Regards
Ramesh
On 12/11/09, Zlate87 zlatko.stama...@gmail.com wrote:
 Hi,

 I'm trying to install voice search to my t-mobile pulse.

 However I run in to a problem, I need to run this command adb push C:
 \libspeech.so system/lib, but I get error: read-only file system.

 I read that adb remount will help, but when I run it, I get this
 error: operation not permitted.

 I also read that adb root will help, but when I run it, I get this
 error: adbd cannot run as root in production builds.

 I have enabled USB debugging in Settings-Applications- Development.

 Can someone please help me?

 Thanks in advance :)

 Regards,
 Zlatko Stamatov

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 To post to this group, send email to android-beginners@googlegroups.com
 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.
To post to this group, send email to android-beginners@googlegroups.com
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 displaying path (urgent)

2009-12-13 Thread balanagu sabareesh
Hi Justin
Thank you for replying. I found the solution by following your idea once
again thank you and i have another doubt, i created the expandable list,
when iam exapanding that list child list is comming but now my problem is
when i click on the the child it need to go to another layout it may be a
listview or another expandable list.

please give provide me the solution if you have.

with regards
sabs

On Thu, Dec 10, 2009 at 11:35 PM, Justin Anderson
janderson@gmail.comwrote:

 Add the path as an extra to the intent being used to start the activity.
 Then you can retrieve it from the activity you started.

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


 On Tue, Dec 8, 2009 at 7:24 AM, sabs bsabare...@gmail.com wrote:

 Hi every body

 I wrote an application which contains a list view, when i click on
 list m y application will move to another list when i click on that

 list it will move to another activity like that my application will
 work. Now my problem is i would like to display the path on the top of
 my application means that iam in this acativity like that

 eg: list 1(main activity) when i click on list it is moving to another
 list (next activity) when i click on that list it will move to another
 activity, now i have to display path as shown in bracket (/main
 activity/secondactivity/another activity) if i come back from third
 activity to second activity my path also need to changed dynamically.

 can any one help me to get rid of this problem.

 thank you
 sabs

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 To post to this group, send email to android-beginners@googlegroups.com
 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.
 To post to this group, send email to android-beginners@googlegroups.com
 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.
To post to this group, send email to android-beginners@googlegroups.com
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 Block an Application

2009-12-13 Thread vishnu
Hi..
[first of all,  I know my english is so good..hope u can understand
wat my problem is..]

i am trying to develop a sheduler,which will block some application
(inbuilt applications) for a defined period of time...

Iam new to this android world,and dont know how to implement this...
[currently working on android 2 platform]

my present status:

i created a task list,from which a search is made to see the app to be
blocked is der .
if true close dat activity some way...

r8 now i need an answer to dat some way..

[1] how can i close dat activity from another one..??
[2]what if the activity to blocked is an inbuilt android app [say
messaging app].??

r8 now i have  package.classname of the activity to be blocked...
(obtained from activity.runningtaskinfo)
i dont know whether this is an effective way .maybe stupid...

Anyone please help me on this.guide me on the r8
track.
Recently i read something about Instrumentation.activityMonitor
old API docs say something similar to this,which was used for
testing...
will dis activitymonitor wrok for me.. cant find any examples on
dis..

thanks in advance

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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 Maps Api - No image displayed

2009-12-13 Thread Yousuf Syed
Do you have the right key generated

 com.google.android.maps.MapView
android:id=@+id/mapview
android:layout_width=fill_parent
android:layout_height=fill_parent
android:clickable=true
android:apiKey=*Your Maps API Key*
/

step 1: create your key store by going to cmd_promt

step 2: copy the key store and paste it here
http://code.google.com/android/maps-api-signup.html

you will recieve your Maps API key . Place it in the code above. You
will be able to see  the google mapview.


For more details on how to visit this link :
http://code.google.com/android/add-ons/google-apis/mapkey.html

regards,
Yousuf.




On Thu, Dec 10, 2009 at 1:15 PM, TreKing treking...@gmail.com wrote:

 Also make sure you have the internet permission in your manifest, otherwise
 the maps can't download the image tiles.


 -

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


 On Tue, Dec 8, 2009 at 11:06 AM, Denis 87elem...@gmail.com wrote:

 Hi, guys,

 It is interesting, but I have the same problem. I've found a guide to
 construct Google Maps-aware application (as simple as possible, just a
 map even without zoom...) and it doesn't work (Well, it works - shows
 me nice grey grid). The advice is always one - check API keys. But the
 key is correct, because another application (that is built-in MapsDemo
 in Eclipse) runs well using my key!

 Regards,
 Denis

 On 14 ноя, 21:27, Raphaël Piéroni raphaelpier...@gmail.com wrote:
  Thanks for the answer,
 
  Yes i am running in debug mode.
 
  But i think i did it right, as i gave the debug keystore fingerprint to
 the
  registration process.
  I have not performed yet the creation of a release keystore for wndows
 nor
  macosx.
 
  Regards,
 
  Raphaël
 
  2009/11/11 TreKing treking...@gmail.com
 
   Looks like you're running in debug mode. Are you sure you're using the
   debug key? If you tested a release version on your Mac it would
 explain why
   it works there.
 
   2009/11/10 Raphaël Piéroni raphaelpier...@gmail.com
 
   Hi Folks,
 
   Some updates,
   I retried on mac osx JAVA6 (i was on winXP JAVA5) and it works fine.
 
   I have 2 hypothesys on my problem :
   - OS but i don't believe it
   - Java version but i don't believe also
 
   Raphaël
 
   Le 10 novembre 2009 12:36, Raphaël Piéroni raphaelpier...@gmail.com
 a
   écrit :
 
   Hello folks,
   In my map view i have NO image displayed.
   I did get an apiKey from my keystore fingerprint.
   I using the ant script that affirms to sign the apk with the same
   keystore.
   I have proper permissions and library usage.
   But still I got no image.
   If anyone has a clue for displaying the map in my simulator i will
 be
   very happy.
   Regards,
   Raphaël
   Extracts from the manifest :
   ?xml version=1.0 encoding=utf-8?
   manifest xmlns:android=http://schemas.android.com/apk/res/android
 
 android:versionCode=1
 android:versionName=1.0
 *uses-permission android:name=android.permission.INTERNET /
 uses-permission
 android:name=android.permission.ACCESS_FINE_LOCATION
   /
 uses-permission
   android:name=android.permission.ACCESS_LOCATION_EXTRA_COMMANDS /
 uses-permission
   android:name=android.permission.ACCESS_COARSE_LOCATION /*
 uses-sdk android:minSdkVersion=5 /
 application android:label=@string/application_name
 *uses-library android:name=com.google.android.maps /*
 activity android:name=InitializationActivity
   android:label=@string/application_name
 intent-filter
 action android:name=android.intent.action.MAIN /
 category android:name=android.intent.category.LAUNCHER /
 /intent-filter
 /activity
 /application
   /manifest
 
   Extracts from the layout.xml
   ?xml version=1.0 encoding=utf-8?
   ScrollView xmlns:android=
 http://schemas.android.com/apk/res/android;
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 com.google.android.maps.MapView
 android:id=@+id/map_view
 android:layout_width=fill_parent
 android:layout_height=fill_parent
   *  android:apiKey=0U4YsOFH1B2CbsN0un0AcdDlD30t4i-EDL3h4JQ*
 /
   /ScrollView
   Extract from the activity which extends MapActivity with proper
 override.
 @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.map_test);
 MapView map = (MapView) findViewById(R.id.map_view);
 map.setClickable(true);
 MapController mc = map.getController();
  double latitude = 47.3869316;
 double longitude = -2.9516315;
 GeoPoint location = new GeoPoint((int) (latitude * 100.0),
 (int)
   (longitude * 100.0));
 mc.setCenter(location);
 mc.setZoom(10);
 map.setEnabled(true);
 map.setSatellite(true);
 map.invalidate();
 }
 
   Installing the 

[android-beginners] Re: GK:How to Animate the single image in the Gallery

2009-12-13 Thread Ganesh Ram
Hi Justin.,
Actually my requiremnt is :
 i need to show some images in a single strip.(5 images)

If i click Right or left i ll do some animation and show center
image.
Also i need to do different animation for other side images.


Some like IPhone menu animation.


Hope you got my requirement.


Sugges me some thing. What i need to now ..? ??


Cheers,
Ganesh




On Dec 11, 9:50 am, Justin Anderson janderson@gmail.com wrote:
 You are telling the gallery to do the animation.  If you want each image to
 have a different animation, then you need to put the animation on the actual
 image itself, not the gallery...

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



 On Thu, Dec 10, 2009 at 3:10 AM, Ganesh Ram ganesh...@gmail.com wrote:
  Hi All,
   I added and displayed set of images in my gallery. I made like at a
  time use can view three images.

  Now I want to do different Animation for these images. I used
  following snippet but its refreshing entire Gallery.
  @
                 gallery.setGravity(10);
                 gallery.setAnimationDuration(1000);
                 gallery.setSelection(position, true);
                 gallery.setFadingEdgeLength(100);
                 gallery.startAnimation(mGallaryAnim);
                 gallery.setCallbackDuringFling(false);
  @@@
  Try to help me. I need to complete this soon.

  --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.
  To post to this group, send email to android-beginners@googlegroups.com
  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- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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 application framework debug setup error

2009-12-13 Thread karthikeyan lakshminarayanan
Hi,

I am trying to debug the browser application in ubuntu, i have
downloaded the opensource and build successfully with make.

while try into setup DDMS as mention in http://source.android.com/using-eclipse

i am not geting the point of

below setup
Eclipse setup to work on DDMS

For DDMS, you will need to make a project for

   1. development/tools/ddms/libs/ddmlib
   2. development/tools/ddms/libs/ddmuilib
   3. development/tools/ddms/app

Each project will need to reference the ones before it (ddmuilib
references ddmlib, and app references both of those). To do this:

   1. Make sure you have all 3 projects defined.
   2. Right click on a project, Build Path  Configure Build
Path...
   3. Choose the Project tab.
   4. Click Add... and check the required projects.


how to create 3 projects and how to debug the application framework
source.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: GK:How to Animate the single image in the Gallery

2009-12-13 Thread Ganesh Ram
Some one help me !  !  !





On Dec 11, 9:50 am, Justin Anderson janderson@gmail.com wrote:
 You are telling the gallery to do the animation.  If you want each image to
 have a different animation, then you need to put the animation on the actual
 image itself, not the gallery...

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



 On Thu, Dec 10, 2009 at 3:10 AM, Ganesh Ram ganesh...@gmail.com wrote:
  Hi All,
   I added and displayed set of images in my gallery. I made like at a
  time use can view three images.

  Now I want to do different Animation for these images. I used
  following snippet but its refreshing entire Gallery.
  @
                 gallery.setGravity(10);
                 gallery.setAnimationDuration(1000);
                 gallery.setSelection(position, true);
                 gallery.setFadingEdgeLength(100);
                 gallery.startAnimation(mGallaryAnim);
                 gallery.setCallbackDuringFling(false);
  @@@
  Try to help me. I need to complete this soon.

  --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.
  To post to this group, send email to android-beginners@googlegroups.com
  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- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Playing a Video from file

2009-12-13 Thread Valentino XM
Help!

code code code, playing a video from file.. using the video view
widget. not at all successful. the developers page claims this is
easy.. i beg to differ... for first time coders, very frutstrating..
if you can help., please do.



package info.shouraig.com;

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

public class XSO3 extends Activity {
private static final String TAG = XSO3;
VideoView videoXSO3;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Log.d(TAG,onCreate started);


VideoView video = (VideoView) this.findViewById
(R.id.VideoXSO3); my title

Uri uri = Uri.parse(//info.shouraig.com/ + R.raw.C:/
XSCycling2.mp4); my video
video.setVideoURI(uri);
video.setMediaController(new VideoView(this));
video.requestFocus();
video.setOnCompletionListener(this);
video.start();



}AssetFileDescriptor afd = getResources().openRawResourceFd
(R.raw.video);

// Create a new media player and set the listeners
mMediaPlayer = new MediaPlayer();

mMediaPlayer.setDataSource(afd.getFileDescriptor(),
afd.getStartOffset(), afd.getLength());

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Modify permissions of default Android's actions

2009-12-13 Thread jlancelot
Hello,

I'd like to customize an Android and prevent the user to do some
action.
For instance, I'd like to know if it's possible to prevent the user to
delete some files (photos, vidéos, musics) and block some actions
like : change wallpaper, change screen saver, etc...

Thanks a lot!

Julien

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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 a way to add Video files to my application

2009-12-13 Thread me,Ramesh Yankati
Yes
You can do it.


use command


$ adb push  yourfile sdcard/yourfoldername.

Ensure that phone should be connected to system.
before pushing check
adb devices command.




Regards
Ramesh
On 12/11/09, Yousuf Syed yousuf.syed@gmail.com wrote:
 Hi,

 I am developing an application where in I need to display video files in a
 video player. I need to push the video files on to the sdcard of the
 emulator in order for my application to play those videos. if this
 application is deployed on an android phone I need to push the files on that
 too.

 Is there a way I can bundle those file along within the apk file so that its
 easy for the users to download and install the application?

 Thanks in advance,

 Yousuf

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 To post to this group, send email to android-beginners@googlegroups.com
 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.
To post to this group, send email to android-beginners@googlegroups.com
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] I can't update my app in the android market

2009-12-13 Thread ryan alford
Sadly, no.  There is nothing you can do.  I was in this same situation.  You
will have to release the update as a new application.

You can learn from this.  Sign up for an online storage site and keep a copy
of it there.  I use DropBox because its free.

On Dec 11, 2009 7:07 AM, [^MiSaTo^] misato...@gmail.com wrote:

Hi all,

I'd like to upload a new version of my droidChat to the android market
but when i press update, it sais i've signed the apk with a diferent
key than the one is in the market.
I've lost the other keystore because i've changed the PC and i can't
access to the previous one.
I've also asked google help with no response about this issue.

Is there any way to extract the previous key from the old apk and then
sign the new one with that key? What can I do?

Thanks in advance

--
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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.
To post to this group, send email to android-beginners@googlegroups.com
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] AICOM ITS - Information Technology Solutions

2009-12-13 Thread The AllSetter
AICOM ITS has successfully served various industries and business
sectors by delivering quality and cost-effective custom software
development and infrastructure projects. By subscribing to industry
standards like ISO 9000, CMMi, and Six Sigma processes, we leverage on
our technical know-how and project management expertise to provide
exceptional end-to-end solutions delivered on budget and on time.

Proven Development Methodologies
Certified Quality Processes
Certified I.T. Professionals
Online Collaborative Project Management
Industry-specific Templates
Intellectual Property Protection
Guaranteed 24/7 Support and Maintenance

Our Services:

Custom Web-based Application Development and Integration
Application Management and Support
Web Services
Legacy Systems Migration
Full Systems Development Life Cycle Support which includes:
Project Assessment and Scoping
System Analysis, Design and Architecture
Application Development and Construction
Integration and Quality Testing
Post-project Maintenance and Support

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] I can't update my app in the android market

2009-12-13 Thread TreKing
Yeah, unfortunately you're SOL. This happened to me when I tried my very
first update and had to re-publish as a new app with a new package name.
Fortunately it was the free version of my app and only the first update so I
didn't have a huge install base. I did not make the same mistake with the
paid version. Then I would have been *screwed*. Good luck.

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


On Fri, Dec 11, 2009 at 9:16 AM, Justin Anderson janderson@gmail.comwrote:

 * I'd like to upload a new version of my droidChat to the android market
  but when i press update, it sais i've signed the apk with a diferent
  key than the one is in the market.
  I've lost the other keystore because i've changed the PC and i can't
  access to the previous one.
 *
 I believe I have read somewhere that once you sign an application and
 publish it with a specific keystore you MUST use the same keystore for other
 updates.  Unfortunately I think the only option is to release the update as
 a new application (put a note in the old one telling customers to get the
 new one instead).


 * Is there any way to extract the previous key from the old apk and then
  sign the new one with that key? What can I do?*

 I should certainly hope not!  That would throw security right out the
 window...

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



 On Fri, Dec 11, 2009 at 5:07 AM, [^MiSaTo^] misato...@gmail.com wrote:

 Hi all,

 I'd like to upload a new version of my droidChat to the android market
 but when i press update, it sais i've signed the apk with a diferent
 key than the one is in the market.
 I've lost the other keystore because i've changed the PC and i can't
 access to the previous one.
 I've also asked google help with no response about this issue.

 Is there any way to extract the previous key from the old apk and then
 sign the new one with that key? What can I do?

 Thanks in advance

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 To post to this group, send email to android-beginners@googlegroups.com
 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.
 To post to this group, send email to android-beginners@googlegroups.com
 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.
To post to this group, send email to android-beginners@googlegroups.com
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: Need follow-me map-example code

2009-12-13 Thread cellurl
thanks, will do
-jim


On Dec 10, 11:42 am, TreKing treking...@gmail.com wrote:
 Have you looked at the Hello,
 MapViewhttp://developer.android.com/intl/zh-CN/guide/tutorials/views/hello-m...
 and / or 
 MyLocationOverlahttp://code.google.com/android/add-ons/google-apis/reference/index.html
 y?

 -
 TreKing - Chicago transit tracking app for Android-powered 
 deviceshttp://sites.google.com/site/rezmobileapps/treking

 On Wed, Dec 9, 2009 at 6:56 PM, cellurl gpscru...@gmail.com wrote:
  Q: Are there any example map apps in the 2.0 SDK?

  I have the 1.5-SDK and all the jetboy tutorials and such which are
  fantastic examples.

  What I need is a map that uses GPS to show where I am at all times...
  Eg it automagically follows me using GPS.

  Thanks
  jim

  --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.
  To post to this group, send email to android-beginners@googlegroups.com
  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.
To post to this group, send email to android-beginners@googlegroups.com
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] Play Video from file?

2009-12-13 Thread Valentino XM
little help, please...

simply would like to insert video into the VideoView widget,  using
mp4 located on my local HD. I am stuck in what should be fairly
straight forward. (according to the developers page)  never written
any code before now., jumpin in at the D.E.  at this for  3 straight
days.. and still not sure. im Using Java Ecllipse and Android 2.1
API.

appreciate all help to put me on the right path.

cheers


package info.shouraig.com;

import android.app.Activity;
import android.content.res.AssetFileDescriptor;
import android.os.Bundle;
import android.widget.VideoView;

public class XSO4 extends Activity {
VideoView XSO4;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

AssetFileDescriptor afd = getResources().openRawResourceFd
(R.raw.XSCycling.mp4);

// Create a new media player and set the listeners
MediaPlayer = new MediaPlayer();

mMediaPlayer.setDataSource(afd.getFileDescriptor(),
afd.getStartOffset(), afd.getLength());

VideoView video = (VideoView) this.findViewById(R.id.VideoXSO4);



Uri uri = Uri.parse(android.resource://info.shouraig.com/ +
R.raw.XSCycling.mp4);
video.setVideoURI(uri);
video.setMediaController(new MediaController(this));
video.requestFocus();
video.setOnCompletionListener(this);
video.start();


}
}

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Version of SQLite on Android 1.5-2.0.1

2009-12-13 Thread geekatron
I have executed sqlite3 via the shell on AVD instances running
1.5-2.0.1 as well as images 1.5-1.6 for the the Dev Phone and they all
return 'SQLite version 3.5.9'.
Can anyone verify that the SQLite version on Android 1.5-2.0.1 is
version 3.5.9?

Cheers!

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Parsing a JSONArray from a different object

2009-12-13 Thread Vorik
Hi,

I'm trying to access a public JSONArray variable from another object:

Snippets from the planner object:

public JSONArray plannedItems;


String result = queryRESTurl(url);

try{
JSONObject json = new JSONObject(result);
JSONArray nameArray = json.names();
if (json.toJSONArray(nameArray).length()  0) {
plannedItems = json.toJSONArray(nameArray);
return true;
} else {
Log.i(refreshPlanner, The json array was empty.);
return false;
}
}

The actual JSON response:
{acts:1,id:184424,descr:bed: lakens afdoen,start_minute:
1371,end_minute:1395,picto:images\/pictos\/bed afdoen.png}

How can I loop through or access these results? I prefer to use it as
a hash.

As said, I am accessing the plannedItems variable from a different
object.

I've googled around for it, but only am getting some examples that I
cannot get working.

This is what I came up with; unfortunately it makes the app crash
horribly:

   private void PopulatePlanner() {
if (plan.plannedItems.length()  0) {
TextView descr = (TextView)findViewById
(R.id.ActivityDescription);
try {
descr.setText(plan.plannedItems.getString(2));
} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}

Thanks,
Ger

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: SMS receiver

2009-12-13 Thread vishnu
Hi,
Did u set permission for receiving SMS in your manifest .xml...
and check out dis link:
http://mobiforge.com/developing/story/sms-messaging-android
hope dis helpscheers

On Dec 7, 4:43 pm, Maurizio Bellemo maurizio.bell...@gmail.com
wrote:
 Hi all,

 I am trying to develop an application to detect incoming SMS and view the
 result in a list. I was trying to use the example I found 
 onhttp://www.anddev.org/recognize-react_on_incoming_sms-t295.html, but it
 seems not to work, at least with 2.0 SDK.

 The problem seems to be this

                     *SmsMessage[] messages =

 Telephony.Sms.Intents.getMessagesFromIntent(intent);*

 It says that there is no method like this present.

 Any suggestion would be really welcome!

 Thanks
 Bye

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Using AlarmManager for more than one alarm

2009-12-13 Thread Adam Olsen
Take, for example, the built in Alarm application.  You are able to
set multiple alarms in it, and the phone will wake up for each of them
to alert you.

In a situation like that, I imagine the PendingIntent for each alarm
would look very similar:

Intent intent = new Intent(this, AlarmReceiver.class);
PendingIntent pendingIntent = PendingIntent.getBroadcast(context,
REQUEST_CODE, intent, 0);

AlarmManager alarmManager = (AlarmManager) getSystemService
(ALARM_SERVICE);
alarmManager.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() +
(5 * 1000), sender);

If you wanted to set up multiple alarms, though, the PendingIntent
created here would need to be different, because AlarmManager.set()
will just replace the previous alarm if the PendingIntents are equal.

How can you create a PendingIntent in this manner that will not be
equal to the one you previously used?

Adam

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Keeping a background Service running after the main Activity closes

2009-12-13 Thread Adam Olsen
The documentation states that a Service started with startService()
will continue running until stopService() or stopSelf() is called,
however, I'm having trouble with this.

I've got a Timer and a TimerTask running in my background Service.
It's running repeatedly.  After closing my main Activity, the Timer
keeps running for a few minutes, but then it seems to pause until I
reopen the main activity and it rebinds to the service.

The documentation also mentions returning the START_STICKY flag from
the onStartCommand method, and though this seems like what I want,
it's not available in Android 1.6.

What do I need to do to keep the background task running
indefinitely?

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Intent for first time GPRS(Data) connection

2009-12-13 Thread jayalal jayarathna
Hi,
I need to run a service just after GPRS connected for the first time.
Service suppose to download some application for device. Therefor it
need to run once, just after GPRS connected for the first time. Give
me some Ideas how to do that
Thanks
JJ

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Basic SMS

2009-12-13 Thread jmccarthy
There are a couple things I'm not sure how to do.

1.  How can I read incoming or recieved SMS messages?  I don't see an
intent listed for 'sms received' or anything of the like.  Or do I
have to read an SMS database/content somewhere?  Seems like this
should be fairly simple.

2.  I want to know if I can make the phone think it recieved an SMS --
Can I say, have an app write an sms and broadcast it to the phone,
which would then take it in its native SMS app as if it received it
OTA?

Really appreciate any help with this, or insight in how SMS access
works.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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 configure a proxy server in android SDK 2.0

2009-12-13 Thread João Sousa
Hi guys,

I can't use my company's proxy server in the android SDK 2.0 emulator.
I tried the -http-proxy option in the eclipse's project configuration
but i can't seem to make it work.

Any ideias?

Thanks,

Joao

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Where can I get android icons

2009-12-13 Thread deesat
Where can I get the icons that look like a plus sign ( to add a
contact) and the icon that looks like a tool and hammer set (  for
settings)?
Are these icons available for download ?

Thanks
Deesat

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Trouble getting my program to load onto emulator

2009-12-13 Thread fubz
I followed the instructions to setup Eclipse to develop with Android.
Then I wrote up the Hello World provided in the tutorials.

When I run my program in eclipse it says it installs successfully.

when i run adb logcat i get the following:

D/AndroidRuntime(  197):  AndroidRuntime START

D/AndroidRuntime(  197): CheckJNI is ON
D/AndroidRuntime(  197): --- registering native functions ---
D/ddm-heap(  197): Got feature list request
D/PackageParser(   52): Scanning package: /data/app/vmdl70822.tmp
I/PackageManager(   52): Removing non-system
package:us.fubz.androidtest
D/PackageManager(   52): Removing package us.fubz.androidtest
D/PackageManager(   52): Scanning package us.fubz.androidtest
I/PackageManager(   52): /data/app/vmdl70822.tmp changed; unpacking
D/installd(   32): DexInv: --- BEGIN '/data/app/vmdl70822.tmp' ---
D/dalvikvm(  203): DexOpt: load 28ms, verify 28ms, opt 2ms
D/installd(   32): DexInv: --- END '/data/app/vmdl70822.tmp' (success)
---
D/ActivityManager(   52): Uninstalling process us.fubz.androidtest
I/installd(   32): move /data/dalvik-cache/
d...@app@vmdl70822@classes.dex -
 /data/dalvik-cache/d...@app@us.fubz.androidtest@classes.dex
D/PackageManager(   52): New package installed in /data/app/
us.fubz.androidtest.
apk
D/AndroidRuntime(  197): Shutting down VM
D/dalvikvm(  197): DestroyJavaVM waiting for non-daemon threads to
exit
D/dalvikvm(  197): DestroyJavaVM shutting VM down
D/dalvikvm(  197): HeapWorker thread shutting down
D/dalvikvm(  197): HeapWorker thread has shut down
D/jdwp(  197): JDWP shutting down net...
I/dalvikvm(  197): Debugger has detached; object registry had 1
entries
D/dalvikvm(  197): VM cleaning up
D/ActivityManager(   52): Uninstalling process us.fubz.androidtest
D/dalvikvm(  197): LinearAlloc 0x0 used 621260 of 5242880 (11%)
E/AndroidRuntime(  197): ERROR: thread attach failed
W/ResourceType(   52): Resources don't contain package for resource
number 0x7f0
6
D/dalvikvm(   52): GC freed 9044 objects / 547936 bytes in 124ms
I/ActivityManager(   52): Start proc com.svox.pico for broadcast
com.svox.pico/.
VoiceDataInstallerReceiver: pid=207 uid=10018 gids={}
W/ResourceType(   52): Resources don't contain package for resource
number 0x7f0
60001
D/ddm-heap(  207): Got feature list request
D/dalvikvm(   30): GC freed 277 objects / 10624 bytes in 425ms
W/ResourceType(   52): Resources don't contain package for resource
number 0x7f0
6
D/dalvikvm(   30): GC freed 45 objects / 2016 bytes in 200ms
W/ResourceType(   52): Resources don't contain package for resource
number 0x7f0
60001
D/dalvikvm(   30): GC freed 2 objects / 48 bytes in 127ms

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Code obfuscator

2009-12-13 Thread SoftwareEngCam
Hi,

 I am reading the Publishing section of the Developers Guide. Does
anyone know of a code obfuscator for Android Applications ?

thanks,
-Cam

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] adb push ..... system/lib

2009-12-13 Thread Ryan Beesley
You need a non-retail device for something like that. ADP1 or ADP2.  It may be 
possible to root that device, I don't know, but this is the sort of reason the 
developers use ADP devices.

/Ryan

-Original Message-
From: android-beginners@googlegroups.com 
[mailto:android-beginn...@googlegroups.com] On Behalf Of Zlate87
Sent: Thursday, December 10, 2009 5:36 PM
To: Android Beginners
Subject: [android-beginners] adb push . system/lib

Hi,

I'm trying to install voice search to my t-mobile pulse.

However I run in to a problem, I need to run this command adb push C:
\libspeech.so system/lib, but I get error: read-only file system.

I read that adb remount will help, but when I run it, I get this
error: operation not permitted.

I also read that adb root will help, but when I run it, I get this
error: adbd cannot run as root in production builds.

I have enabled USB debugging in Settings-Applications- Development.

Can someone please help me?

Thanks in advance :)

Regards,
Zlatko Stamatov

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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.
To post to this group, send email to android-beginners@googlegroups.com
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: Using Google Maps API for a navigational app

2009-12-13 Thread Marc
I am in the process of starting a navigation app as well.  I have been
looking in to the API's as well. I do not think the premier has much
to do with it. From there web site this is what premier gives you
extra:

A robust Service Level Agreement (SLA)
Customer support
Increased geocoding limits
Commercial-grade terms and conditions
Intranet application support within the enterprise
Access to the API via a secure https connection

I have not found any navigation api's. I was hoping to find an api
that would return driving directions between 2 spots. But I found no
such api. I am thinking that it needs to be done with a combination of
accessing web pages and parsing them, the static maps api, and intents
in to the google nav app.



On Dec 10, 6:36 am, Chris Janota mx123...@gmail.com wrote:
 Does anybody know if you require Google Maps api PREMIER to create a
 Android navigational app?  I understand you must use Premier instead
 of the free Google Maps api if you are charging a fee for use.    But
 i have requested info on Premier so i can get the pricing structure
 and never receive a response.  Any navigational app developers
 experience this?

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] GK: How to recognize Left touch dragging and Right touch dragging(Scrolling) in Android?

2009-12-13 Thread Ganesh Ram
Hi All,
  I displayed set of images inside the Gallery. By default it has
scrolling.

But I don’t want this way of scrolling. So I implemented
“OnTouchListener” it has only OnTouch() method.

Now I want to implement the same left and right scrolling(Left and
right dragging) in my own.

How to do this? If you have any idea plz share it.

Tnx 4rEver!!

Cheers,
Ganesh

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Andorid Set a new QUICK_LAUNCH in android.provider.Settings

2009-12-13 Thread Ts
I am trying to figure out how, if its even possible, to assign a new
quick launch key programmaticly.

To do it manually its Menu - Settings - Applications - Quick Launch

But I would like to have a button where users can set it within my
app.

Thanks to anyone of helps at all. Spent hours searching.

Some info:
http://developer.android.com/reference/android/provider/Settings.html

http://gitorious.org/rowboat/packages-apps-settings/blobs/master/src/com/android/settings/quicklaunch/QuickLaunchSettings.java

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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 just upgrade from 1.5 to 1.6?

2009-12-13 Thread Eduardo Luis
Hi,

I just a bought a brand new HTC Magic from Vodafone Portugal. This one
brings the 1.5 version.
How can I OFFICIALY upgrade to 1.6? Not unlock. Just upgrade.

Thanks.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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 2.0 - Dim screen programmatically

2009-12-13 Thread eclipsed4utoo
I am wanting to dim the screen of a device from a widget.  Basically
the same way the Power Manager widget for Android 2.0 does.  I have
tried this...


Settings.System.putInt(context.getContentResolver(),
Settings.System.SCREEN_BRIGHTNESS, someIntValue);



I have this that works from an application window


WindowManager.LayoutParams lp = getWindow().getAttributes();
lp.screenBrightness = (float) (someIntValue/ 255.0);
getWindow().setAttributes(lp);


But this doesn't work from the widget.  Any idea on how to dim the
screen from a widget?

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] open archive file

2009-12-13 Thread abitk
hey,
i downloaded an android project from
http://sites.google.com/site/learncodesnow/Home/android/contact

i'm trying to open the project through eclipse but getting a lot of
errors

can someone explain to me how to open and activate the project?

(i have tje sdk and the emulator)

thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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 the emulator

2009-12-13 Thread José Évora
Hello All!

I have been programming a bit in Android, and I was doing some tests.
And well, now I see in the emulator, when I finish some execution of a
APP that it's comes to write = all the time (I don't know why). So
It tries to search it on the net, and that's the second problem. It
before this error it was be able to connect and show pages on the
emulator, but now NO, it's the wifi turn off and the 3g too. So I
don't know what I have done but I want to take back to the first
state. Even I have tried to use the WebViews, but I think they are
giving me a error because it doesn't have connection.

Finally, I have tried to reinstall the SDK 2.0.1 but it has not
worked. Thank you all!

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Browser geolocation API not working in emulator (v2.01)

2009-12-13 Thread LCID Fire
I'm trying to test a mobile browser app in the Android emulator. When
I try to access functions of navigator.geolocation the browser throws
an internal exception.

D/LocationManager(  196): Constructor: service =
android.location.ilocationmanager$stub$pr...@43c28c88
E/LocationManagerService(   52): requestUpdates got exception:
E/LocationManagerService(   52): java.lang.IllegalArgumentException:
provider=network
E/LocationManagerService(   52):at
com.android.server.LocationManagerService.requestLocationUpdatesLocked
(LocationManagerService.java:861)
E/LocationManagerService(   52):at
com.android.server.LocationManagerService.requestLocationUpdates
(LocationManagerService.java:831)
E/LocationManagerService(   52):at android.location.ILocationManager
$Stub.onTransact(ILocationManager.java:79)
E/LocationManagerService(   52):at android.os.Binder.execTransact
(Binder.java:287)
E/LocationManagerService(   52):at dalvik.system.NativeStart.run
(Native Method)

It seems like for some reason the network location provider is not
registered by default. How does one fix this error?

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Sharing data between Activity and a BroadcastReceiver

2009-12-13 Thread Johnny
Hi everybody,

I followed this tutorial( 
http://mobiforge.com/developing/story/sms-messaging-android
) and i figured out how to send and receive SMS messages, but what i
need is to receive the message and put it as a text of a  label that
belong to my main activity... there a way to give this string to my
main activity?

Thanks

Johnny

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: Dial a number with ending #, the trailing # got dropped

2009-12-13 Thread peng xu
我是一个..的女孩,前几天,我去上晚自习回家,被一辆大卡车撞死了,司机将我的尸体抛入了路径边的小河里,然后逃走了,你看见了这条消息后,请发给5
个论坛,如果没有发,你的妈妈回在一个月后被车撞死,你的爸爸会得绝症,如果照着上面做了,在5天后,你喜欢的人也会喜欢你,这条消息太毒了,我不得不
发, 对不起。
对不起..

On Dec 12, 3:00 am, sherry syang...@gmail.com wrote:
 Hi:

 In the following code I was trying to auto dial:

 Intent intent = new Intent( Intent.ACTION_CALL, 
 Uri.parse(tel:
 + **76*1234567890*#));
 activity.startActivity( intent );

 the dial screen come up but the number it actually dialed is
 **76*1234567890*. Where is my trailing #?

 Thanks for your help!

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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 media sever died

2009-12-13 Thread NogarD
suddenly my G1 can't play any media files ,which can be played very
well before,such as mp3,mp4,3gp. I'm sure the media file format is
correct,because even the .3gp files recorded by G1 itself can't be
played! And i use many players ,none of them can work well. when i use
act1 video player,there is a message:The Android media sever
died.you need to restart the application or reboot your device! but
when i reboot, it steel doesn't work... i have no idea,who can help
me?

G1 , no SPL , cm4.2.7.1-geesunmod ,  RA-Dream-Recovery 1.3.2.

I'm a chinese,i'm sorry my english is bad,may be you couldn't
understand my english :)

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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 media sever died

2009-12-13 Thread NogarD
suddenly my G1 can't play any media files ,which can be played very
well before,such as mp3,mp4,3gp. I'm sure the media file format is
correct,because even the .3gp files recorded by G1 itself can't be
played! And i use many players ,none of them can work well. when i use
act1 video player,there is a message:The Android media sever
died.you need to restart the application or reboot your device! but
when i reboot, it steel doesn't work... i have no idea,who can help
me?

G1 , no SPL , cm4.2.7.1-geesunmod ,  RA-Dream-Recovery 1.3.2.

I'm a chinese,i'm sorry my english is bad,may be you couldn't
understand my english :)

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: Android Best Practices

2009-12-13 Thread Marc
Here is my take on it:
An activity is a self contained thing, like a mini program. You don't
pass complex data structures between activities. All the data that
goes to/from an Activity gets passes through an intent. An activity
can be called from another program through an intent. So an activity
is a self contained thing and a View is just something you can see.

If 2 pieces of a program are very tightly bound in that they share
some internal data and/or each part of the program can not logically
be instantiated by itself then it is not a new activity just a new
view.

Examples:
A database of car maintaince records might have a few reports that it
displays and a enter a new record screen. In this case the enter
new record screen and the reports could in theory get instantiated
outside the context of the rest of the program and therefore would be
a good candidate for separate activities.

A 3d modeling/editing program that lets you open windows that allow
you to edit some of the 3d model data. Since the 3d model data is kept
in memory and the edit screen is only editing a small piece of it, and
the edit screen makes no sense outside the context model screen. This
would be best done with separate views.

This thing of having your program broken up in to mini programs
(activities) that are callable by other programs is really new to me,
but the more i understand it the more I realize it is a really
powerful thing to be able to integrate parts of other programs in to
my own.




On Dec 10, 4:50 pm, Kanizares dkai...@vivalamobile.com wrote:
 Yes, same question from me. I currently am building an app that has
 certain repetitive screens (e.g. drill-down through lists of items).
 Is a ViewFlipper or multiple Activities the better way to go?

 cheers
 Kanizares

 On Nov 10, 4:26 pm, jphani...@gmail.com jphani...@gmail.com wrote:



  I have a question with respect to best practices in android? Which one
  is more efficient? A ViewFlipper to go through multiple defined
  layouts or have an activity for each layout and one main layout.
  Please let me know if my question is not clear.

  Thanks
  Phani

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Just trying to capture screenshots

2009-12-13 Thread Rob
I followed all instructions, but when I get to the point of double
clicking the ddms.bat file, I see the command prompt pop up and then
nothing. I have tried running as an admin with the same results. What
am I doing wrong?

Notes:
I have downloaded and updated android sdk
I have downloaded and installed java_ee_sdk-5_08-jdk-6u17-windows

Sorry if this is posted under something else, but I only got one
result for ddms

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Invalid View object passed to onListItemClick()?

2009-12-13 Thread Eus
HiHo!

When I click on an item in the ListView, the background color that gets
changed is not that of the clicked item but instead of the other item in
the opposite side relative to the middle item:

1 -- I click here
2
3 -- Acts as a mirror
4
5 -- This is the one that gets changed

1
2 -- This is the one that gets changed
3 -- Acts as a mirror
4 -- I click here
5

I am aware that of this post:
http://groups.google.com/group/android-beginners/browse_thread/thread/7372b92dfa50ee33/f806641a8aeafa72

But, this problem persists even when I use CheckedTextView like what is 
suggested in the post.

I use the latest stable SDK. The target platform is Android 1.6 (API
level 4).

The simple problematic code can be found here:
http://www.mediafire.com/?sharekey=6dd15ff25c627a277432d3c9683f450acd7138973b42b69438538f5672f1b9df

There I also put the screenshots showing the problem:
demo01.png: I click an item.
demo02.png: the clicked item doesn't get changed but the reflective item
does.

-- 
Best regards,
Eus (FSF member #4445)

In this digital era, where computing technology is pervasive, your
freedom depends on the software controlling those computing devices.

Join free software movement today! It is free as in freedom, not as in
free beer!

Join: http://www.fsf.org/jf?referrer=4445


  

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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 do I use getSharedPreferences on a non-visual class?

2009-12-13 Thread DrLaban
Hi!

I'm a beginner at Android but have coded a bit of Java before.

I'm trying to figure out how I'm supposed to instantiate and use a
class that does not contain any visual elements, but holds a lot of
functions for processing data.
My main activity, on either a button click or by pressing the back-
button, shall call functions in another class, which is void of visual
elements, that takes care of data processing.
I like to keep my classes logically separated and this non-visual
class can and will be used by other classes later throughout the
application.

I have hit a few speed bumps on the road and I now need some help. I
have two issues;

Preface:
I have two classes. One called textfields that contains a view of a
bunch of textfields and a button. This is an Activity-class.
I also have a non-visual class logic that contains all the functions
I need for logic handling of data and values. This is, in my mind, a
non-Activity based class (though I might be wrong).
These classes use getSharedPreferences to store and fetch values from
time to time. I am also going to extend my application to make real
good use of the stored values, but I need to start somewhere. :)

1:
Now, for instance, in my Activity textfields I instantiate my visual-
less class called logic at the onCreate() event.
When the onPause() event fires in textfields, I call a function in
the logic-class.
The logic class reads values stored in getSharedPreferences. Here, I
get a NullPointerException when executing getSharedPreferences within
the logic-class. I'm extending the logic-class with Activity, in
order to be able to use the getSharedPreferences-function at all. Why
am I getting a NullPointerException and how should I solve the
problem?

2:
I have no constructor in the logic-class as it has been stated on a
few occasions that we instead should use onCreate(), onResume(), etc.
I can't figure out when any of these events fire when I'm not using a
class containing an Activity. I have tried to override and use super
to chain the events, but nothing I do calls either onCreate, onResume
or whichever event when I from textfields instantiate logic.
Logic doesn't seem to be running onCreate() or onResume() as a class
'usually' does. When I want to use a non-visual class, what is the
better way of doing this? I also need access to getSharedPreferences.

Thank you for your time, I'm appreciating any help I can get.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Invalid View object passed to onListItemClick()?

2009-12-13 Thread Eus
HiHo!

When I click on an item in the ListView, the background color that gets
changed is not that of the clicked item but instead of the other item in
the opposite side relative to the middle item:

1 -- I click here
2
3 -- Acts as a mirror
4
5 -- This is the one that gets changed

1
2 -- This is the one that gets changed
3 -- Acts as a mirror
4 -- I click here
5

I am aware that of this post:
http://groups.google.com/group/android-beginners/browse_thread/thread/7372b92dfa50ee33/f806641a8aeafa72

But, this problem persists even when I use CheckedTextView like what is 
suggested in the post.

I use the latest stable SDK. The target platform is Android 1.6 (API
level 4).

The simple problematic code can be found here:
http://www.mediafire.com/?sharekey=6dd15ff25c627a277432d3c9683f450acd7138973b42b69438538f5672f1b9df

There I also put the screenshots showing the problem:
demo01.png: I click an item.
demo02.png: the clicked item doesn't get changed but the reflective item
does.

-- 
Best regards,
Eus (FSF member #4445)

In this digital era, where computing technology is pervasive, your
freedom depends on the software controlling those computing devices.

Join free software movement today! It is free as in freedom, not as in
free beer!

Join: http://www.fsf.org/jf?referrer=4445

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Emulator Buzzing and Can't Shutdown

2009-12-13 Thread Jeff
I have created a project using ADT in Eclipse (created the Hello World
app). When I start the emulator, about halfway into the first boot
screen that displays the Android _ text, my laptop starts buzzing. I
don't think it's coming from the speakers, because nothing happens
when I mute, etc.

Also, when I try to close the emulator, it freezes hardcore. I
couldn't kill it it with Task Manager nor Process Explorer. I tried to
shutdown hoping Windows (XP SP3) would be able to handle it, but the
shutdown process would just hang, too. It would pop-up an End Now
dialog that also didn't work. I have to hold in the power button to
shut down the laptop. I've tried shutting down the emulator using the
power button, but it's stuck on the Power Off Shutting down...
screen.

Any ideas?

Eclipse Java EE IDE for Web Developers.
Build id: 20090920-1017

Android Development Tools   0.9.5.v200911191123-20404
Android SDK 2.0 and 2.0.1

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Do manually created sqlite databases get exported when an apk is built?

2009-12-13 Thread Joey Carson
I'm developing an android application for a class and I have to show
my professor for a grade. I can't seem to get adb to recognize the
phone, I've tried using USBDeview and uninstalling the drivers it says
it has. But nothing is working. I can use one of the dev phones at
school if worse comes to worse. I have created my application using
sqlite3 from the command line and run it on the emulator device. My
question is that since I manually created the databases, will they
exist when the application get's exported. I did not use the sqlhelper
classes to build anything and I hope this won't leave me without a
paddle. Any help is much appreciated.
10 hours ago - 4 days left to answer.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] RelativeLayout doesn't work as expected in a ListView container.

2009-12-13 Thread Jeremy
I'm working on a layout where I use a ListView with RelativeLayout
line items. The lineitems themselves are not displaying correctly.

The issue is that the txtVideoDuration TextView is drawn at the top of
the line item instead of the bottom. Because of this the txtVideoTitle
gets a height of 0. As you can see in the XML the txtVideoDuration is
supposed to be clamped to the bottom of the ListView.

My goal is to have the layout resemble the tutorial that google gave
me. Example: [http://android-developers.blogspot.com/2009/02/android-
layout-tricks-1.html][1]

I'm using Android 2.0.1. I've even plugged in the example layout with
out modification into the ListView and the same behavior happens.


?xml version=1.0 encoding=utf-8?
RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent
android:layout_height=?android:attr/listPreferredItemHeight
android:padding=6dip
ImageView
android:layout_width=wrap_content
android:layout_height=fill_parent
android:id=@+id/imgVideoThumbnail
android:layout_alignParentTop=true
android:layout_alignParentBottom=true
android:minHeight=64dip
android:layout_marginRight=6dip
android:src=@drawable/icon /
TextView
android:id=@+id/txtVideoDuration
android:layout_width=fill_parent
android:layout_height=26dip
android:layout_toRightOf=@+id/imgVideoThumbnail
android:layout_alignParentBottom=true
android:layout_alignParentRight=true
android:singleLine=true
android:ellipsize=marquee
android:text=0:00:00 /
TextView
android:id=@+id/txtVideoTitle
android:layout_width=fill_parent
android:layout_height=wrap_content
android:layout_toRightOf=@+id/imgVideoThumbnail
android:layout_alignParentRight=true
android:layout_alignParentTop=true
android:layout_above=@+id/txtVideoDuration
android:layout_alignWithParentIfMissing=true
android:gravity=center_vertical
android:text=[Title]
android:textColor=#FF /

/RelativeLayout


  [1]: 
http://android-developers.blogspot.com/2009/02/android-layout-tricks-1.html

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Can not build LatinIME code

2009-12-13 Thread Kỳ Nam
Hi

I got LatinIME source code at
http://android.git.kernel.org/?p=platform/packages/inputmethods/LatinIME.git;a=tree

In eclipse , the line :
import android.backup.BackupHelperAgent;
give android.backup cannot be resolved error

Where can I find android.backup package ?

Thank you

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] changing AVD cause android.content.res.Resources$NotFoundException

2009-12-13 Thread Thomas
Hello all,

I'm developpping an android application with eclipse and android
eclipse plugin, I was using a simple avd (version 1.6) without sd card
and all worked well (mean emulator launch and debug). But for sdcard
usage, I had to create a new avd 1.6 with sdcard, so I change my debug
configuration to use this new avd. The problem is when I debug, the
emulator is well launched, I had every time a
Resources.NotFoundException on the first line of code which use my
R.java file (even for a simple string)
It's like the codes in R.java aren't good, but I didn't change them.

If I return my debug configuration to the first avd 1.6 without sd
card, it works well again, even if I uninstall the application before.

Really don't understand...

Thanks in advance for your help

Thomas

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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 Dev Tools - Unsigned?

2009-12-13 Thread Luke Schlather
I'm trying to install the SDK on my machine, but as I'm installing
ADT, Eclipse gives me a warning that the ADK plugins contain unsigned
content. From the listing it looks like they are unsigned in their
entirety.

Is this correct? It seems a little odd that an application plugin
people will be using to sign their apps is itself unsigned.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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 error (1, -1)

2009-12-13 Thread Chuck
I am a new Android developer using Android Wireless Application
Development as my book. I am running through the first example where
I am using URI to obtain an mp3 file to playback through the media
player. For some reason the audio file isn't playing and I am getting
a media player error of (1, -1). I am running my example through the
emulator. Any idea what is wrong?

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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: Writing an app using android.speech.srec ... how to get to that code?

2009-12-13 Thread abnormative
Does anyone know what Android plans as a replacement for the
functionality of android.speech.srec? Not transcription like that
provided via the RecognizerIntent, but something that would allow us
to build apps with voice interfaces that let the user navigate the app
hands-free?

-Mark


On Oct 27, 7:20 am, DulcetTone dulcett...@gmail.com wrote:
 I understand the perils of using things outside the SDK, and can
 shoulder them for now.
 I have already downloaded an app from the Marketplace (Top Voice
 Control) that uses android.speech.srec
 Given that I see it is possible and understand why some might not care
 to do this, can someone tell me how it is accomplised?

 Thanks.  I continue to putter and was recently able to reduce some
 errors in my build by adding a jar from the AOSP to my SDK Java Path.
 I seem to be unable to find one that contains the srec items.

 tone

 My question remains:  how do I accomplish it?

 On Oct 27, 6:08 am, RichardC richard.crit...@googlemail.com wrote:

  If you are creating applications to distrubute via the market place
  then you have to use just use the documented/supported functionality
  from the Android SDK.

  As had been said repeatedly in these groups - if you get your code to
  work today using functionality NOT supported by the SDK there is NO
  guarantee that it will continue to work tomorrow.

  If you need to use the platform code then you will have to build your
  own device.

  --
  RichardC

  On Oct 26, 4:46 pm, DulcetTone dulcett...@gmail.com wrote:

   I have the Android open source tree, and can even build within it my
   own voice dialer, cribbed from the stock Google VoiceDialer.  However,
   my understanding is that doing it this way submerges my app within a
   firmware image, and it does not give me the means to throw its
   finished form onto (say) Android Market.

   How can I do this within an SDK environment?  I need access to classes
   that are apparently not a part of what is available to a purely SDK-
   crafted app.  Examples of what I cannot get to are:

   android.bluetooth.*
   android.os.SystemProperties
   android.speech.srec.*

   Do I code from the Android source and somehow extract my app from the
   firmware morass?
   Do I somehow tweak my Eclipse settings (e.g.: add a library or jar) to
   gain access to this from within an SDK installation?

   Thanks in advance for some explicit instruction.  Build environment
   set-up has always been the most challenging aspect of this work for
   me!

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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 EMail Client

2009-12-13 Thread SandVoiD
Could someone please tell me how I can get a copy of the email client
for a project I want to work on. I have windows and the only way I
have found is to use git/repo but I do not have linux system or mac.
Any help would be appreciated.

Thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Video From Youtube in Emulator Android 2.1 Eclipse Gallileo/ Unable to play video

2009-12-13 Thread Valentino XM
Hi!

having no luck with playback of video from source file, i thought id
try video from youtube... Emulator says it cannot play video.. So now
what?.. can anyone tell me aoubt this code below.

TIA.

cheers

package info.shouraig.com;

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

public class XSO5 extends Activity {
private static final String RTSP = http://www.youtube.com/watch?
v=8bmWwxixT0Y;
VideoView videoXSO5;

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

  //***VideoView to video element inside Multimedia.xml file

   VideoView videoView  = (VideoView)findViewById(R.id.videoXSO5);
   Log.v(videoXSO5, ***Video to Play::  + RTSP);
   MediaController mc = new MediaController(this);
   mc.setAnchorView(videoView);
   Uri video = Uri.parse(RTSP);
   videoView.setMediaController(mc);
   videoView.setVideoURI(video);
   videoView.start();

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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 helloandroid tutorial

2009-12-13 Thread AJ
I was wondering if you found out why do we see this error. I am having
this error too with Hello Android App.

--AJ



On Nov 24, 1:39 am, Qin XiaoYang qinxiaoy...@gmail.com wrote:
 Thanks for you help, in fact the application runs normally after force close
 the message box.
 I was just curious about why this error message appeared.

 On Tue, Nov 24, 2009 at 9:08 AM, Indicator Veritatis mej1...@yahoo.comwrote:



  I haven't seen that error message. But since the name of the
  application in the tutorial is certainly not Android Keyboard, you
  can safely force close it. My guess is that you should go ahead and do
  that, and then look for the application (Hello Android or
  HelloAndroid) you made during the build and run that.

  Normally, that application would run anyway, without waiting for you
  to start it. But that does not appear to be happening, since you are
  getting this other application in the way.

  But all this is only a guess. If you are lucky, after a little while
  you will see more knowledgeable answers in this thread.

  On Nov 22, 5:12 am, Qin XiaoYang qinxiaoy...@gmail.com wrote:
   Hi all,
   I met the following error message appared on the emulator screen.
    There's a big error message saying that 'Application Android Keyboard
  (in
   process com.android.inputmethod.latin) is not responding.' and asking
   whether i want to force close it or wait.
   Anybody knows why? Thanks.

  --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.
  To post to this group, send email to android-beginners@googlegroups.com
  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

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Build Path Errors

2009-12-13 Thread cdnyny
When I try and run the canonical HelloWorld app, I get the following
error right after trying to create the project: The project cannot be
built until build path errors are resolved. I tried Project/Clean and
the Window/Other Perspective/DDMS route, but to no avail. Closing and
restarting Eclipse did not solve the problem.

The SDK location is set as the folder that contains the platforms
sub-folder. I am running on XP, and have set the Target Name as
Android 2.0.1. I have tried deleting and redoing the entire procedure
a few times, but get this above error all the time. Any thoughts?

Thanks in advance.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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 Maps Api - No image displayed

2009-12-13 Thread Denis
Everyone thanks for responses. I've solved it myself - first of course
all those steps with Key obtaining and registration (be aware always
to direct Eclipse to right .keystore file!). My problem was here:

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=eatfind.stdpackage
  android:versionCode=1
  android:versionName=1.0

//*These 2 lines are required**

uses-permission
android:name=android.permission.ACCESS_COARSE_LOCATION /
uses-permission android:name=android.permission.INTERNET /

application android:icon=@drawable/icon android:label=@string/
app_name
uses-library android:name=com.google.android.maps/


 //***But I added also this one here and only after that it worked
(Don't what to change anything anymore (enough experiments for me -
development time;))

uses-permission android:name=android.permission.INTERNET /
activity android ..

On 11 дек, 05:12, Yousuf Syed yousuf.syed@gmail.com wrote:
 Do you have the right key generated

  com.google.android.maps.MapView
         android:id=@+id/mapview
         android:layout_width=fill_parent
         android:layout_height=fill_parent
         android:clickable=true
         android:apiKey=*Your Maps API Key*
     /

 step 1: create your key store by going to cmd_promt

 step 2: copy the key store and paste it 
 herehttp://code.google.com/android/maps-api-signup.html

 you will recieve your Maps API key . Place it in the code above. You
 will be able to see  the google mapview.

 For more details on how to visit this link 
 :http://code.google.com/android/add-ons/google-apis/mapkey.html

 regards,
 Yousuf.

 On Thu, Dec 10, 2009 at 1:15 PM, TreKing treking...@gmail.com wrote:
  Also make sure you have the internet permission in your manifest, otherwise
  the maps can't download the image tiles.

  -

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

  On Tue, Dec 8, 2009 at 11:06 AM, Denis 87elem...@gmail.com wrote:

  Hi, guys,

  It is interesting, but I have the same problem. I've found a guide to
  construct Google Maps-aware application (as simple as possible, just a
  map even without zoom...) and it doesn't work (Well, it works - shows
  me nice grey grid). The advice is always one - check API keys. But the
  key is correct, because another application (that is built-in MapsDemo
  in Eclipse) runs well using my key!

  Regards,
  Denis

  On 14 ноя, 21:27, Raphaël Piéroni raphaelpier...@gmail.com wrote:
   Thanks for the answer,

   Yes i am running in debug mode.

   But i think i did it right, as i gave the debug keystore fingerprint to
  the
   registration process.
   I have not performed yet the creation of a release keystore for wndows
  nor
   macosx.

   Regards,

   Raphaël

   2009/11/11 TreKing treking...@gmail.com

Looks like you're running in debug mode. Are you sure you're using the
debug key? If you tested a release version on your Mac it would
  explain why
it works there.

2009/11/10 Raphaël Piéroni raphaelpier...@gmail.com

Hi Folks,

Some updates,
I retried on mac osx JAVA6 (i was on winXP JAVA5) and it works fine.

I have 2 hypothesys on my problem :
- OS but i don't believe it
- Java version but i don't believe also

Raphaël

Le 10 novembre 2009 12:36, Raphaël Piéroni raphaelpier...@gmail.com
  a
écrit :

Hello folks,
In my map view i have NO image displayed.
I did get an apiKey from my keystore fingerprint.
I using the ant script that affirms to sign the apk with the same
keystore.
I have proper permissions and library usage.
But still I got no image.
If anyone has a clue for displaying the map in my simulator i will
  be
very happy.
Regards,
Raphaël
Extracts from the manifest :
?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android
  
  android:versionCode=1
  android:versionName=1.0
  *uses-permission android:name=android.permission.INTERNET /
  uses-permission
  android:name=android.permission.ACCESS_FINE_LOCATION
/
  uses-permission
android:name=android.permission.ACCESS_LOCATION_EXTRA_COMMANDS /
  uses-permission
android:name=android.permission.ACCESS_COARSE_LOCATION /*
  uses-sdk android:minSdkVersion=5 /
  application android:label=@string/application_name
  *uses-library android:name=com.google.android.maps /*
  activity android:name=InitializationActivity
android:label=@string/application_name
  intent-filter
  action android:name=android.intent.action.MAIN /
  category android:name=android.intent.category.LAUNCHER /
  /intent-filter
  /activity
  /application
/manifest

Extracts from the layout.xml

Re: [android-beginners] Invalid View object passed to onListItemClick()?

2009-12-13 Thread Liviu Ungureanu
Hi!
  I tested your code on my Hero and it work fine..No that error on Android
1.5!

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Where can I get android icons

2009-12-13 Thread Liviu Ungureanu
Hi!

 Try this link : http://e-lusion.com/design/greyscale

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Playing a Video from file

2009-12-13 Thread Yousuf Syed
I dont think you can place the video file in the raw folder. since there is
a limit of data that you can have in your raw folder.

try pushing it to the /sdcard/videofilename and add permissions for
read_owner_data, write_owner_data, write_external_storage.

I assume you know the procedure to push files to sdcard.

Regards,

Yousuf.

On Fri, Dec 11, 2009 at 7:10 AM, Valentino XM shourai...@gmail.com wrote:

 Help!

 code code code, playing a video from file.. using the video view
 widget. not at all successful. the developers page claims this is
 easy.. i beg to differ... for first time coders, very frutstrating..
 if you can help., please do.



 package info.shouraig.com;

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

 public class XSO3 extends Activity {
private static final String TAG = XSO3;
VideoView videoXSO3;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Log.d(TAG,onCreate started);


VideoView video = (VideoView) this.findViewById
 (R.id.VideoXSO3); my title

Uri uri = Uri.parse(//info.shouraig.com/ + R.raw.C:/
 XSCycling2.mp4); my video
video.setVideoURI(uri);
video.setMediaController(new VideoView(this));
video.requestFocus();
video.setOnCompletionListener(this);
video.start();



 }AssetFileDescriptor afd = getResources().openRawResourceFd
 (R.raw.video);

 // Create a new media player and set the listeners
 mMediaPlayer = new MediaPlayer();

 mMediaPlayer.setDataSource(afd.getFileDescriptor(),
 afd.getStartOffset(), afd.getLength());

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 To post to this group, send email to android-beginners@googlegroups.com
 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.
To post to this group, send email to android-beginners@googlegroups.com
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] Where can I get android icons

2009-12-13 Thread Yousuf Syed
Hi,

here are some as well.

http://www.screaming-penguin.com/info/android_drawables/android_drawables.html

Regards,

Yousuf.

On Sun, Dec 13, 2009 at 6:19 PM, Liviu Ungureanu smartli...@gmail.comwrote:

 Hi!

  Try this link : http://e-lusion.com/design/greyscale

  --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 To post to this group, send email to android-beginners@googlegroups.com
 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.
To post to this group, send email to android-beginners@googlegroups.com
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] Just trying to capture screenshots

2009-12-13 Thread Yousuf Syed
Hi,

From what I understand, you want to capture the screen shots of the
application that is either running on emulator or the device.

If so let the application start. Then in the eclipse do this.

Click on  the Window menu bar. -- open perspective--ddms

now the ddms will be there on your eclipse window like your java perspective
or Debug perspective.

if your application is running you can capture screenshots by clicking on
the screen capture icon present in the device window.

hope this answers your question.

regards,

Yousuf.

On Sat, Dec 12, 2009 at 11:23 AM, Rob slackat...@gmail.com wrote:

 I followed all instructions, but when I get to the point of double
 clicking the ddms.bat file, I see the command prompt pop up and then
 nothing. I have tried running as an admin with the same results. What
 am I doing wrong?

 Notes:
 I have downloaded and updated android sdk
 I have downloaded and installed java_ee_sdk-5_08-jdk-6u17-windows

 Sorry if this is posted under something else, but I only got one
 result for ddms

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 To post to this group, send email to android-beginners@googlegroups.com
 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.
To post to this group, send email to android-beginners@googlegroups.com
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] Just trying to capture screenshots

2009-12-13 Thread Xavier Ducrohet
It looks like ddms fails to run. Best is to not double click on it but
to launch it from a command prompt so that you can see the error
message.

On Sat, Dec 12, 2009 at 8:23 AM, Rob slackat...@gmail.com wrote:
 I followed all instructions, but when I get to the point of double
 clicking the ddms.bat file, I see the command prompt pop up and then
 nothing. I have tried running as an admin with the same results. What
 am I doing wrong?

 Notes:
 I have downloaded and updated android sdk
 I have downloaded and installed java_ee_sdk-5_08-jdk-6u17-windows

 Sorry if this is posted under something else, but I only got one
 result for ddms

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.
 To post to this group, send email to android-beginners@googlegroups.com
 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




-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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] Observing User inactivity time and broadcasting intent after timeout

2009-12-13 Thread swapnil kamble
Hi,
   As in android, after inactvity of screen off timeout, android screen goes
off. So here android itself uses some activity observer, to know whether
user is currently active or not. I need not every keystroke or touch event
with details, just knowing that user is active and getting a
broadcastreceiver after some timeout value. Does anybody know something
related to activity observing ? I got the code from in frameworks where it
broadcast, but I am still figuring out code in android that monitors user
activity.

Need not be an app restricted, I am open to modify code frameworks too.

Thanks in advance,
Swapnil

|| Hare Krishna Hare Krishna Krishna Krishna Hare Hare ||
|| Hare RamaHare Rama   Rama   RamaHare Hare ||

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
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