[android-developers] active notifications

2010-08-10 Thread Engin Arslan
hi,

I am currently working on project in which users downloads sth and
program shows download progress as notification.
I am trying not to download file that is already downloading. Download
operatİons are operated  by threads so controllİng and checkİng actİve
threads seems harder: ınstead, checking ONGOING notifications seem
easy way. ıs there any possiblity of gettting all ongoing
notifications?

ı could not see any method related to notification manager

thanks

-- 
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: locale change does not affect menu

2010-07-28 Thread Engin Arslan
Hi,

i am not trying to fight with system. i am just trying to publish
application having multilanguage capability. so this should not be
fighting.
 Whatever,  http://adrianvintu.com/blogengine/post/Force-Locale-on-Android.aspx
in this link i have found alternative way of doing this. by this way
all texts changed proposed language, however there is still problem in
Menu even if i recreate menu after changing locale.

On Jul 27, 5:00 pm, RichardC richard.crit...@googlemail.com wrote:
 You have already asked this and got a - don't do this - reply from
 Dianne Hackborn.

 DH  You are blowing away the current configuration in the resources
 with your
 own you have created that is not initialized.  Things aren't going to
 work
 when you do that.

 You could improve that by giving it a properly created Configuration,
 but I
 don't want to help with doing that because what you are trying to do
 is
 never going to work quite right because you will be fighting with the
 platform over what configuration is being used in the resources. 

 See your previous 
 thread:http://groups.google.com/group/android-developers/browse_thread/threa...

 On Jul 27, 1:42 pm, Engin Arslan enginarsla...@gmail.com wrote:



  any ideas?

  On Jul 23, 3:17 pm, Engin Arslan enginarsla...@gmail.com wrote:

   Specifically,menulanguage changes to English (which is default
   language) when I try to changelocale. And then it does not change any
   other language

   On Jul 23, 2:18 pm, Engin Arslan enginarsla...@gmail.com wrote:

Hi all,

I am developing application in which user can choose application
language. To achieve this, I am changing Locale as follows:
               Localelocale= newLocale(language code here);
               Locale.setDefault(locale);
                Configuration config = new Configuration();
                config.locale=locale;
                
getBaseContext().getResources().updateConfiguration(config,
getResources().getDisplayMetrics());
and restart activity in following way:

setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
                                        
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR);
. This helps to change languagein runtime.
However , optionmenulanguage does not change , in factmenuchanges
if I close app completely and start again but does not change in
runtime. I even  have tried onPrepareOptionsMenu but it did not work?

What is the reason of this? or can you suggest me another possible
way?

Bests,

-- 
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: locale change does not affect menu

2010-07-28 Thread Engin Arslan
Richard,

no it is not what i am trying to do.
Suppose that I have an telephone which does not support Germany but i
want to develop application supporting many languages as well as
Germany . if the only way of changing language of application is
changing Locale from telephone settings , it is impossible to .
To summarize , i only want user to be able to choose my application
language using application's settings. I partially achieved this using
site that ı posted link. however, menu does not change when ı apply
that way

On Jul 28, 2:57 pm, RichardC richard.crit...@googlemail.com wrote:
 For multi-language apps you don't need to do any of this. Have a read
 of localization in the 
 docs:http://developer.android.com/guide/topics/resources/localization.html
 you will get the collect localized resources loaded automatically by
 the platform.

 If however you are trying to switch language/localein a running app,
 then as DH pointed out the platform does not support this.

 I have not looked into the platform code for lanuage/locale(s) but I
 suppect that Android has no concept of an applicaton onlylocaleonly
 systemlocale.  If I am correct then are you trying to change thelocalefor the 
 whole system?

 On Jul 28, 12:41 pm, Engin Arslan enginarsla...@gmail.com wrote:



  Hi,

  i am not trying to fight with system. i am just trying to publish
  application having multilanguage capability. so this should not be
  fighting.
   Whatever,  
  http://adrianvintu.com/blogengine/post/Force-Locale-on-Android.aspx
  in this link i have found alternative way of doing this. by this way
  all texts changed proposed language, however there is still problem in
  Menu even if i recreatemenuafter changinglocale.

  On Jul 27, 5:00 pm, RichardC richard.crit...@googlemail.com wrote:

   You have already asked this and got a - don't do this - reply from
   Dianne Hackborn.

   DH  You are blowing away the current configuration in the resources
   with your
   own you have created that is not initialized.  Things aren't going to
   work
   when you do that.

   You could improve that by giving it a properly created Configuration,
   but I
   don't want to help with doing that because what you are trying to do
   is
   never going to work quite right because you will be fighting with the
   platform over what configuration is being used in the resources. 

   See your previous 
   thread:http://groups.google.com/group/android-developers/browse_thread/threa...

   On Jul 27, 1:42 pm, Engin Arslan enginarsla...@gmail.com wrote:

