Re: [android-developers] Re: Search dialog and searching within the same activity

2011-04-22 Thread Danny Schimke
Perfect, I read most parts of the search dialog documentation but I have not
seen this very important part for me.

Now it works like I wanted. Thanks a lot! Now I am really happy!

-Danny Schimke

2011/4/22 Nikolay Elenkov nikolay.elen...@gmail.com

 On Fri, Apr 22, 2011 at 5:14 PM, Danny S. danny.schi...@googlemail.com
 wrote:
  Hi Spiral,
 
  with search dialog I mean the search bar that came up at the top of
  the current activity if it is searchable when the user hits the device
  search button. The user hits this button then onSearchRequested() of
  my map activity will be called. I use startSearch(). Don't forget, the
  map activity is searchable so it is instantiated new and onCreate()
  will be called. But this is not the same activity where the search was
  requestet, its a new instance.

 Make your map activity singleTop.


 http://developer.android.com/guide/topics/search/search-dialog.html#LifeCycle

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: about gps

2010-12-15 Thread Danny Schimke
Hi ;-)

Have you activated GPS on your Emulator. By default network is enabled but
GPS not. Check this preferences on your phone. Network seems to work exactly
thats why.

ACCESS_FINE_LOCATION is for GPS usage (getLastKnownLocation(gps))
ACCESS_COARSE_LOCATION is for Network usage
(getLastKnownLocation(network))

Hope it is the sulution!
-Danny Schimke

2010/12/15 Android rajuma...@gmail.com

 Am facing the same problem , can you tell me how did you solve this
 problem...



 On Nov 24, 6:22 am, Leon Li l...@leonstrip.com wrote:
  thanks ip332 and Dan:
  i have found answer.
  Listener must be created,beacuse getBestKnownLocation() is just for
  gettinggpsimmediately,so it is agps,not realgps.
 
  On Wed, Nov 24, 2010 at 4:45 AM, Dan dan.schm...@gmail.com wrote:
   On Nov 23, 2:28 am, Leon Li l...@leonstrip.com wrote:
   hi all:
   i use Location location=manager.getLastKnownLocation(gps) to get
   realgps,but it allways returnnull,and i walk around outside office
   long time.
   but if i use network,it work.
 
   dose anyone else know what is wrong?
 
   Do you have both
 
  uses-permission
   android:name=android.permission.ACCESS_COARSE_LOCATION/uses-
   permission
  uses-permission
   android:name=android.permission.ACCESS_FINE_LOCATION/uses-
   permission
 
   in your manifest?  When you started your app did you answer the
   dialog saying it's ok to usegps?  Is the
 
   settings-locationsecurity-UseGPSsatellites
 
   checkbox checked on the phone?  If all those are true/positive, we
   might
   need to see more code.
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] LocationListener's onLocationChanged() is not called (geo fix)

2010-12-14 Thread Danny Schimke
Hi,

I have a Service that will run in Background even if the application is
closed. I started the service and I can see it in the running services
section under application settings. I am using *geo fix* to tell the
emulator location changes. Every time I change the location there is an OK
e.g.: geo fix -37.0625 95.67706*OK *but onLocationChanged() is never called.
The same if I tried using DDMS view in eclipse to update location. I checked
the system location preferences and network location is enabled (I only need
network application changes, no GPS). Permissions are set in
AndroidManifest.xml.

I can not figure out why it does not work... here is some code:

public class MyService extends Service {

private static final String TAG = MyService;
 private LocationManager locationMgr;
private LocationListener locListener;

// This method is called
@Override
public void onCreate() {
super.onCreate();
Log.d(TAG, onCreate);
locationMgr = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
locListener = new LocationListener() {
// ...
// other methods here
// ...
@Override
public void onLocationChanged(Location location) {
// never called
Log.d(TAG, onLocationChanged);
// some code here...
}
};
locationMgr.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0,
locListener);
}

// This method is called
@Override
public void onStart(Intent intent, int startId) {
super.onStart(intent, startId);
Log.d(TAG, onStart);
Toast.makeText(getApplicationContext(), Service started successfully.
Listening in Background for location changes., Toast.LENGTH_LONG).show();
}

I started the service from an activity:

serviceIntent = new Intent(this, MyService.class);
...
startService(serviceIntent);

Does anybody knows why it does not work? Hope someone can help.
Thank you very much in advance!

-Danny Schimke

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: LocationListener's onLocationChanged() is not called (geo fix)

2010-12-14 Thread Danny Schimke
Hi,

I changed LocationManager.NETWORK_PROVIDER to LocationManager.GPS_PROVIDER
and now onLocationChanged() is called. But I cant explain why?! I configured
the proxy correctly and I am able to call websites from browser and load
Google Map in my application.

Anyone know why it does not work? Permission is set in AndroidManifest, so
this can't be the issue.

Thanks a lot!
-Danny Schimke

2010/12/14 Danny Schimke danny.schi...@googlemail.com

 Hi,

 I have a Service that will run in Background even if the application is
 closed. I started the service and I can see it in the running services
 section under application settings. I am using *geo fix* to tell the
 emulator location changes. Every time I change the location there is an OK
 e.g.: geo fix -37.0625 95.67706*OK *but onLocationChanged() is never
 called. The same if I tried using DDMS view in eclipse to update location. I
 checked the system location preferences and network location is enabled (I
 only need network application changes, no GPS). Permissions are set in
 AndroidManifest.xml.

 I can not figure out why it does not work... here is some code:

 public class MyService extends Service {

 private static final String TAG = MyService;
  private LocationManager locationMgr;
 private LocationListener locListener;

 // This method is called
 @Override
 public void onCreate() {
  super.onCreate();
 Log.d(TAG, onCreate);
 locationMgr = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
  locListener = new LocationListener() {
 // ...
 // other methods here
  // ...
 @Override
 public void onLocationChanged(Location location) {
  // never called
 Log.d(TAG, onLocationChanged);
 // some code here...
  }
 };
 locationMgr.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0,
 locListener);
  }

 // This method is called
 @Override
  public void onStart(Intent intent, int startId) {
 super.onStart(intent, startId);
  Log.d(TAG, onStart);
 Toast.makeText(getApplicationContext(), Service started successfully.
 Listening in Background for location changes., Toast.LENGTH_LONG).show();
  }

 I started the service from an activity:

 serviceIntent = new Intent(this, MyService.class);
 ...
 startService(serviceIntent);

 Does anybody knows why it does not work? Hope someone can help.
 Thank you very much in advance!

 -Danny Schimke


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: LocationListener's onLocationChanged() is not called (geo fix)

