[android-beginners] Re: what is shared user id,what's meaning of shared user id = android.media

2009-06-28 Thread deepdr...@googlemail.com

take a look at 
http://developer.android.com/guide/topics/security/security.html#userid

--
http://www.deepdroid.com


On Jun 25, 11:30 pm, wan wei alex.wan1...@gmail.com wrote:
 what is shared user id,what's meaning of shared user id =
 android.media
--~--~-~--~~~---~--~~
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: LED Alerts

2009-06-16 Thread deepdr...@googlemail.com

this works for me, in a BroadcastReceiver for an Alarm :

package com.deepdroid.app.onetask;

import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;

public class OneTaskAlarm extends BroadcastReceiver {

public static final int NOTIFICATION_ID = 1;

@Override
public void onReceive(Context context, Intent intent) {
SharedPreferences prefs = 
context.getSharedPreferences(OneTask,
Context.MODE_PRIVATE);
String taskText = prefs.getString(task, );
Notification n = new Notification(R.drawable.onetask_icon, 
taskText,
System.currentTimeMillis());
String expandedtitle = context.getString(R.string.one_task);
String expandedtext = context.getString(R.string.task) +   +
taskText;
intent = new Intent(context, OneTask.class);
PendingIntent sender = PendingIntent.getActivity(context, 0, 
intent,
0);
n.setLatestEventInfo(context, expandedtitle, expandedtext, 
sender);
n.defaults=Notification.DEFAULT_SOUND;
n.flags = Notification.FLAG_AUTO_CANCEL |
Notification.FLAG_SHOW_LIGHTS;
n.ledARGB = Color.GREEN;
n.ledOffMS = 400;
n.ledOnMS = 300;
NotificationManager nm = (NotificationManager)
context.getSystemService(Context.NOTIFICATION_SERVICE);
nm.notify(NOTIFICATION_ID, n);
}
}

--
http://www.deepdroid.com


On 16 Jun., 04:48, Beth Mezias emez...@gmail.com wrote:
 Hello good people,
 Has anybody got an LED notification from the notification manager working?
  I tried using a custom setup as well as using the DEFAULT_LIGHTS setting
 but I see nothing in the emulator nor on the device.  The log shows the
 method is executing the code inside my if.  Here's some code I tried:
      if (prefs.getBoolean(ctxt.getString(R.string.led), false)) {

      //notification.defaults |= Notification.DEFAULT_LIGHTS;
                 // when default did not work I tried these settings
      notification.ledARGB = 0xff00ff00;
      notification.ledOnMS = 3000;
      notification.ledOffMS = 1000;
      notification.flags |= Notification.FLAG_SHOW_LIGHTS;
                 }

 If you have it going can you send me a snippet with your working settings?

 Thanks and regards,
 Beth

 --

 W. C. Fields http://www.brainyquote.com/quotes/authors/w/w_c_fields.html
 - If I had to live my life over, I'd live over a saloon.
--~--~-~--~~~---~--~~
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: Hai

2009-06-15 Thread deepdr...@googlemail.com

SMS is a communication channel of the mobile GSM network.
Sockets are used for communication using the IP Internet Protocol.
These are two separate, different topics.

--
http://www.deepdroid.com


On 15 Jun., 06:56, Siva siva...@gmail.com wrote:
 Im new for this android how to communicate to each other via sms .
 using socket .Is there related example pls 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: How to search an application on Android Market?

2009-06-15 Thread deepdr...@googlemail.com

On the device itself you can search within the market application.
On the web you can search on http://www.cyrket.com .
As you already found out, android.com/market does not offer a search
function for apps in the market.

--
http://www.deepdroid.com



On 15 Jun., 14:57, yves yves5...@googlemail.com wrote:
 Hi,

 Is it possible to search the Android Market onhttp://www.android.com/market/?
 There is no search field??? I mean what if I know the name of an
 application and don't want to search for an hour?
--~--~-~--~~~---~--~~
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: File Browser on Android Phone

2009-06-15 Thread deepdr...@googlemail.com

You can downlaod a file manager application from the Android market
like for example Astro.
Be aware though that as long as your phone is not rooted you do not
have file access rights on some areas of the file system.

--
http://www.deepdroid.com


On 15 Jun., 14:58, yves yves5...@googlemail.com wrote:
 Hi,

 how can I browse the contents on my android phone without hooking it
 up to a computer. I mean an File Browser Android application

 Thanks in advance
 Yves
--~--~-~--~~~---~--~~
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: Screen pointer

2009-06-06 Thread deepdr...@googlemail.com

There is a video explaining how to build a DIY stylus that works with
capacitive touch screens over at

http://www.metacafe.com/watch/1322617/make_your_own_stylus_for_your_ipod_touch_iphone/

(should work for the G1 equally well as for the i-products)

--

http://www.deepdroid.com



On May 28, 12:58 pm, Rafa Perfeito rafa.perfe...@gmail.com wrote:
 Hey,
 Nobody likes the finger usability of Android more than me... But what if
 want some precisioning pointing? Some drawing in small areas, for example?
 Do you guys know any pointer or pen that works with android? Does it matter
 what we use to touch the screen?

 Give me your thoughts on this, please.
 Thanks
 Cheers

 --
 Cumprimentos,

 Hugo Rafael Augusto
--~--~-~--~~~---~--~~
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: memory problems

2009-04-17 Thread deepdr...@googlemail.com

Your code looks fine to me - as long as k isn't extraordinary large.
Even the buff = null; is not required.
Does exactly that code pose a problem?
I'd rather suspect a problem in that //do some stuff with buff[]
area.

--

http://www.deepdroid.com