any ideas?

On Jul 23, 3:17 pm, Engin Arslan enginarsla...@gmail.com wrote:

 Specifically,menulanguage changes to English (which is default
 language) when I try to changelocale. And then it does not change any
 other language

 On Jul 23, 2:18 pm, Engin Arslan enginarsla...@gmail.com wrote:

  Hi all,

  I am developing application in which user can choose application
  language. To achieve this, I am changing Locale as follows:
                 Localelocale= newLocale(language code here);
                 Locale.setDefault(locale);
                  Configuration config = new Configuration();
                  config.locale=locale;
                  
  getBaseContext().getResources().updateConfiguration(config,
  getResources().getDisplayMetrics());
  and restart activity in following way:

  setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
                                          
  setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR);
  . This helps to change languagein runtime.
  However , optionmenulanguage does not change , in factmenuchanges
  if I close app completely and start again but does not change in
  runtime. I even  have tried onPrepareOptionsMenu but it did not 
  work?

  What is the reason of this? or can you suggest me another possible
  way?

  Bests,

-- 
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: locale change does not affect menu

2010-07-27 Thread Engin Arslan
any ideas?

On Jul 23, 3:17 pm, Engin Arslan enginarsla...@gmail.com wrote:
 Specifically,menulanguage changes to English (which is default
 language) when I try to changelocale. And then it does not change any
 other language

 On Jul 23, 2:18 pm, Engin Arslan enginarsla...@gmail.com wrote:



  Hi all,

  I am developing application in which user can choose application
  language. To achieve this, I am changing Locale as follows:
                 Localelocale= newLocale(language code here);
                 Locale.setDefault(locale);
                  Configuration config = new Configuration();
                  config.locale=locale;
                  getBaseContext().getResources().updateConfiguration(config,
  getResources().getDisplayMetrics());
  and restart activity in following way:

  setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
                                          
  setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR);
  . This helps to change languagein runtime.
  However , optionmenulanguage does not change , in factmenuchanges
  if I close app completely and start again but does not change in
  runtime. I even  have tried onPrepareOptionsMenu but it did not work?

  What is the reason of this? or can you suggest me another possible
  way?

  Bests,

-- 
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: Resolution Problem in Nexus One

2010-07-23 Thread Engin Arslan
Dianne,
thanks for your help,

however, is there any possible way to specify  application language
rather than setting locale manually?

On Jul 23, 9:03 am, Dianne Hackborn hack...@android.com wrote:
 This has nothing to do with your manifest.

 You are blowing away the current configuration in the resources with your
 own you have created that is not initialized.  Things aren't going to work
 when you do that.

 You could improve that by giving it a properly created Configuration, but I
 don't want to help with doing that because what you are trying to do is
 never going to work quite right because you will be fighting with the
 platform over what configuration is being used in the resources.

 On Thu, Jul 22, 2010 at 10:57 PM, Engin Arslan enginarsla...@gmail.comwrote:





  Webnet,
  As I said in my question I tried following in my androidmanfest.xml
  but it did not work.
  supports-screens
  android:smallScreens=true
  android:normalScreens=true
  android:largeScreens=true
  android:anyDensity=true
  /

  I think problem is updating configuration as Dianne said however I do
  not alternative way of specifiying application language
  Can anyone suggest me better way?

  On Jul 21, 2:46 pm, Webnet Android webnet.andr...@gmail.com wrote:
   On 21 July 2010 13:24, Engin Arslan enginarsla...@gmail.com wrote:

any suggestions??

  http://adrianvintu.com/blogengine/post/Force-Locale-on-Android.aspx

  --
  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%2Bunsubs 
  cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

-- 
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] locale change does not affect menu

2010-07-23 Thread Engin Arslan
Hi all,