2010-12-14 Thread Danny Schimke
How can I simulate changes in the network location and why does it not
changed, but GPS changed?

THX,
-Danny Schimke

2010/12/14 ip332 iprile...@gmail.com

 Because there were no changes in the network location.

 On Dec 14, 7:40 am, Danny Schimke danny.schi...@googlemail.com
 wrote:
  Hi,
 
  I changed LocationManager.NETWORK_PROVIDER to
 LocationManager.GPS_PROVIDER
  and now onLocationChanged() is called. But I cant explain why?! I
 configured
  the proxy correctly and I am able to call websites from browser and load
  Google Map in my application.
 
  Anyone know why it does not work? Permission is set in AndroidManifest,
 so
  this can't be the issue.
 
  Thanks a lot!
  -Danny Schimke
 
  2010/12/14 Danny Schimke danny.schi...@googlemail.com
 
 
 
 
 
 
 
   Hi,
 
   I have a Service that will run in Background even if the application is
   closed. I started the service and I can see it in the running
 services
   section under application settings. I am using *geo fix* to tell the
   emulator location changes. Every time I change the location there is an
 OK
   e.g.: geo fix -37.0625 95.67706*OK *but onLocationChanged() is never
   called. The same if I tried using DDMS view in eclipse to update
 location. I
   checked the system location preferences and network location is enabled
 (I
   only need network application changes, no GPS). Permissions are set in
   AndroidManifest.xml.
 
   I can not figure out why it does not work... here is some code:
 
   public class MyService extends Service {
 
   private static final String TAG = MyService;
private LocationManager locationMgr;
   private LocationListener locListener;
 
   // This method is called
   @Override
   public void onCreate() {
super.onCreate();
   Log.d(TAG, onCreate);
   locationMgr = (LocationManager)
 getSystemService(Context.LOCATION_SERVICE);
locListener = new LocationListener() {
   // ...
   // other methods here
// ...
   @Override
   public void onLocationChanged(Location location) {
// never called
   Log.d(TAG, onLocationChanged);
   // some code here...
}
   };
   locationMgr.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0,
 0,
   locListener);
}
 
   // This method is called
   @Override
public void onStart(Intent intent, int startId) {
   super.onStart(intent, startId);
Log.d(TAG, onStart);
   Toast.makeText(getApplicationContext(), Service started successfully.
   Listening in Background for location changes.,
 Toast.LENGTH_LONG).show();
}
 
   I started the service from an activity:
 
   serviceIntent = new Intent(this, MyService.class);
   ...
   startService(serviceIntent);
 
   Does anybody knows why it does not work? Hope someone can help.
   Thank you very much in advance!
 
   -Danny Schimke

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: LocationListener's onLocationChanged() is not called (geo fix)

2010-12-14 Thread Danny Schimke
Ah ok, I understand. So I'll use GPS indtead of network provider while I am
developing the application. @ip332 Thank you very much! Maybe another
question: how much differs the accurace of the gps to the network provider
(maybe about in meters)?

Thanks a lot!

-Danny Schimke

2010/12/14 ip332 iprile...@gmail.com

 You can't simulate position changes in the network on emulator unless
 you use a laptop with WiFi connection. But walking around with laptop
 in hands is not really a simulation either ;)

 I use GPS provider instead of Network for debugging.

 On Dec 14, 8:32 am, Danny Schimke danny.schi...@googlemail.com
 wrote:
  How can I simulate changes in the network location and why does it not
  changed, but GPS changed?
 
  THX,
  -Danny Schimke
 
  2010/12/14 ip332 iprile...@gmail.com
 
 
 
 
 
 
 
   Because there were no changes in the network location.
 
   On Dec 14, 7:40 am, Danny Schimke danny.schi...@googlemail.com
   wrote:
Hi,
 
I changed LocationManager.NETWORK_PROVIDER to
   LocationManager.GPS_PROVIDER
and now onLocationChanged() is called. But I cant explain why?! I
   configured
the proxy correctly and I am able to call websites from browser and
 load
Google Map in my application.
 
Anyone know why it does not work? Permission is set in
 AndroidManifest,
   so
this can't be the issue.
 
Thanks a lot!
-Danny Schimke
 
2010/12/14 Danny Schimke danny.schi...@googlemail.com
 
 Hi,
 
 I have a Service that will run in Background even if the
 application is
 closed. I started the service and I can see it in the running
   services
 section under application settings. I am using *geo fix* to tell
 the
 emulator location changes. Every time I change the location there
 is an
   OK
 e.g.: geo fix -37.0625 95.67706*OK *but onLocationChanged() is
 never
 called. The same if I tried using DDMS view in eclipse to update
   location. I
 checked the system location preferences and network location is
 enabled
   (I
 only need network application changes, no GPS). Permissions are set
 in
 AndroidManifest.xml.
 
 I can not figure out why it does not work... here is some code:
 
 public class MyService extends Service {
 
 private static final String TAG = MyService;
  private LocationManager locationMgr;
 private LocationListener locListener;
 
 // This method is called
 @Override
 public void onCreate() {
  super.onCreate();
 Log.d(TAG, onCreate);
 locationMgr = (LocationManager)
   getSystemService(Context.LOCATION_SERVICE);
  locListener = new LocationListener() {
 // ...
 // other methods here
  // ...
 @Override
 public void onLocationChanged(Location location) {
  // never called
 Log.d(TAG, onLocationChanged);
 // some code here...
  }
 };

 locationMgr.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0,
   0,
 locListener);
  }
 
 // This method is called
 @Override
  public void onStart(Intent intent, int startId) {
 super.onStart(intent, startId);
  Log.d(TAG, onStart);
 Toast.makeText(getApplicationContext(), Service started
 successfully.
 Listening in Background for location changes.,
   Toast.LENGTH_LONG).show();
  }
 
 I started the service from an activity:
 
 serviceIntent = new Intent(this, MyService.class);
 ...
 startService(serviceIntent);
 
 Does anybody knows why it does not work? Hope someone can help.
 Thank you very much in advance!
 
 -Danny Schimke
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Best way to store data in database