On Apr 17, 10:33 pm, jj juanjosegilmen...@hotmail.com wrote:
 Hi

 I know this is more a java question, but I have been in many java
 forums, and the theory seems to contradict the real thing...

 I have a very simple function that creates memory, do something with
 it, and returns:

 static void test(int k)
 {
         byte [] buff = new byte[k];

         //do some stuff with  buff[]

         buff=null;

 }

 After a few calls to this function, it runs out memory
 In C++ I would use delete at the end, and here in java I've been told
 that GC takes care of it, but it seems that it does not
 Am I doing something wrong? how can I free this temp memory after I
 have used it?

 many 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] Re: Why does this give an error.

2009-04-16 Thread deepdr...@googlemail.com

Yes, sure, static can only be used in classes, not inside of
functions.
As static denotes a class variable in contrast to an instance
variable.
A variable declared static exists only once for all instances of one
class.
So leaving the static out gives it a different meaning too.

--

http://www.deepdroid.com


On Apr 16, 7:21 pm, Yusuf T. Mobile yusuf.s...@t-mobile.com wrote:
 I got the same illegal modifier for strSheikResp error from Eclipse
 when I put it inside a function, but no error when I put it inside a
 class but outside of a function.

         static final String[] strSheikResp = new String[]{open sesame};

 Where did you put the declaration?

 Yusuf Saib
 Android
 ·T· · ·Mobile· stick together
 The views, opinions and statements in this email are those of the
 author solely in their individual capacity, and do not necessarily
 represent those of T-Mobile USA, Inc.

 On Apr 15, 4:57 pm, fadden fad...@android.com wrote:

  On Apr 15, 4:37 pm, Kevin J. Brooks bear123434...@comcast.net
  wrote:

   I took out the key word static and fixed the problem.

  You now have a different string array in every instance of the class,
  instead of one for all instances of the class.

  How does Eclipse feel about:

      static final String[] strSheikResp = {test1, test2};

  ?
--~--~-~--~~~---~--~~
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: Why does this give an error.

2009-04-15 Thread deepdr...@googlemail.com

Does Eclipse show you that error? Or what compiler do you use? I do
not get any error from a line like

static final String[] strSheikResp = new String[]{test1, test2};

(assuming you do not mean the  literally)

--

http://www.deepdroid.com


On Apr 15, 2:15 am, Kevin J. Brooks bear123434...@comcast.net
wrote:
 This gives the following error illegal modifier for strSheikResp

 static final String[] strSheikResp = new String[]{};
--~--~-~--~~~---~--~~
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: Display Icons

2009-03-20 Thread deepdr...@googlemail.com

Each activity with
intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /
/intent-filter
in your AndroidManifest.xml will show up in the launcher.
So if you want to see only one icon for one activity in the launcher,
then only that one activity should have the quoted intent filter set.

--
http://www.deepdroid.com

On Mar 20, 12:09 am, moblmojo grantk...@hotmail.com wrote:
 How do you get only one icon to display in the main menu? All of
 my .java files have their own separate icon in the main menu. Is this
 because of the activity or the .java file, or what? They all use the
 same icon, although I have only specified it in the main application
 activity.

 Users can click a different icon and get into the activity without
 going through the main application menu.

 I want one icon displayed only, any 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] Re: Connecting via USB - how to use a computer's internet rather than wifi

2009-03-20 Thread deepdr...@googlemail.com

you do not get IP / internet connection via the USB cable.

--
http://www.deepdroid.com


On Mar 20, 1:29 pm, G g.white...@gmail.com wrote:
 Hi,

 Just curious if I am able to use a computer's Internet connection
 whilst connected via USB.  There is no wireless network, so my only
 option is to connect the phone to the computer to obtain a connection.

 If it is possible, my second question is:

 If I were to connect like this, how might I address a webserver
 running on the computer?  Using the emulator I would connect via
 10.0.2.2, but obviously this won't work once running on the phone, as
 the address is not correct for the usb - pc connection.

 I hope this makes sense!

 Regards,

 G
--~--~-~--~~~---~--~~
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: Calendar Intent?

2009-03-03 Thread deepdr...@googlemail.com

The calendar *is* present on my T-Mobile G1 and it cannot be removed.

http://www.deepdroid.com

On Mar 3, 4:55 pm, Azalar pte...@gmail.com wrote:
 Does anyone know the intent to launch the calendar?
 I understand a calendar might not be present on the launched phones
 (can someone confirm this?) but it is on the g1 dev phone so I am
 looking for a way to launch it.
--~--~-~--~~~---~--~~
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: gadget

2009-03-02 Thread deepdr...@googlemail.com

Hi Mr. No,

no, currently you can only use the given gadgets. You can not add more
3rd party or your own gadgets to the home screen.

http://www.deepdroid.com

On 2 Mrz., 11:35, Mr.No f.hi...@arcor.de wrote:
 Hello,
 it is possible to put your own app on the android desktop?
 like the googe searchbar on the desktop, if you switch the desktop to
 right?

 rgds
      Mr.No
--~--~-~--~~~---~--~~
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: The sit and wait tax

2009-02-02 Thread deepdr...@googlemail.com

Leave the emulator running, do not shut it down between test runs.
That should save you a couple seconds and works just fine.


On Feb 2, 9:20 am, frizzo rg...@vbrad.com wrote:
 I come from a background of developing desktop applications.  The time
 between pressing Run and testing your app is very insignificant.

 With Android, I press Run, then it takes its sweet time to bring up
 the emulator, then I have to press the Menu button to unlock the phone
 and then 5-10 seconds later my application finally comes up.

 Is there a way to speed this up, by maybe cutting out a few steps?
 Perhaps, somehow keep the emulator in standby mode or something.  I am
 new to Android (thus posting here) and maybe missing something
 massively obvious.  Otherwise I am just sitting around waiting
 twiddling my thumbs.

 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
-~--~~~~--~~--~--~---