I am developing application in which user can choose application
language. To achieve this, I am changing Locale as follows:
Locale locale = new Locale(language code here);
Locale.setDefault(locale);
Configuration config = new Configuration();
config.locale = locale;
getBaseContext().getResources().updateConfiguration(config,
getResources().getDisplayMetrics());
and restart activity in following way:
 
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);

setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR);
. This helps to change languagein runtime.
However , option menu language does not change , in fact menu changes
if I close app completely and start again but does not change in
runtime. I even  have tried onPrepareOptionsMenu but it did not work?

What is the reason of this? or can you suggest me another possible
way?

Bests,

-- 
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: locale change does not affect menu

2010-07-23 Thread Engin Arslan
Specifically, menu language changes to English (which is default
language) when I try to change locale. And then it does not change any
other language

On Jul 23, 2:18 pm, Engin Arslan enginarsla...@gmail.com wrote:
 Hi all,

 I am developing application in which user can choose application
 language. To achieve this, I am changing Locale as follows:
                Localelocale= newLocale(language code here);
                Locale.setDefault(locale);
                 Configuration config = new Configuration();
                 config.locale=locale;
                 getBaseContext().getResources().updateConfiguration(config,
 getResources().getDisplayMetrics());
 and restart activity in following way:

 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
                                         
 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR);
 . This helps to change languagein runtime.
 However , optionmenulanguage does not change , in factmenuchanges
 if I close app completely and start again but does not change in
 runtime. I even  have tried onPrepareOptionsMenu but it did not work?

 What is the reason of this? or can you suggest me another possible
 way?

 Bests,

-- 
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: Resolution Problem in Nexus One

2010-07-22 Thread Engin Arslan
Webnet,
As I said in my question I tried following in my androidmanfest.xml
but it did not work.
supports-screens
android:smallScreens=true
android:normalScreens=true
android:largeScreens=true
android:anyDensity=true
/

I think problem is updating configuration as Dianne said however I do
not alternative way of specifiying application language
Can anyone suggest me better way?

On Jul 21, 2:46 pm, Webnet Android webnet.andr...@gmail.com wrote:
 On 21 July 2010 13:24, Engin Arslan enginarsla...@gmail.com wrote:

  any suggestions??

 http://adrianvintu.com/blogengine/post/Force-Locale-on-Android.aspx

-- 
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: Resolution Problem in Nexus One

2010-07-21 Thread Engin Arslan
any suggestions??

thanks

On Jun 29, 2:22 pm, Engin Arslan enginarsla...@gmail.com wrote:
 Hi all,

 In may application I support multi-language. For this purpose, I set
 locale as user choice as follows:
                         languageToLoad  = language code here;
                         Locale locale = new Locale(languageToLoad);
                         Locale.setDefault(locale);
                         Configuration config = new Configuration();
                         config.locale = locale;

 this.getResources().updateConfiguration(config,this.getResources().getDispl 
 ayMetrics());

 However , this locality set causesnexusoneresolutionproblem such
 that every thing gets smaller. Even if I set androidmanifest.xml
  supports-screens
          android:smallScreens=true
          android:normalScreens=true
          android:largeScreens=true
          android:anyDensity=true
          /
 it did not work. I have searched at the groups but cannot find any
 other solution.

-- 
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: Resolution Problem in Nexus One

2010-07-21 Thread Engin Arslan
Thanks Dianne,

How can I support multi language for my application instead of
changing Locale Configuration?
For example, is it possible to specify values folder to be used by the
program  to change language of program?


On Jul 21, 4:24 pm, Dianne Hackborn hack...@android.com wrote:
 Don't replace the current configuration with a new one you make and haven't
 initialized completely.

 Actually I would recommend not doing this at all; it is not really supported
 for the app to override the configuration, and even if you do fix this to
 use a proper Configuration object you are going to be fighting with the
 platform over this and we can't guarantee that you will continue to use the
 language you set for any time after setting it.

 On Wed, Jul 21, 2010 at 4:24 AM, Engin Arslan enginarsla...@gmail.comwrote:





  any suggestions??

  thanks

  On Jun 29, 2:22 pm, Engin Arslan enginarsla...@gmail.com wrote:
   Hi all,

   In may application I support multi-language. For this purpose, I set
   locale as user choice as follows:
                           languageToLoad  = language code here;
                           Locale locale = new Locale(languageToLoad);
                           Locale.setDefault(locale);
                           Configuration config = new Configuration();
                           config.locale = locale;

  this.getResources().updateConfiguration(config,this.getResources().getDispl
  ayMetrics());

   However , this locality set causesnexusoneresolutionproblem such
   that every thing gets smaller. Even if I set androidmanifest.xml
    supports-screens
            android:smallScreens=true
            android:normalScreens=true
            android:largeScreens=true
            android:anyDensity=true
            /
   it did not work. I have searched at the groups but cannot find any
   other solution.

  --
  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%2Bunsubs 
  cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