2010-12-08 Thread Danny Schimke
What is not working? Any concrete exceptions in debug view? Like Dan says we
need more information. Does a exception occur?

-Danny

2010/12/8 DanH danhi...@ieee.org

 You never compiled it?  Never executed it?

 (Some symptoms would be helpful.)

 On Dec 7, 9:35 am, nirav sabhaya niravsabh...@gmail.com wrote:
  BroadcastExample.java
  --
  package com.example.broadcast;
 
  import android.app.Activity;
  import android.content.Context;
  import android.os.Bundle;
  import android.telephony.*;
  import android.util.Log;
  import android.widget.TextView;
 
  public class BroadcastExaple extends Activity {
  TextView textOut;
  TelephonyManager telephonyManager;
  PhoneStateListener listener;
 
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
 
  try {
 
  super.onCreate(savedInstanceState);
 
  // Get the UI
  textOut = new TextView(this);
  textOut.setText(DEmoBroadCast);
  setContentView(textOut);
 
  // Get the telephony manager
  telephonyManager = (TelephonyManager)
  getSystemService(Context.TELEPHONY_SERVICE);
 
  // Register the listener wit the telephony manager
 
  telephonyManager.listen(listener,PhoneStateListener.LISTEN_CALL_STATE);
 
  // Create a new PhoneStateListener
  listener = new PhoneStateListener() {
 
  @Override
  public void onCallStateChanged(int state, String
  incomingNumber) {
  Log.d(DEBUG, Phone listener);
  String stateString = N/A;
  switch (state) {
  case TelephonyManager.CALL_STATE_IDLE:
  stateString = Idle;
  break;
  case TelephonyManager.CALL_STATE_OFFHOOK:
  stateString = Off Hook;
  break;
  case TelephonyManager.CALL_STATE_RINGING:
  stateString = Ringing;
  break;
  }
  textOut.append(String.format(\nonCallStateChanged:
 %s,
  stateString));
  }
  };
 
  } catch (Exception e) {
 
  }
 
  }
 
  }
 
  AndroidManifest.xml
  ---
  ?xml version=1.0 encoding=utf-8?
  manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=com.example.broadcast android:versionCode=1
  android:versionName=1.0
  application android:icon=@drawable/icon
  android:label=@string/app_name
  activity android:name=.BroadcastExaple
  android:label=@string/app_name
  intent-filter
  action android:name=android.intent.action.MAIN /
  category android:name=android.intent.category.LAUNCHER
 /
  /intent-filter
  /activity
  /application
  uses-prmission android:name=android.permission.READ_PHONE_STATE /
  uses-sdk android:minSdkVersion=7 /
  /manifest
 
  Anybody can indicate me why this code doesn't work..
 
  Thanks
 
  On Tue, Dec 7, 2010 at 7:35 PM, Kostya Vasilyev kmans...@gmail.com
 wrote:
   Danny,
 
   The values in R can change as you add and remove resources.
 
   I'd say store color names, or actual RGB values (and match them to
 names
   when need to present to the user).
 
   -- Kostya
 
   07.12.2010 16:56, Danny Schimke пишет:
 
Hi,
 
   I have 2 textual inputs that I saved to database, furthermore I have a
   spinner with color selection. Color names and color values both stored
 in
   the application resources. I want to save a color in the database, but
 what
   is the best way to do this in your mind? Should I save the resource
 id? I
   figured out, that the int value of the color resource is allways the
 same,
   e.g. when I delete the R file and let it recreate. I do not have the
   certainty that this is correct?!
 
   Or would you put colors in a seperate database table instead using
   resources for this? This seems to be a good way and the user is able
 to add
   own colors to the application.
 
   I don't know what is the best way to store this. What are your
   experiences?
 
   Thank you very much!
   -Danny Schimke
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Best way to store data in database

2010-12-08 Thread Danny Schimke
Yeah, that sounds correct. I was not shure that this is the problem, cause
its only a object reference but may something is done with the listener by
calling  telephonyManager.listen().

-Danny

2010/12/8 Kostya Vasilyev kmans...@gmail.com

  These two lines are backwards:


 telephonyManager.listen(listener,PhoneStateListener.LISTEN_CALL_STATE);

 listener = new PhoneStateListener() {

 The listener is still null when telephonyManager.listen() is called.

 Debugging or checking the  logcat would have shown this.

 Also, when your code crashes, adding a try/catch block that drops the
 exception on the floor (without logging) is not the best way to debug =-O

 -- Kostya

 08.12.2010 16:56, Danny Schimke пишет:

 What is not working? Any concrete exceptions in debug view? Like Dan says
 we need more information. Does a exception occur?

  -Danny

 2010/12/8 DanH danhi...@ieee.org

 You never compiled it?  Never executed it?

 (Some symptoms would be helpful.)

 On Dec 7, 9:35 am, nirav sabhaya niravsabh...@gmail.com wrote:
  BroadcastExample.java
  --
  package com.example.broadcast;
 
  import android.app.Activity;
  import android.content.Context;
  import android.os.Bundle;
  import android.telephony.*;
  import android.util.Log;
  import android.widget.TextView;
 
  public class BroadcastExaple extends Activity {
  TextView textOut;
  TelephonyManager telephonyManager;
  PhoneStateListener listener;
 
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
 
  try {
 
  super.onCreate(savedInstanceState);
 
  // Get the UI
  textOut = new TextView(this);
  textOut.setText(DEmoBroadCast);
  setContentView(textOut);
 
  // Get the telephony manager
  telephonyManager = (TelephonyManager)
  getSystemService(Context.TELEPHONY_SERVICE);
 
  // Register the listener wit the telephony manager
 
  telephonyManager.listen(listener,PhoneStateListener.LISTEN_CALL_STATE);
 
  // Create a new PhoneStateListener
  listener = new PhoneStateListener() {
 
  @Override
  public void onCallStateChanged(int state, String
  incomingNumber) {
  Log.d(DEBUG, Phone listener);
  String stateString = N/A;
  switch (state) {
  case TelephonyManager.CALL_STATE_IDLE:
  stateString = Idle;
  break;
  case TelephonyManager.CALL_STATE_OFFHOOK:
  stateString = Off Hook;
  break;
  case TelephonyManager.CALL_STATE_RINGING:
  stateString = Ringing;
  break;
  }
  textOut.append(String.format(\nonCallStateChanged:
 %s,
  stateString));
  }
  };
 
  } catch (Exception e) {
 
  }
 
  }
 
  }
 
  AndroidManifest.xml
  ---
  ?xml version=1.0 encoding=utf-8?
  manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=com.example.broadcast android:versionCode=1
  android:versionName=1.0
  application android:icon=@drawable/icon
  android:label=@string/app_name
  activity android:name=.BroadcastExaple
  android:label=@string/app_name
  intent-filter
  action android:name=android.intent.action.MAIN /
  category
 android:name=android.intent.category.LAUNCHER /
  /intent-filter
  /activity
  /application
  uses-prmission android:name=android.permission.READ_PHONE_STATE
 /
  uses-sdk android:minSdkVersion=7 /
  /manifest
 
  Anybody can indicate me why this code doesn't work..
 
  Thanks
 
On Tue, Dec 7, 2010 at 7:35 PM, Kostya Vasilyev kmans...@gmail.com
 wrote:
   Danny,
 
   The values in R can change as you add and remove resources.
 
   I'd say store color names, or actual RGB values (and match them to
 names
   when need to present to the user).
 
   -- Kostya
 
   07.12.2010 16:56, Danny Schimke пишет:
 
Hi,
 
   I have 2 textual inputs that I saved to database, furthermore I have
 a
   spinner with color selection. Color names and color values both
 stored in
   the application resources. I want to save a color in the database,
 but what
   is the best way to do this in your mind? Should I save the resource
 id? I
   figured out, that the int value of the color resource is allways the
 same,
   e.g. when I delete the R file and let it recreate. I do not have
 the
   certainty that this is correct?!
 
   Or would you put colors in a seperate database table instead using
   resources for this? This seems to be a good way

[android-developers] Best way to store data in database

2010-12-07 Thread Danny Schimke
Hi,

I have 2 textual inputs that I saved to database, furthermore I have a
spinner with color selection. Color names and color values both stored in
the application resources. I want to save a color in the database, but what
is the best way to do this in your mind? Should I save the resource id? I
figured out, that the int value of the color resource is allways the same,
e.g. when I delete the R file and let it recreate. I do not have the
certainty that this is correct?!

Or would you put colors in a seperate database table instead using resources
for this? This seems to be a good way and the user is able to add own colors
to the application.

I don't know what is the best way to store this. What are your experiences?

Thank you very much!
-Danny Schimke

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Best way to store data in database

2010-12-07 Thread Danny Schimke
The change of R was my guess too and the main reason why I asked here. Ahh,
ok, I understand, you would save color names or the code like #RRGGBB. But
what happens when I delete or change colors... Once a color is part of my
app i can't remove it, cause users who used them saved the code or name into
the database and then there is a problem...

What do you think about a separate database table? Not good?

Thank you!
-Danny Schimke

2010/12/7 Kostya Vasilyev kmans...@gmail.com

 Danny,

 The values in R can change as you add and remove resources.

 I'd say store color names, or actual RGB values (and match them to names
 when need to present to the user).

 -- Kostya

 07.12.2010 16:56, Danny Schimke пишет:

 Hi,

 I have 2 textual inputs that I saved to database, furthermore I have a
 spinner with color selection. Color names and color values both stored in
 the application resources. I want to save a color in the database, but what
 is the best way to do this in your mind? Should I save the resource id? I
 figured out, that the int value of the color resource is allways the same,
 e.g. when I delete the R file and let it recreate. I do not have the
 certainty that this is correct?!

 Or would you put colors in a seperate database table instead using
 resources for this? This seems to be a good way and the user is able to add
 own colors to the application.

 I don't know what is the best way to store this. What are your
 experiences?

 Thank you very much!
 -Danny Schimke
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



 --
 Kostya Vasilyev -- WiFi Manager + pretty widget --
 http://kmansoft.wordpress.com

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Customized Spinner and problems with its dropdown menu

2010-12-06 Thread Danny Schimke
Hi,

I googled a long time and still got no solution for my issue. I customized
my spinner view and the spinners dropdown menu. Within the spinner itself I
show a color representation and a simple text (I kicked some attributes to
save space in this post):

spinner_color_item.xml

 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
 View android:id=@+id/vColorCode /
 TextView android:id=@+id/tvColorName /
 /LinearLayout


My dropdown menu (one item element in the menu) looks like this:

?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
 View android:id=@+id/vColorCode  /
 TextView android:id=@+id/tvColorName /
 RadioButton android:id=@+id/rbChooseColor /
 /LinearLayout


Everything looks fine, the spinner is shown as expected and the dropdown
menu items look like I wanted. I am using a customized ArrayAdapter, for
models that look like:

public class ColorItem {
 private String colorName;
 private int colorValue;
 private boolean selected;
 public ColorItem() {
 }
 public ColorItem(String colorName, int colorValue) {
 this.colorName = colorName;
 this.colorValue = colorValue;
 }
 // some methods (getter and setter)
 }


The code within my onCreate method looks like:

spiColor = (Spinner) findViewById(R.id.spiGroupColor);

SpinnerColorAdapter colorAdapter = new SpinnerColorAdapter(this,
 android.R.layout.simple_spinner_item, prepareColorItems());
 spiColor.setAdapter(colorAdapter);
 OnItemSelectedListener l = new OnItemSelectedListener() {
 @Override
 public void onItemSelected(AdapterView? arg0, View view, int
 position, long id) {
 // never called. Why?!
 if (spinnerInitialized) {
 }
 spinnerInitialized = true;
 }
 @Override
 public void onNothingSelected(AdapterView? arg0) {
 }
 };
 spiColor.setOnItemSelectedListener(l);


I overwrote the getDropDownView method of my custom adapter. The view is
created successfully, how I defined in xml, but I want to close the dropdown
menu after selected one item, so I want to close it with clicking the
radiobutton of one item. Set the selection works very well, but I have to
exit the menu pressing escape in my emulator.

Hope someone can help, I need a way to close the dropdown menu
programatically. Does anybody have the same problem?

Thanks a lot!
-Danny Schimke

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Customized Spinner and problems with its dropdown menu

2010-12-06 Thread Danny Schimke
Hi poohtbear,