-- 
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] Resolution Problem

2010-06-29 Thread Engin Arslan
Hi all,

In may application I support multi-language. For this purpose, I set
locale as user choice as follows:
languageToLoad  = language code here;
Locale locale = new Locale(languageToLoad);
Locale.setDefault(locale);
Configuration config = new Configuration();
config.locale = locale;

this.getResources().updateConfiguration(config,this.getResources().getDisplayMetrics());

However , this locality set causes nexus one resolution problem such
that every thing gets smaller. Even if I set androidmanifest.xml
 supports-screens
 android:smallScreens=true
 android:normalScreens=true
 android:largeScreens=true
 android:anyDensity=true
 /
it did not work. I have searched at the groups but cannot find any
other solution.

-- 
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] Resolution Problem in Nexus One

2010-06-29 Thread Engin Arslan
Hi all,

In may application I support multi-language. For this purpose, I set
locale as user choice as follows:
languageToLoad  = language code here;
Locale locale = new Locale(languageToLoad);
Locale.setDefault(locale);
Configuration config = new Configuration();
config.locale = locale;

this.getResources().updateConfiguration(config,this.getResources().getDisplayMetrics());

However , this locality set causes nexus one resolution problem such
that every thing gets smaller. Even if I set androidmanifest.xml
 supports-screens
 android:smallScreens=true
 android:normalScreens=true
 android:largeScreens=true
 android:anyDensity=true
 /
it did not work. I have searched at the groups but cannot find any
other solution.

-- 
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] database exception when update applicarion

2010-06-25 Thread Engin Arslan
Hi everyone,

In my applicattion, I have 3 databases. Even  When I do some changes
not related to database, application throws exception as follows
01-01 02:03:04.264: ERROR/CursorWindow(1463): Bad request for field
slot 0,3. numRows = 1, numColumns = 3

When I uninstall and install application again error is fixed.

What is the reason for this error?

Here is error log
01-01 02:34:21.491: ERROR/AndroidRuntime(3660): Uncaught handler:
thread main exiting due to uncaught exception
01-01 02:34:21.499: ERROR/AndroidRuntime(3660):
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.generalmobile.storeoid/
com.generalmobile.storeoid.MainCategory}:
java.lang.IllegalStateException: get field slot from row 0 col 3
failed
01-01 02:34:21.499: ERROR/AndroidRuntime(3660): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2401)
01-01 02:34:21.499: ERROR/AndroidRuntime(3660): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2417)
01-01 02:34:21.499: ERROR/AndroidRuntime(3660): at
android.app.ActivityThread.access$2100(ActivityThread.java:116)
01-01 02:34:21.499: ERROR/AndroidRuntime(3660): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
01-01 02:34:21.499: ERROR/AndroidRuntime(3660): at
android.os.Handler.dispatchMessage(Handler.java:99)
01-01 02:34:21.499: ERROR/AndroidRuntime(3660): at
android.os.Looper.loop(Looper.java:123)
01-01 02:34:21.499: ERROR/AndroidRuntime(3660): at
android.app.ActivityThread.main(ActivityThread.java:4203)
01-01 02:34:21.499: ERROR/AndroidRuntime(3660): at
java.lang.reflect.Method.invokeNative(Native Method)
01-01 02:34:21.499: ERROR/AndroidRuntime(3660): at
java.lang.reflect.Method.invoke(Method.java:521)
01-01 02:34:21.499: ERROR/AndroidRuntime(3660): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:791)
01-01 02:34:21.499: ERROR/AndroidRuntime(3660): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
01-01 02:34:21.499: ERROR/AndroidRuntime(3660): at
dalvik.system.NativeStart.main(Native Method)
01-01 02:34:21.499: ERROR/AndroidRuntime(3660): Caused by:
java.lang.IllegalStateException: get field slot from row 0 col 3
failed
01-01 02:34:21.499: ERROR/AndroidRuntime(3660): at
android.database.CursorWindow.getString_native(Native Method)
01-01 02:34:21.499: ERROR/AndroidRuntime(3660): at
android.database.CursorWindow.getString(CursorWindow.java:278)
01-01 02:34:21.499: ERROR/AndroidRuntime(3660): at
android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:
49)
01-01 02:34:21.499: ERROR/AndroidRuntime(3660): at
com.gen.check_failed_download(MainCategory.java:415)
01-01 02:34:21.499: ERROR/AndroidRuntime(3660):
at com.gen.onCreate(MainCategory.java:119)
01-01 02:34:21.499: ERROR/AndroidRuntime(3660): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1123)