I have no android source and I am using windows as development platform. As
far as I read I am not able to get the source under windows?!

But based on your code I noticed, that the XML of my Spinner view and its
drop down XML are different. The drop down XML has an additional
RadioButton. If I use the same UI as I am using for my Spinner it works, but
it does not look very well... It seems the onClick() of the spinner is never
called. If I call performClick() when click on the RadioButton the drop down
menu opens again. A dismiss is not called, also when the drop down is shown.

Is there a way to use the default dropdown UI with radio buttons and fill it
up with custom view elements on the left side?

Thanks a lot!
-Danny Schimke

2010/12/6 poohtbear eyaltg...@gmail.com

 That's a bit strange.
 According to the code of spinner:
  @Override
public boolean performClick() {
boolean handled = super.performClick();

if (!handled) {
handled = true;
Context context = getContext();

final DropDownAdapter adapter = new
 DropDownAdapter(getAdapter());

AlertDialog.Builder builder = new
 AlertDialog.Builder(context);
if (mPrompt != null) {
builder.setTitle(mPrompt);
}
mPopup = builder.setSingleChoiceItems(adapter,
 getSelectedItemPosition(), this).show();
}

return handled;
}

public void onClick(DialogInterface dialog, int which) {
setSelection(which);
dialog.dismiss();
mPopup = null;
}

 if the AdapterView is not handling the performClick then a new alert
 dialog that derives it's views from your adapter is created, and the
 spinner is the onClick listener.
 So when you click an item is should have dismissed the dialog.

 do you have the source code to put break points and debug it ?
 On Dec 6, 11:13 am, Danny Schimke danny.schi...@googlemail.com
 wrote:
  Hi,
 
  I googled a long time and still got no solution for my issue. I
 customized
  my spinner view and the spinners dropdown menu. Within the spinner itself
 I
  show a color representation and a simple text (I kicked some attributes
 to
  save space in this post):
 
  spinner_color_item.xml
 
   ?xml version=1.0 encoding=utf-8?
   LinearLayout xmlns:android=
 http://schemas.android.com/apk/res/android;
   View android:id=@+id/vColorCode /
   TextView android:id=@+id/tvColorName /
   /LinearLayout
 
  My dropdown menu (one item element in the menu) looks like this:
 
  ?xml version=1.0 encoding=utf-8?
 
   LinearLayout xmlns:android=
 http://schemas.android.com/apk/res/android;
   View android:id=@+id/vColorCode  /
   TextView android:id=@+id/tvColorName /
   RadioButton android:id=@+id/rbChooseColor /
   /LinearLayout
 
  Everything looks fine, the spinner is shown as expected and the dropdown
  menu items look like I wanted. I am using a customized ArrayAdapter, for
  models that look like:
 
  public class ColorItem {
 
   private String colorName;
   private int colorValue;
   private boolean selected;
   public ColorItem() {
   }
   public ColorItem(String colorName, int colorValue) {
   this.colorName = colorName;
   this.colorValue = colorValue;
   }
   // some methods (getter and setter)
   }
 
  The code within my onCreate method looks like:
 
  spiColor = (Spinner) findViewById(R.id.spiGroupColor);
 
  SpinnerColorAdapter colorAdapter = new SpinnerColorAdapter(this,
 
 
 
   android.R.layout.simple_spinner_item, prepareColorItems());
   spiColor.setAdapter(colorAdapter);
   OnItemSelectedListener l = new OnItemSelectedListener() {
   @Override
   public void onItemSelected(AdapterView? arg0, View view, int
   position, long id) {
   // never called. Why?!
   if (spinnerInitialized) {
   }
   spinnerInitialized = true;
   }
   @Override
   public void onNothingSelected(AdapterView? arg0) {
   }
   };
   spiColor.setOnItemSelectedListener(l);
 
  I overwrote the getDropDownView method of my custom adapter. The view is
  created successfully, how I defined in xml, but I want to close the
 dropdown
  menu after selected one item, so I want to close it with clicking the
  radiobutton of one item. Set the selection works very well, but I have to
  exit the menu pressing escape in my emulator.
 
  Hope someone can help, I need a way to close the dropdown menu
  programatically. Does anybody have the same problem?
 
  Thanks a lot!
  -Danny Schimke

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http

Re: [android-developers] Re: Customized Spinner and problems with its dropdown menu

2010-12-06 Thread Danny Schimke
Hey poohtbear,

thank you very much, I am downloading the sources you prepared for version
2.2. Maybe I find out more... Can't estimate how long I need for this, but
I'll give response to this post asap. You are right, maybe I need to have a
look at the originally used layouts. I am really confused at the moment why
it does not work. If I replace the RadioButton with a TextView it works, but
RadioButton or CheckBox does not work. It seems they corrupt the
functionality of the item.

Thank you for helping me!
-Danny Schimke

2010/12/6 poohtbear eyaltg...@gmail.com

 i'm not sure regardin of why it doesn't call what it should.
 First of all you should know that the code including the layouts and
 resources of the SDK are available to you online here:http://
 android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=core/
 res/res;hb=donut-release2, this is a link to donut version resources.

 the drop down and the view supposed to be different, one is for the
 spinner itself, for the single item that is displayed, the other is
 for the items in the list one the spinner is 'opened'.
 I urge you to take a look on the theme.xml and styles.xml and layout
 directory to see which of the layouts is used originally in the
 Spinner class
 and try to build your layouts from there.
 I had in my blod a zip with the source for 1.6, 2.1 and 2.2 though you
 can still view them online i think i' can find the link:

 http://www.devfrustrated.com/devBlog/browsing-android-source-code-in-eclipse/
 in there in the end you got 3 zips, in most cases you can debug the
 code... in the evening i'll have some more time i might be able to
 look into it so you can send me the layouts :-)


 On Dec 6, 1:49 pm, Danny Schimke danny.schi...@googlemail.com wrote:
  Hi poohtbear,
 
  I have no android source and I am using windows as development platform.
 As
  far as I read I am not able to get the source under windows?!
 
  But based on your code I noticed, that the XML of my Spinner view and its
  drop down XML are different. The drop down XML has an additional
  RadioButton. If I use the same UI as I am using for my Spinner it works,
 but
  it does not look very well... It seems the onClick() of the spinner is
 never
  called. If I call performClick() when click on the RadioButton the drop
 down
  menu opens again. A dismiss is not called, also when the drop down is
 shown.
 
  Is there a way to use the default dropdown UI with radio buttons and fill
 it
  up with custom view elements on the left side?
 
  Thanks a lot!
  -Danny Schimke
 
  2010/12/6 poohtbear eyaltg...@gmail.com
 
   That's a bit strange.
   According to the code of spinner:
@Override
  public boolean performClick() {
  boolean handled = super.performClick();
 
  if (!handled) {
  handled = true;
  Context context = getContext();
 
  final DropDownAdapter adapter = new
   DropDownAdapter(getAdapter());
 
  AlertDialog.Builder builder = new
   AlertDialog.Builder(context);
  if (mPrompt != null) {
  builder.setTitle(mPrompt);
  }
  mPopup = builder.setSingleChoiceItems(adapter,
   getSelectedItemPosition(), this).show();
  }
 
  return handled;
  }
 
  public void onClick(DialogInterface dialog, int which) {
  setSelection(which);
  dialog.dismiss();
  mPopup = null;
  }
 
   if the AdapterView is not handling the performClick then a new alert
   dialog that derives it's views from your adapter is created, and the
   spinner is the onClick listener.
   So when you click an item is should have dismissed the dialog.
 
   do you have the source code to put break points and debug it ?
   On Dec 6, 11:13 am, Danny Schimke danny.schi...@googlemail.com
   wrote:
Hi,
 
I googled a long time and still got no solution for my issue. I
   customized
my spinner view and the spinners dropdown menu. Within the spinner
 itself
   I
show a color representation and a simple text (I kicked some
 attributes
   to
save space in this post):
 
spinner_color_item.xml
 
 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=
  http://schemas.android.com/apk/res/android;
 View android:id=@+id/vColorCode /
 TextView android:id=@+id/tvColorName /
 /LinearLayout
 
My dropdown menu (one item element in the menu) looks like this:
 
?xml version=1.0 encoding=utf-8?
 
 LinearLayout xmlns:android=
  http://schemas.android.com/apk/res/android;
 View android:id=@+id/vColorCode  /
 TextView android:id=@+id/tvColorName /
 RadioButton android:id=@+id/rbChooseColor /
 /LinearLayout
 
Everything looks fine, the spinner is shown as expected and the
 dropdown
menu items look like I wanted. I am using a customized ArrayAdapter,
 for
models that look like:
 
public class ColorItem {
 
 private String colorName

Re: [android-developers] http proxy

2010-12-06 Thread Danny Schimke
Hi,

like many others I have had the same issue and got no internet access
through proxy. I figured out the following solution:

Try out comment#39 from
http://code.google.com/p/android/issues/detail?id=5508
http://code.google.com/p/android/issues/detail?id=5508If you have proxy
dont use its DNS. Instead use the IP address.

Hope you'll get it ;-)
-Danny Schimke


2010/12/6 Satya Prasad ksprasa...@gmail.com

 Try in the following way.
 setprop net.gprs.http-proxy http://10.201.51.54:8080



 On Sat, Dec 4, 2010 at 8:13 PM, Seb sebastianthegreat...@gmail.comwrote:

 I'm trying to define a http proxy on my htc desire 2.2.

 I've tried using various apps from the market. None worked!
 I've tried using the adb shell, that is manually insert the proper
 values into the database. Didnt work either.
 Finally I tried to make my own app using
 Settings.System.putString(getContentResolver(),
 Settings.System.HTTP_PROXY, localhost:8080); which also seems to be
 ignored. (No exceptions was thrown)

 Can anyone tell me how to do this?


 best regards,
 Seb

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Customized Spinner and problems with its dropdown menu

2010-12-06 Thread Danny Schimke
Hi,

meanwhile I got help from someone other, he said:

hello,


 I remembered that I checked the source of android then,


 http://goo.gl/iLvvj


 I found that it use the CheckedTextView


 so you can use this either add image next to it or extend it to add more
 feature to TextView


 Do that help you?



there has been a long time since now, feel sorry if I depict anything
 wrong:(


tomorrow I will have a look at the sources to convince myself of the
solution. Like you said, poohtbear it is the right way to look how Google
does with it's implementation.

But now its really late, I am tired and try this tomorrow. I'll give
responses ;-)
Thanks you for further help!

-Danny Schimke

2010/12/6 Danny Schimke danny.schi...@googlemail.com

 Hey poohtbear,

 thank you very much, I am downloading the sources you prepared for version
 2.2. Maybe I find out more... Can't estimate how long I need for this, but
 I'll give response to this post asap. You are right, maybe I need to have a
 look at the originally used layouts. I am really confused at the moment why
 it does not work. If I replace the RadioButton with a TextView it works, but
 RadioButton or CheckBox does not work. It seems they corrupt the
 functionality of the item.

 Thank you for helping me!
 -Danny Schimke

 2010/12/6 poohtbear eyaltg...@gmail.com

 i'm not sure regardin of why it doesn't call what it should.
 First of all you should know that the code including the layouts and
 resources of the SDK are available to you online here:http://
 android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=core/
 res/res;hb=donut-release2http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=core/res/res;hb=donut-release2,
 this is a link to donut version resources.

 the drop down and the view supposed to be different, one is for the
 spinner itself, for the single item that is displayed, the other is
 for the items in the list one the spinner is 'opened'.
 I urge you to take a look on the theme.xml and styles.xml and layout
 directory to see which of the layouts is used originally in the
 Spinner class
 and try to build your layouts from there.
 I had in my blod a zip with the source for 1.6, 2.1 and 2.2 though you
 can still view them online i think i' can find the link:

 http://www.devfrustrated.com/devBlog/browsing-android-source-code-in-eclipse/
 in there in the end you got 3 zips, in most cases you can debug the
 code... in the evening i'll have some more time i might be able to
 look into it so you can send me the layouts :-)


 On Dec 6, 1:49 pm, Danny Schimke danny.schi...@googlemail.com wrote:
  Hi poohtbear,
 
  I have no android source and I am using windows as development platform.
 As
  far as I read I am not able to get the source under windows?!
 
  But based on your code I noticed, that the XML of my Spinner view and
 its
  drop down XML are different. The drop down XML has an additional
  RadioButton. If I use the same UI as I am using for my Spinner it works,
 but
  it does not look very well... It seems the onClick() of the spinner is
 never
  called. If I call performClick() when click on the RadioButton the drop
 down
  menu opens again. A dismiss is not called, also when the drop down is
 shown.
 
  Is there a way to use the default dropdown UI with radio buttons and
 fill it
  up with custom view elements on the left side?
 
  Thanks a lot!
  -Danny Schimke
 
  2010/12/6 poohtbear eyaltg...@gmail.com
 
   That's a bit strange.
   According to the code of spinner:
@Override
  public boolean performClick() {
  boolean handled = super.performClick();
 
  if (!handled) {
  handled = true;
  Context context = getContext();
 
  final DropDownAdapter adapter = new
   DropDownAdapter(getAdapter());
 
  AlertDialog.Builder builder = new
   AlertDialog.Builder(context);
  if (mPrompt != null) {
  builder.setTitle(mPrompt);
  }
  mPopup = builder.setSingleChoiceItems(adapter,
   getSelectedItemPosition(), this).show();
  }
 
  return handled;
  }
 
  public void onClick(DialogInterface dialog, int which) {
  setSelection(which);
  dialog.dismiss();
  mPopup = null;
  }
 
   if the AdapterView is not handling the performClick then a new alert
   dialog that derives it's views from your adapter is created, and the
   spinner is the onClick listener.
   So when you click an item is should have dismissed the dialog.
 
   do you have the source code to put break points and debug it ?
   On Dec 6, 11:13 am, Danny Schimke danny.schi...@googlemail.com
   wrote:
Hi,
 
I googled a long time and still got no solution for my issue. I
   customized
my spinner view and the spinners dropdown menu. Within the spinner
 itself
   I
show a color representation and a simple text (I kicked some
 attributes
   to
save space in this post

[android-developers] Re: Sending and reveiving mails in emulator

2010-07-13 Thread Danny Schimke
Hi,

I tried, but I am not able to get it to work. I don't used the Account
 sync options this time. I created a new device, checket whether I
have internet connection and started the Email app. I have to enter my
username and password. Then I have 2 Options: Next or Manual
Setup. If I choose Next the emulator is not able to connect to the
server. I tried Manual Setup, choosed IMAP and edited everything
correct (server: imap.gmail.com, SSL, port 995 - also tried using no
SSL). The app checks the incoming server settings for many seconds and
then the error Unable to open connection to server occurs.

I think it could be a bug/issue that should be fixed... I don't know:
should I give up or try to get it to work. But I think I've done my
steps correct. I can't believe that this is my fault...

Thank you very much!

-Danny Schimke

On Jul 12, 5:00 pm, Sean Hodges seanhodge...@googlemail.com wrote:
 Don't use the Accounts  sync settings to set up the Email app.
 Those settings are for the Google apps (GMail, Maps, Contacts, etc),
 not the Email app.

 Open the Email app and press the Menu button on your emulator, then
 select Account settings. The Server settings section is at the
 bottom of the list.

 On Mon, Jul 12, 2010 at 2:46 PM,DannySchimke

 danny.schi...@googlemail.com wrote:
  Hi,

  IMAP dont work too.

  I successfully added my Gmail account (Settings  Accounts  sync 
  Add Account) using server m.google.com. When I start the email app
  the specified Gmail account is used by it, but I have no chance to
  edit the Settings for using pop3 or imap (I can change the settings
  for incoming messages but it does not work, I have to use m.gmail.com
  without further information to keep the Email app using my account). I
  tried to send an message but the mail stays in the outgoing
  directory... I also cannot see my labels and (new) messages in the
  emulator.

  In the web I found no solution for this or a similar issue...

  I tried using SDK 7 and 8!

  -DannySchimke

  On Jul 12, 2:51 pm,DannySchimkedanny.schi...@googlemail.com
  wrote:
  Hi Sean,

  first: thank you for supporting me!

  Some information:
  In the Eclipse preferences and the Additional Emulator Command Line
  Options of my project I added the -http-proxyhttp://proxy:3128;
  property, because I'am behind a proxy.

  1. started the emulator device
  2. opened the web browser and try to go to http://www.ebay.de; for
  example - it worked
  3. opened Email app and entered email address and password for my
  Gmail account - clicked Manual setup
  4. selected POP3 as account type
  5. changed POP3 server to pop.gmail.com and changed security type to
  SSL (port 995)
  6. clicked Next to finish configuration of my mail account - got an
  error Setup could not finish - Unable to open connection to server

  When I returne to the browser and try to open a website it does not
  load... I have to restart the emulator to get (re)access to the
  internet. IMAP in my Google Mail is activated I'll try to configure
  via IMAP and give response ;-)

  Thanks,
  -DannySchimke

  On Jul 12, 12:09 pm, Sean Hodges seanhodge...@googlemail.com wrote:

   I'll take that as a BUMP :)

   Have you seen this 
   thread?http://www.mail-archive.com/android-port...@googlegroups.com/msg06255...

   How have you set up your GMail account in the Email app? IMAP? Can you
   connect to the Web OK using the emulator browser?

   On Mon, Jul 12, 2010 at 10:55 AM,DannySchimke

   danny.schi...@googlemail.com wrote:
No idea?

Thanks a lot!

-DannySchimke

On Jul 9, 8:38 am,DannySchimkedanny.schi...@googlemail.com wrote:
Hello,

I configured my gmail account successfully in the emulator. My goal is
to respond to incoming messages in the mail account from my own
application - for example display notification. I am using the
standard mail application that comes with the emulator. I tried to
receive mails from my account, but it does not work, there are no
conversations in the standard mail application. I can't send and
reveive messages from inside the emulator. Why?

Thank you very much!
-DannySchimke

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to 
android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you

[android-developers] Re: Sending and reveiving mails in emulator

2010-07-12 Thread Danny Schimke
No idea?

Thanks a lot!

-Danny Schimke

On Jul 9, 8:38 am, Danny Schimke danny.schi...@googlemail.com wrote:
 Hello,

 I configured my gmail account successfully in the emulator. My goal is
 to respond to incoming messages in the mail account from my own
 application - for example display notification. I am using the
 standard mail application that comes with the emulator. I tried to
 receive mails from my account, but it does not work, there are no
 conversations in the standard mail application. I can't send and
 reveive messages from inside the emulator. Why?

 Thank you very much!
 -DannySchimke

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Sending and reveiving mails in emulator