-- 
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: Downloading a file from a URL extremely slow, optimization advice needed.

2010-04-12 Thread Engin Arslan
is there any suggestion on this issue?

On Mar 21, 2:38 am, Stormtap Studios r...@stormtapstudios.com wrote:
 Hello folks,

 I have the following code todownloada binaryfilefrom a URL:

 private static final int BUFFER_SIZE = 1024 * 1024;

 BufferedInputStream stream = new BufferedInputStream(new URL(MY
 URL).openStream(), BUFFER_SIZE);
 BufferedOutputStream fos = new BufferedOutputStream(new
 FileOutputStream(outputFile));
 byte buf[] = new byte[BUFFER_SIZE];
 int numBytesRead;
 do
 {
         numBytesRead = stream.read(buf);
         if (numBytesRead  0)
         {
                 fos.write(buff, 0, numBytesRead);
         }} while (numBytesRead  0);

 fos.flush();
 fos.close();
 stream.close();
 buf = null;

 Thefilethat I'm downloading is 6.5MB.  On the iPhone version of my
 app it takes about a minute todownload, maybe less on good days.  On
 the Android Dev Phone 2 I'm testing on it takes 10 - 15 minutes todownload, 
 it's EXTREMELY slow.

 I am looking for any and all advice on how to speed up thedownload
 for large binary files.

 One thing I tried was to speed up the writing to the SD card by
 filling up buf, and then only doing fos.write() when the buffer was
 full (so roughly 6 and a half writes instead of lots of mini writes).
 This seemed to have no effect on the overall process, which confirms
 IMO that the slow part is definitely reading from the URL stream.

 Thanks very much.

 Robert Hawkey

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: real ip address

2010-04-09 Thread Engin Arslan
Thanks mscwd01 for answer,

can you give example , code?
 thanks

On Mar 30, 3:52 pm, mscwd01 mscw...@gmail.com wrote:
 The only way I found to do this was by opening a socket connection and
 reading the IP that way. I couldn't find a nice getIP() method.

 On Mar 30, 11:32 am,EnginArslan enginarsla...@gmail.com wrote:



  Hi All ,
  Can I get real ip address of android phone

  Thanks

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

To unsubscribe, reply using remove me as the subject.


[android-developers] real ip address

2010-03-30 Thread Engin Arslan
Hi All,
Can we get real ip address of android phone?

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] real ip address

2010-03-30 Thread Engin Arslan
Hi All ,
Can I get real ip address of android phone

Thanks

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] listview borders

2010-01-05 Thread Engin Arslan
Hi,

how can i remove borders in listview. i want a flat listview there
wont be any divider between two listview items. any suggestion??


Best Regards
-- 
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: Sometimes the running emulator is not found from within Eclipse?!

2009-10-11 Thread Engin Arslan

ı have also same problem. Is  there any suggestions???

On Oct 10, 9:36 pm, Mariano Kamp mariano.k...@gmail.com wrote:
 Regarding the internet connectivity thing: same here.

 On Sat, Oct 10, 2009 at 4:10 PM, Guru gurudut...@gmail.com wrote:
  +1 i have also ecountered this umpteen times on Windows XP.

  Sometimes it does not take recognise the internet connectivity.Only a
  restart helps

  On Sat, Oct 10, 2009 at 7:01 PM, Mariano Kamp mariano.k...@gmail.comwrote:

  Hi,

    when launching my app from within Eclipse, sometimes the running
  emulator is found and displayed in the launch dialog, sometimes it isn't?!
  Killing adb, the emulator and Eclipse usually helps ... until it happens
  again.

    Any idea why this is? I see this behavior since the launch of Android.

    I am running on Mac OS X. And it happened on Leopard as well as Snow
  Leopard.

  Cheers,
  Mariano

  --
  Thanks and Regards
  Gurudutt P.S.