2010-07-12 Thread Danny Schimke
Hi Sean,

first: thank you for supporting me!

Some information:
In the Eclipse preferences and the Additional Emulator Command Line
Options of my project I added the -http-proxy http://proxy:3128;
property, because I'am behind a proxy.

1. started the emulator device
2. opened the web browser and try to go to http://www.ebay.de; for
example - it worked
3. opened Email app and entered email address and password for my
Gmail account - clicked Manual setup
4. selected POP3 as account type
5. changed POP3 server to pop.gmail.com and changed security type to
SSL (port 995)
6. clicked Next to finish configuration of my mail account - got an
error Setup could not finish - Unable to open connection to server

When I returne to the browser and try to open a website it does not
load... I have to restart the emulator to get (re)access to the
internet. IMAP in my Google Mail is activated I'll try to configure
via IMAP and give response ;-)

Thanks,
-Danny Schimke

On Jul 12, 12:09 pm, Sean Hodges seanhodge...@googlemail.com wrote:
 I'll take that as a BUMP :)

 Have you seen this 
 thread?http://www.mail-archive.com/android-port...@googlegroups.com/msg06255...

 How have you set up your GMail account in the Email app? IMAP? Can you
 connect to the Web OK using the emulator browser?

 On Mon, Jul 12, 2010 at 10:55 AM, Danny Schimke

 danny.schi...@googlemail.com wrote:
  No idea?

  Thanks a lot!

  -Danny Schimke

  On Jul 9, 8:38 am, Danny Schimke danny.schi...@googlemail.com wrote:
  Hello,

  I configured my gmail account successfully in the emulator. My goal is
  to respond to incoming messages in the mail account from my own
  application - for example display notification. I am using the
  standard mail application that comes with the emulator. I tried to
  receive mails from my account, but it does not work, there are no
  conversations in the standard mail application. I can't send and
  reveive messages from inside the emulator. Why?

  Thank you very much!
  -DannySchimke

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Sending and reveiving mails in emulator

2010-07-12 Thread Danny Schimke
Hi,

IMAP dont work too.

I successfully added my Gmail account (Settings  Accounts  sync 
Add Account) using server m.google.com. When I start the email app
the specified Gmail account is used by it, but I have no chance to
edit the Settings for using pop3 or imap (I can change the settings
for incoming messages but it does not work, I have to use m.gmail.com
without further information to keep the Email app using my account). I
tried to send an message but the mail stays in the outgoing
directory... I also cannot see my labels and (new) messages in the
emulator.

In the web I found no solution for this or a similar issue...

I tried using SDK 7 and 8!

-Danny Schimke

On Jul 12, 2:51 pm, Danny Schimke danny.schi...@googlemail.com
wrote:
 Hi Sean,

 first: thank you for supporting me!

 Some information:
 In the Eclipse preferences and the Additional Emulator Command Line
 Options of my project I added the -http-proxyhttp://proxy:3128;
 property, because I'am behind a proxy.

 1. started the emulator device
 2. opened the web browser and try to go to http://www.ebay.de; for
 example - it worked
 3. opened Email app and entered email address and password for my
 Gmail account - clicked Manual setup
 4. selected POP3 as account type
 5. changed POP3 server to pop.gmail.com and changed security type to
 SSL (port 995)
 6. clicked Next to finish configuration of my mail account - got an
 error Setup could not finish - Unable to open connection to server

 When I returne to the browser and try to open a website it does not
 load... I have to restart the emulator to get (re)access to the
 internet. IMAP in my Google Mail is activated I'll try to configure
 via IMAP and give response ;-)

 Thanks,
 -Danny Schimke

 On Jul 12, 12:09 pm, Sean Hodges seanhodge...@googlemail.com wrote:

  I'll take that as a BUMP :)

  Have you seen this 
  thread?http://www.mail-archive.com/android-port...@googlegroups.com/msg06255...

  How have you set up your GMail account in the Email app? IMAP? Can you
  connect to the Web OK using the emulator browser?

  On Mon, Jul 12, 2010 at 10:55 AM, Danny Schimke

  danny.schi...@googlemail.com wrote:
   No idea?

   Thanks a lot!

   -Danny Schimke

   On Jul 9, 8:38 am, Danny Schimke danny.schi...@googlemail.com wrote:
   Hello,

   I configured my gmail account successfully in the emulator. My goal is
   to respond to incoming messages in the mail account from my own
   application - for example display notification. I am using the
   standard mail application that comes with the emulator. I tried to
   receive mails from my account, but it does not work, there are no
   conversations in the standard mail application. I can't send and
   reveive messages from inside the emulator. Why?

   Thank you very much!
   -DannySchimke

   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Sending and reveiving mails in emulator

2010-07-09 Thread Danny Schimke
Hello,

I configured my gmail account successfully in the emulator. My goal is
to respond to incoming messages in the mail account from my own
application - for example display notification. I am using the
standard mail application that comes with the emulator. I tried to
receive mails from my account, but it does not work, there are no
conversations in the standard mail application. I can't send and
reveive messages from inside the emulator. Why?

Thank you very much!
-Danny Schimke

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Gmail access from android application

2010-06-03 Thread Danny Schimke
Hi,

I am a new android user and I decided to start learning about
developing Android apps.

I am searching for a way to access Gmail. My goal is to get unread
messages from labels and auto notificate the user. I have seen, there
is a Gmail.java class. But it's not part of current Android SDK, was
it part of a previous version and is depricated?

I've read you can use a ContentObserver for observe if the mail
database has changed, using the content://gmail-ls... uri. Is this
still a valid way?

Are there examples of open source apps which access Gmail to learn
from them, or some tutorials in the web?

Thank you very much!
-Danny Schimke

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to check new Google- mails archived to labels

2010-05-27 Thread Danny Schimke
Hi,

I am new to Android. I plan to check for new mails on Google Mail (GMail)
that are archived to their labels. Are there any examples that'll show how
to do this (Gmail API, etc.?)? I searched a lot but found no helpful
information about this, hope someone can help. What do I need?

Is there a way to check (with push) whether there are new mails in a label.
I think the standard Gmail Android app could not do this!?

Thank you very much!
-Danny Schimke

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en