--~--~-~--~~~---~--~~
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] ListView progres

2009-09-13 Thread Engin Arslan

Hi, I use listview in my application. I get listview values from
server so it is a little slow. So I want to optimize it such a way. I
will load 10 content of listview and load anotjer 10 content when user
pull down listview. Method is similar to google market method. My
question is that how can ı get user pull down listview so ı will looad
other part of listview from server?
--~--~-~--~~~---~--~~
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: Video quality

2009-09-10 Thread Engin Arslan

Any Suggestions??

On Sep 10, 2:05 am, Engin Arslan enginarsla...@gmail.com wrote:
 To be more specific, When I captured video, it only capture left top
 of screen with lowqualityas if it zooms top left of screen. What can
 be problem?

 On Sep 9, 10:07 pm, Engin Arslan enginarsla...@gmail.com wrote:



  Hi, i am capturing video with the code below. But there is problem on
  videoquality, that is, when I capture video with applicaiton I wrote
  itsqualityis not as well as videoqualityof telepohnes' which is
  recorded by Camcorder.

  public CamcorderPreview(Context context, AttributeSet attrs) {
          super(context, attrs);
          holder = getHolder();
          holder.addCallback(this);
          holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
          recorder = new MediaRecorder();
          recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
          recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
          recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
          recorder.setMaxDuration(MAX_RECORDING_DURATION_MS);
           recorder.setVideoSize(352,288);
           createVideoPath();
                   recorder.setOutputFile(mCameraVideoFilename);
                    recorder.setVideoEncoder
  (MediaRecorder.VideoEncoder.H263);
                    recorder.setAudioEncoder
  (MediaRecorder.AudioEncoder.AMR_NB);

                   recorder.setPreviewDisplay(holder.getSurface());

  }- Hide quoted text -

  - Show quoted text -- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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] Video quality

2009-09-09 Thread Engin Arslan

Hi, i am capturing video with the code below. But there is problem on
video quality, that is, when I capture video with applicaiton I wrote
its quality is not as well as video quality of telepohnes' which is
recorded by Camcorder.

public CamcorderPreview(Context context, AttributeSet attrs) {
super(context, attrs);
holder = getHolder();
holder.addCallback(this);
holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
recorder = new MediaRecorder();
recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
recorder.setMaxDuration(MAX_RECORDING_DURATION_MS);
 recorder.setVideoSize(352,288);
 createVideoPath();
 recorder.setOutputFile(mCameraVideoFilename);
  recorder.setVideoEncoder
(MediaRecorder.VideoEncoder.H263);
  recorder.setAudioEncoder
(MediaRecorder.AudioEncoder.AMR_NB);

 recorder.setPreviewDisplay(holder.getSurface());
}
--~--~-~--~~~---~--~~
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: Video quality

2009-09-09 Thread Engin Arslan

To be more specific, When I captured video, it only capture left top
of screen with low quality as if it zooms top left of screen. What can
be problem?

On Sep 9, 10:07 pm, Engin Arslan enginarsla...@gmail.com wrote:
 Hi, i am capturing video with the code below. But there is problem on
 videoquality, that is, when I capture video with applicaiton I wrote
 itsqualityis not as well as videoqualityof telepohnes' which is
 recorded by Camcorder.

 public CamcorderPreview(Context context, AttributeSet attrs) {
         super(context, attrs);
         holder = getHolder();
         holder.addCallback(this);
         holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
         recorder = new MediaRecorder();
         recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
         recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
         recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
         recorder.setMaxDuration(MAX_RECORDING_DURATION_MS);
          recorder.setVideoSize(352,288);
          createVideoPath();
                  recorder.setOutputFile(mCameraVideoFilename);
                   recorder.setVideoEncoder
 (MediaRecorder.VideoEncoder.H263);
                   recorder.setAudioEncoder
 (MediaRecorder.AudioEncoder.AMR_NB);

                  recorder.setPreviewDisplay(holder.getSurface());



 }- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---