[android-developers] Install on SD card using adb.exe - doesn't work?

2011-02-03 Thread EvgenyV
Hi all!

Trying to run following command:
C:\Users\evgenyD:\Android\android-sdk_r07-windows\tools\adb.exe -d
install -s D:\MyTest.apk
and getting
Error: Unknown option: -s

However the adb -help is showing
 adb install [-l] [-r] [-s] file - push this package file to the
device and install it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping
its data)
('-s' means install on SD card instead
of internal storage)

My manifest has attribute android:installLocation=preferExternal

Looks like this issue has been reported 
http://code.google.com/p/openetna/issues/detail?id=102

What wrong in my command? And what can be an other way to test the SD
card installation?

Thanks a lot,
Evgeny

-- 
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] Market related application functionality - feature?

2010-12-30 Thread EvgenyV
Hi all,

I have 2 applications: free and paid. Both belongs to the Travel
category. Actually the paid app is extended version of the free one.
related applications list of my paid application contains my free
version as expected. But for some reason not vice versa.
From the free application related applications I can't see my paid
version. Interesting is I can see several other related applications
from my both versions.

Need I change something in paid or free manifests or this is the
market feature?

Happy New Year to everyone!

Thanks,
Evgeny

-- 
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] Appearance updated application as Just in - wait 12-14 days between updates?

2010-11-24 Thread EvgenyV
Hi all,

I didn't find my recently updated application in Just In view after
some investigation I got answer from developer:
If you recently released it won't show in Just In again, you have
to wait like 12 - 14 days or something

Is it some new Market rule struggling with spam programs?

Thanks,
Evgeny

-- 
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] Create TableRow programmatically - what is wrong?

2010-11-01 Thread EvgenyV
Hi all,

I'm trying to create table row and place 3 elements: EditText -
EditText - ImageButton as following:

 TableLayout tableUnits =
(TableLayout)findViewById(R.id.tableUnits);

 TableRow tr = new 
TableRow(ViewNewElementBase.this);

 EditText txtMesureName = new 
EditText(ViewNewElementBase.this);
 txtMesureName.setLayoutParams(new 
TableLayout.LayoutParams(
0, 
TableLayout.LayoutParams.FILL_PARENT, 1f));
 
txtMesureName.setImeOptions(EditorInfo.IME_ACTION_NEXT);
 txtMesureName.setFocusableInTouchMode(true);
 txtMesureName.setFocusable(true);
 txtMesureName.setLines(1);
 txtMesureName.setId(1000);
 tr.addView(txtMesureName);

 EditText txtRatio = new 
EditText(ViewNewElementBase.this);
 txtRatio.setLayoutParams(new 
TableLayout.LayoutParams(
0, 
TableLayout.LayoutParams.FILL_PARENT, 1f));
 
txtRatio.setImeOptions(EditorInfo.IME_ACTION_DONE);
 txtRatio.setFocusableInTouchMode(true);
 txtRatio.setFocusable(true);
 txtRatio.setLines(1);
 
txtRatio.setInputType(InputType.TYPE_CLASS_NUMBER |
InputType.TYPE_CLASS_PHONE | InputType.TYPE_NUMBER_FLAG_SIGNED |
InputType.TYPE_NUMBER_FLAG_DECIMAL);
 txtRatio.setId(1001);
 tr.addView(txtRatio);

 ImageButton button = new 
ImageButton(ViewNewElementBase.this);
 button.setImageResource(R.drawable.trash_32);
 button.setLayoutParams(new 
TableLayout.LayoutParams(
 
TableLayout.LayoutParams.FILL_PARENT,
TableLayout.LayoutParams.FILL_PARENT));
 button.setId(1002);
 tr.addView(button);

 tableUnits.addView(tr, new 
TableLayout.LayoutParams(
 
TableLayout.LayoutParams.FILL_PARENT,
 
TableLayout.LayoutParams.WRAP_CONTENT));

Please advise what can be a reason the row is not displayed?

I'm getting same issue described time ago
http://www.warriorpoint.com/blog/2009/07/01/android-creating-tablerow-rows-inside-a-tablelayout-programatically/
But in my case I have to set LayoutParams to make sure both EditText
elements are equal and both filling the whole row.

The same row layout xml equivalent is:

TableRow
EditText
android:layout_weight=1
android:layout_height=fill_parent
android:layout_width=0dip
android:imeOptions=actionNext
android:focusableInTouchMode=true
android:focusable=true
android:lines=1 
/EditText
EditText
android:layout_weight=1
android:layout_height=fill_parent
 
android:layout_width=0dip
 
android:imeOptions=actionDone
android:focusableInTouchMode=true
android:focusable=true
android:lines=1

android:inputType=number|numberSigned|numberDecimal|phone
/EditText
ImageButton
android:id=@+id/btnRemoveUnit
android:layout_width=fill_parent
android:layout_height=wrap_content
android:src=@drawable/trash_32
/ImageButton
/TableRow

TableLayout
android:id=@+id/tableUnits
android:layout_height=wrap_content
android:orientation=vertical
android:gravity=center_horizontal
android:layout_width=fill_parent
android:paddingTop=3dip
android:background=@color/my_color
/


[android-developers] Please help to test my app on HTC wildfire.

2010-10-18 Thread EvgenyV
Hi all,

I've just reported that my app doesn't work on HTC wildfire. I'm
developing and testing on G1 and Motorola xt701 without issues.

Please test it on HTC wildfire and let me know whether I have any
generic problem with mentioned device.

My app is ConvertMe(Beta)

Many thanks,
Evgeny

-- 
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] Floating point sign. Comma , or . for France onscreen keyboard - question.

2010-10-17 Thread EvgenyV
Hi all,

I'm using EditText with following Input type properties: number|
numberSigned|numberDecimal|phone. The locale is fr which France
settings.

The question is: should I expect comma , as floating number sign
instead . using for English locale.

Thanks in advance,
Evgeny

-- 
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] Some problem/question about resolutions

2010-08-20 Thread EvgenyV
Hi all,

I'm loading the same png file 32X32 into the ImageView. When loading
from the URL stream, from drawable folder and from drawable-hdpi
folder getting 3 different displayed sizes of image. From drawable
it's large, from drawable-hdpi - medium, from stream - small.

Can you please advise where is the catch. I can understand  the
difference between drawable and drawable-hdpi but why from the stream
getting third size of the image which dispalyed as very very small
image?

I'm using Motorola XT701 and appropriate WVGA845 build in emulator
skin and getting the same results.

Thanks in advance,
Evgeny

-- 
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] Please help! Hebrew support on Motorola Milestone XT701 and other devices

2010-08-07 Thread EvgenyV
Hi all,

I want to develop aplication supports hebrew font.
Does anyone know how to install hebrew fonts my android as development
phone? And also how make the application displaying hebrew properly on
other devices?

Thanks in advance,
Evgeny

-- 
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] AutoCompleteTextView and SimpleCursorAdapter

2010-06-06 Thread EvgenyV
Hi All,

I'm using AutoCompleteTextView with SimpleCursorAdapter. It works
properly except one issue: I can't get regular list dropdown view.
When performing filtering the lines are narrow. I've tested API Demos
AutoCompelte1 example and got the normal dropdown view when using
ArrayAdapterString.
Is there any standard way  to show normal dropdown view? Please
advise what is wrong or what I've missed there.

Thans a lot,
Evgeny

The source code is following:

@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);

setContentView(R.layout.main);

   MyAdapter adapter = new MyAdapter(this,
android.R.layout.simple_spinner_item, null,
new String[] {name},
new int[] {android.R.id.text1});
AutoCompleteTextView autoCompleteCountry =
(AutoCompleteTextView)findViewById(R.id.txtCountry);
autoCompleteCountry.setAdapter(_adapter);
//
autoCompleteCountry.setDropDownHeight(LayoutParams.FILL_PARENT);
//
adapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);
adapter.setStringConversionColumn(1);
}

private class MyAdapter extends SimpleCursorAdapter
{
public MyAdapter(Context context, int layout, Cursor c, String[]
from,int[] to)
{
super(context, layout, c, from, to);
}

@Override
public Cursor runQueryOnBackgroundThread(CharSequence
constraint)
{
if(constraint == null || constraint.length() == 0)
return 
super.runQueryOnBackgroundThread(constraint);


return myB.rawQuery(select country._id _id, 
country.name_en name
from country where name_en like ' +
constraint.toString().replace(', '') + %', null);
}
}
}

?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent


ScrollView
android:id=@+id/ScrollView01
android:layout_width=fill_parent
android:layout_height=fill_parent
LinearLayout  android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent
TextView
android:id=@+id/lblCountry
android:layout_width=fill_parent
android:text=@string/lblCountryFrom
android:layout_height=fill_parent/

AutoCompleteTextView
android:id=@+id/txtCountry
android:layout_width=fill_parent
android:layout_height=wrap_content
/AutoCompleteTextView
/LinearLayout
/ScrollView
/LinearLayout

-- 
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] Asking for small QA on HTC Desire phone (Italy locale)

2010-06-06 Thread EvgenyV
Hi All,

I've reported some bug from HTC Desire phone running my app
ConvertMe(Beta).
Unfortunately I can't recreate in on emulator and on my G1.
If you are Italian developer using HTC Desire, please download my
app and test currency converter!

Thanks in advance,
Evgeny

-- 
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] G1 phone and update firmware 2.0-2.2 - question

2010-05-21 Thread EvgenyV
Hi All,

1. Guys please suggest some official Google/HTC link with explanation
why HTC G1 phone can't be updated to Adroid 2.0-2.2 firmware.

2. Is Google planning to sell latest versions of dev phones in the
near future?

Thanks in advance,
Evgeny

-- 
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] Market shows: Localized to: unknown - issue 5930 is still not fixed?

2010-04-24 Thread EvgenyV
Hi all!

I've just uploaded my application supports many languages. Android
Market shows Localized to: unknown.
I have res\values-fr-rFR, res\values-es-rES, res\values-ru-rRU etc.
localized folders.

Found that same issue has reported as issue 5930 but didn't find any
responses.

Any ideas?

Thanks in advance,
Evgeny

-- 
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] Progress dialog question/problem (API Demos example)

2010-04-03 Thread EvgenyV
Hi all!

I'm using the progress dialog example from Android API Demos
AlertDialogSamples.java (case DIALOG_PROGRESS). After the orientation
changed the dialog is freezing with no progress anymore.

What should I change to make the example working properly after
orientation change?
The piece of code is following:

case DIALOG_PROGRESS:
mProgressDialog = new
ProgressDialog(AlertDialogSamples.this);
mProgressDialog.setIcon(R.drawable.alert_dialog_icon);
mProgressDialog.setTitle(R.string.select_dialog);
 
mProgressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
mProgressDialog.setMax(MAX_PROGRESS);
 
mProgressDialog.setButton(getText(R.string.alert_dialog_hide), new
DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int
whichButton) {

/* User clicked Yes so do some stuff */
}
});
 
mProgressDialog.setButton2(getText(R.string.alert_dialog_cancel), new
DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int
whichButton) {

/* User clicked No so do some stuff */
}
});
return mProgressDialog;


mProgressHandler = new Handler() {
@Override
public void handleMessage(Message msg) {
super.handleMessage(msg);
if (mProgress = MAX_PROGRESS) {
mProgressDialog.dismiss();
} else {
mProgress++;
mProgressDialog.incrementProgressBy(1);
mProgressHandler.sendEmptyMessageDelayed(0, 100);
}
}
};


Thanks in advance,
Evgeny

-- 
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] Application invisible in Market from Nexus One. Please test.

2010-03-29 Thread EvgenyV
Hi developers!

I've reported that my app is invisible when accessing to Market from
Nexus device.
In the past I've reported some runtime resolution problem with Tatoo
device but as far I know Nexus has a normal screen HVGA 320x480. The
strange is that the app is invisible.

Can you please check if you can see and install it from Market? Each
feedback will realy appreciated.

My app is universal unit converter ConvertMe(Beta) free.

Thanks in advance,
Evgeny

-- 
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] Layout question

2010-03-05 Thread EvgenyV
Hi all!

I have horizontal layout contains 2 TextView items. The left width is
limited by 10 characters. How can I store strings longer than 10
characters in new lines of this TextView? I need actually fixed width
but possibility to grow heigh.

Now the text next line (see xml)  can't be visible.

See following xml:
?xml version=1.0 encoding=utf-8?
LinearLayout  xmlns:android=http://schemas.android.com/apk/res/
android
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 android:orientation=horizontal
 android:background=@drawable/background_result_2

TextView
android:layout_height=fill_parent
android:id=@+id/txtLeft
android:gravity=right|center_vertical
android:paddingRight=10dip
android:minWidth=70dip
android:textColor=@color/white
android:paddingLeft=5dip
android:textSize=15dip
android:layout_width=wrap_content
android:singleLine=false
android:text=0123456789next line/

TextView
android:id=@+id/txtRight
android:layout_height=fill_parent
android:layout_width=fill_parent
android:textSize=15dip
android:paddingLeft=10dip
android:gravity=left|center_vertical
android:text=result
android:textColor=@color/white/
/LinearLayout

Thanks,
Evgeny

-- 
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 customize onscreen keyboard? Please help!

2010-02-26 Thread EvgenyV
Hi All!

I need to hide all keys except numbers, point and dash and change the
dash behaviour.

Unfortunately attribute android:inputType=number|numberSigned|
numberDecimal doesn't hide @, #, $ etc. keys.

How can I customize the soft keyboard view? I actually need to show
and react to my custom view. What is is the fast and right way to
implement it?

Please advise some example or code snippets helps to move forward.

Thanks in advance,
Evgeny

-- 
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] Does emulator 1.6/2.0 supports bluetooth and WIFI?

2010-01-08 Thread EvgenyV
Hi all!

1. Can I emulate the WIFI and bluetooth on emulator?
2. Can you send, please the links to examples for bluetooth and WIFI
development?

Thanks in advance,
Evgeny
-- 
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: Force locale for an application, bug in 2.0?

2009-12-26 Thread EvgenyV
Hi Dianne,

I have exactly the same problem. The functionality was broken since I
move to v10 and now to 2.0.1
I wrote the question as Different behaviour between SDK 1.6 and SDK
2.0 - bug? Please help. in developers forum month ago but no answer.
Anyway when i'm commenting the line
context.getBaseContext().getResources().updateConfiguration
(config, context.getBaseContext().getResources().getDisplayMetrics());
the application is starting properly. No localization changes is
available but at least it's running.

I can send you source code if you need to investigate it.

Thanks,
Evgeny


On Nov 9, 11:15 pm, Dianne Hackborn hack...@android.com wrote:
 No, changing the application's locale like this is not supported, and will
 not entirely work.  It shouldn't cause an activity to restart though...
 actually I can't imagine how this would cause an activity to restart, since
 this method is much lower-level than the activity.  Maybe the process is
 crashing for some reason in this call?

 2009/11/9 Bahadır Yağan bahadir.ya...@gmail.com





  Does anyone know if this method of changing Locale just for one application
  is a supported functionality?

  --
  Bahadır Yağan

  On Mon, Nov 9, 2009 at 12:18 PM, ydario mc6...@mclink.it wrote:

  Hi,

  found the same problem here. Even this kind of code fails:

         Configuration config = context.getResources().getConfiguration();
         config.locale = newLocale;
          context.getResources().updateConfiguration(config,
                         context.getResources().getDisplayMetrics());

  where newLocale is a properly created locale instance.

  The strange thing is that I can get the above code to work when my
  wizard library is running; the library code does not implement a new
  activity, but simply uses the existing one. I compared code, but I
  cannot find other real differences.

  And I'm getting the resume problem also when I start an activity from
  a non-GUI class, this worked from 1.1 to 1.6 :-(

  Yuri

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

   --
  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.- 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] Re: Force locale for an application, bug in 2.0?

2009-12-26 Thread EvgenyV
Shuold I add it to each activity or only to LAUNCHER activity?

Thanks,
Evgeny

On Nov 12, 9:31 pm, monmonja almondmend...@gmail.com wrote:
 Add android:configChanges=locale to your activity nodes on the
 manifest file
 activity android:name=.Main android:configChanges=locale
 android:label=@string/app_name /

 Update the post 
 onhttp://almondmendoza.com/2009/01/28/force-localize-an-application-on-...
 :)

 monmonja

 On Nov 10, 3:43 pm, Kaj Bjurman kaj.bjur...@gmail.com wrote:



  I don't think that the process is crashing, at least not in the
  emulator since I can see all these logging messages:

  11-07 23:11:33.849: WARN/UsageStats(61): Something wrong here, didn't
  expect mypackagename to be resumed

  There are lots of them. It looks like it gets stuck in some kind of
  loop.

  Btw. It used to work, and I think it is great that it used to work.
  There are lots of people in the world who speak more than one
  language, where none of the languages are English, or they might
  understand English but have two other languages as preferred
  languages.

  Setting the OS locale to Swedish would make the application display
  the English resources if Swedish isn't available, but an application
  that I have installed might support e.g .Spanish, and that could be
  preferred over English.

  On 9 Nov, 22:15, Dianne Hackborn hack...@android.com wrote:

   No, changing the application's locale like this is not supported, and will
   not entirely work.  It shouldn't cause an activity to restart though...
   actually I can't imagine how this would cause an activity to restart, 
   since
   this method is much lower-level than the activity.  Maybe the process is
   crashing for some reason in this call?

   2009/11/9 Bahadır Yağan bahadir.ya...@gmail.com

Does anyone know if this method of changing Locale just for one 
application
is a supported functionality?

--
Bahadır Yağan

On Mon, Nov 9, 2009 at 12:18 PM, ydario mc6...@mclink.it wrote:

Hi,

found the same problem here. Even this kind of code fails:

       Configuration config = 
context.getResources().getConfiguration();
       config.locale = newLocale;
        context.getResources().updateConfiguration(config,
                       context.getResources().getDisplayMetrics());

where newLocale is a properly created locale instance.

The strange thing is that I can get the above code to work when my
wizard library is running; the library code does not implement a new
activity, but simply uses the existing one. I compared code, but I
cannot find other real differences.

And I'm getting the resume problem also when I start an activity from
a non-GUI class, this worked from 1.1 to 1.6 :-(

Yuri

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

 --
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.- 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] Re: Force locale for an application, bug in 2.0?

2009-12-26 Thread EvgenyV
It fixed the issue after i added it to LAUNCHER only!

Thanks a lot!

On Nov 12, 9:31 pm, monmonja almondmend...@gmail.com wrote:
 Add android:configChanges=locale to your activity nodes on the
 manifest file
 activity android:name=.Main android:configChanges=locale
 android:label=@string/app_name /

 Update the post 
 onhttp://almondmendoza.com/2009/01/28/force-localize-an-application-on-...
 :)

 monmonja

 On Nov 10, 3:43 pm, Kaj Bjurman kaj.bjur...@gmail.com wrote:



  I don't think that the process is crashing, at least not in the
  emulator since I can see all these logging messages:

  11-07 23:11:33.849: WARN/UsageStats(61): Something wrong here, didn't
  expect mypackagename to be resumed

  There are lots of them. It looks like it gets stuck in some kind of
  loop.

  Btw. It used to work, and I think it is great that it used to work.
  There are lots of people in the world who speak more than one
  language, where none of the languages are English, or they might
  understand English but have two other languages as preferred
  languages.

  Setting the OS locale to Swedish would make the application display
  the English resources if Swedish isn't available, but an application
  that I have installed might support e.g .Spanish, and that could be
  preferred over English.

  On 9 Nov, 22:15, Dianne Hackborn hack...@android.com wrote:

   No, changing the application's locale like this is not supported, and will
   not entirely work.  It shouldn't cause an activity to restart though...
   actually I can't imagine how this would cause an activity to restart, 
   since
   this method is much lower-level than the activity.  Maybe the process is
   crashing for some reason in this call?

   2009/11/9 Bahadır Yağan bahadir.ya...@gmail.com

Does anyone know if this method of changing Locale just for one 
application
is a supported functionality?

--
Bahadır Yağan

On Mon, Nov 9, 2009 at 12:18 PM, ydario mc6...@mclink.it wrote:

Hi,

found the same problem here. Even this kind of code fails:

       Configuration config = 
context.getResources().getConfiguration();
       config.locale = newLocale;
        context.getResources().updateConfiguration(config,
                       context.getResources().getDisplayMetrics());

where newLocale is a properly created locale instance.

The strange thing is that I can get the above code to work when my
wizard library is running; the library code does not implement a new
activity, but simply uses the existing one. I compared code, but I
cannot find other real differences.

And I'm getting the resume problem also when I start an activity from
a non-GUI class, this worked from 1.1 to 1.6 :-(

Yuri

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

 --
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.- 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] Windows 7 Android development environment question

2009-12-26 Thread EvgenyV
Hi all,

Can you please advise if development tools Eclipse, Android sdk, usb
driver etc. are working properly under Windows 7 32 and 64 bit?

Thanks,
Evgeny

-- 
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] Different behaviour between SDK 1.6 and SDK 2.0 - bug? Please help.

2009-11-30 Thread EvgenyV
Hi!

I got infinit loop when trying to run tab activity which creating
dialog.
Before I'm pressing the dialog button OK or Cancel button the system
is
starting my tab main activity again.
It worked fine in all previouse versions.
 The log report:
*11-28 16:59:38.607: WARN/UsageStats(59): Something wrong here,
didn't
expect evgeny.converter to be resumed
11-28 17:12:06.498: ERROR/WindowManager(269):
android.view.WindowLeaked:
Activity evgeny.converter.TabMain has leaked window
com.android.internal.policy.impl.phonewindow$decorv...@43cfd4f0 that
was
originally added here
*

Thanks in advance,
Evgeny


The code is as following:
Launcher code:
  SharedPreferences _State;
 @Override
 protected void onCreate(Bundle savedInstanceState) {


  super.onCreate(savedInstanceState);


 final TabHost tabHost = getTabHost();


 tabHost.addTab(tabHost.newTabSpec(tabMeasures)
 .setIndicator(res.getString
(R.string.tab_measures_title),
 res.getDrawable(R.drawable.measures_tab_32))
 .setContent(new Intent(this, MeasuresMain.class)));


 tabHost.addTab(tabHost.newTabSpec(tabClothes)
 .setIndicator(res.getString
(R.string.tab_clothes_title),
 res.getDrawable(R.drawable.clothes_tab_40))
 .setContent(new Intent(this, ClothesMain.class)));
 tabHost.addTab(tabHost.newTabSpec(tabSettings)
 .setIndicator(res.getString
(R.string.tab_settings_title),
 res.getDrawable(R.drawable.settings_tab_40))
 .setContent(new Intent(this,
ConverterViewSettings.class)));


 tabHost.setBackgroundResource(R.drawable.background_main);


 _State = getSharedPreferences(Settings, MODE_WORLD_READABLE
|
MODE_WORLD_WRITEABLE );
 if(_State.getBoolean
(ConverterUtil.EVG_IS_SHOW_LICENSE_AGREEMENT,
true))
  showDialog(1);


 }


@Override
 protected Dialog onCreateDialog(int id)
 {
  AlertDialog.Builder builder = new AlertDialog.Builder(this);
  builder.setPositiveButton(R.string.lblButtonAgree, new
DialogInterface.OnClickListener()
  {
   public void onClick(DialogInterface dialog, int whichButton)
   {
  try
  {
   SharedPreferences.Editor editor = _State.edit();


editor.putBoolean(ConverterUtil.EVG_IS_SHOW_LICENSE_AGREEMENT,
false);
   editor.commit();
  }
  catch (Exception e)
  {
 e.printStackTrace();
}
   }
  });
  builder.setNegativeButton(R.string.lblButtonExit, new
DialogInterface.OnClickListener()
  {
   public void onClick(DialogInterface dialog, int whichButton)
   {
finish();
   }
  });


  LayoutInflater inflater = LayoutInflater.from(this);
builder.setTitle(R.string.lblLicenseCaption);
builder.setIcon(R.drawable.my_converter_32);
  ScrollView layout = (ScrollView) inflater.inflate
(R.layout.about,
null);


  ((TextView)layout.findViewById(R.id.txtAbout)).setText
(R.string.lblLicenseT­ext);


  ((TextView)layout.findViewById(R.id.txtMyEmail)).setVisibility
(LinearLayout­.GONE);
  builder.setView(layout);
  return builder.create();
 }


-- 
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] Implements Filterable question

2009-10-06 Thread EvgenyV

Hi!

I'm using custom Adapter extends BaseAdapter. Unfortunately
BaseAdapter doesn't implements Filterable interface.
That's a reason I can't use setTextFilterEnabled(true) functionality.

Where can I learn how ArrayAdapter implements Filterable interface?

There is my simple code:

private class MyDataAdapter extends BaseAdapter implements Filterable
{
..
..
ListMyObject _data;
public Filter getFilter()
{

 return new MyFilter(_data);
}
}

private class MyFilter extends Filter
{
ListMyObject _data;

public MyFilter(ListMyIntent data)
{
_data = data;
}
@Override
protected FilterResults performFiltering(CharSequence 
constraint) {

}

@Override
protected void publishResults(CharSequence constraint,
FilterResults results) {
?
}

}

Thanks in advance,
Evgeny

--~--~-~--~~~---~--~~
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] API demos and SDK 1.5: is available?

2009-05-02 Thread EvgenyV

Hi!

As far I see the API demos sources are not a part of latest 1.5 SDK.
Can I download it somewhere?

Thanks,
Evgeny
--~--~-~--~~~---~--~~
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] Plugin 0.9 ADT with Eclipse (G4.3.2) on WIN XP SP3 problem

2009-04-28 Thread EvgenyV

Hi all!

I've updated from 1.1 to 1.5 following 
http://developer.android.com/sdk/1.5_r1/upgrading.html

0.9 ADT plugin was succesfully installed. The Android plugin doesn't
present in Window - Preferences options.
So I can't perform step Update your Eclipse SDK Preferences.

Using fully updated Eclipse Ganymede 3.4.2

Any ideas?

Thanks in advance,
Evgeny


--~--~-~--~~~---~--~~
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] 1.5 SDK problems

2009-04-28 Thread EvgenyV

Hi all!

I just want to make sure that is not only my personal experience that
the latest SDK 1.5.
Looks like 1. 5 is causing couple of serious upgrade, installation and
runtime issues.

Should we wait for some quick local patch soon?

Thanks,
Evgeny



--~--~-~--~~~---~--~~
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] TabHost in 1.5 problem

2009-04-28 Thread EvgenyV

Hi!

I have the problem since updated to 1.5. Some activity can be started
as independent activity.
In addition it can be hosted in  TabHost.
tabHost.addTab(tabHost.newTabSpec(tabSettings)
.setIndicator(res.getString
(R.string.tab_settings_title),
res.getDrawable(R.drawable.settings_tab_40))
.setContent(new Intent(this, ViewSettings.class)));

When ViewSettings is starting as separate activity from some
CurrentActivity everything is OK.
Intent i = new IntentCurrentActivity ,
ConverterViewSettings.class);
CurrentActivity.startActivity(i);

But when the ViewSettings activity is starting on tab activation I got
StackOverflow exception.
The same code was OK in 1.1

There are stack trace:
04-28 17:30:26.954: ERROR/AndroidRuntime(12851): Uncaught handler:
thread main exiting due to uncaught exception
04-28 17:30:27.014: ERROR/AndroidRuntime(12851):
java.lang.StackOverflowError
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
java.util.concurrent.locks.ReentrantLock$NonfairSync.lock
(ReentrantLock.java:177)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:252)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
java.util.concurrent.CopyOnWriteArrayList.remove
(CopyOnWriteArrayList.java:384)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.view.ViewTreeObserver.removeOnPreDrawListener
(ViewTreeObserver.java:377)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.widget.TextView.onDraw(TextView.java:3745)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.view.View.draw(View.java:5838)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.view.View.draw(View.java:5841)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.view.View.draw(View.java:5841)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.view.View.draw(View.java:5841)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.view.View.draw(View.java:5944)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.widget.FrameLayout.draw(FrameLayout.java:352)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.view.View.draw(View.java:5841)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.widget.FrameLayout.draw(FrameLayout.java:352)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.view.View.draw(View.java:5841)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.widget.FrameLayout.draw(FrameLayout.java:352)
04-28 17:30:27.014: ERROR/AndroidRuntime(12851): at
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
04-28 17:30:27.014: 

[android-developers] Floating help doesn't work with 0.9 plugin?

2009-04-28 Thread EvgenyV

Hi!

After 1.5 and 0.9 plugin update I can't see the floating help
documentation.
Should I do some additional updates?
There was the same problem with first 1.1 SDK. Is it the same issue?

Thanks,
Evgeny
--~--~-~--~~~---~--~~
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] WebView and https post problem

2009-04-17 Thread EvgenyV

Hi all!

I'm trying to get PayPal web page with requested donation parameters.
It works within IE or Firefox.

Can anyone advise whether I'm running some wrong code?

Layout main.xml:
-
?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
 android:orientation=vertical
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 

WebView
android:id=@+id/viewFromPayPal
android:layout_width=fill_parent
android:layout_height=fill_parent

/
 /LinearLayout
-

Java code:
-
public class DonationTestView extends Activity
{
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
LoadPayPal();
}


private void LoadPayPal()
{
WebView webContent = (WebView)findViewById
(R.id.viewFromPayPal);


HttpParams httpParams1 = new BasicHttpParams();
HttpConnectionParams.setConnectionTimeout(httpParams1, 1);
HttpConnectionParams.setSoTimeout(httpParams1, 1);
HttpClient httpClient = new DefaultHttpClient(httpParams1);




HttpParams httpParams2 = new BasicHttpParams();

httpParams2.setParameter(cmd, _xclick);
httpParams2.setParameter(business, my_em...@address.com);
httpParams2.setParameter(item_name, Descr);
httpParams2.setParameter(no_shipping, 1);
httpParams2.setParameter(no_note, 1);
httpParams2.setParameter(currency_code, USD);
httpParams2.setParameter(tax, 0);
httpParams2.setParameter(lc, IL);
httpParams2.setParameter(bn, PP-DonationsBF);

HttpPost httpPost = new 
HttpPost(https://www.paypal.com/cgi-bin/
webscr);
try {
HttpResponse response = httpClient.execute(httpPost);
httpPost.setParams(httpParams2);
HttpEntity entity = response.getEntity();
StringBuilder sb = new StringBuilder();

if (entity != null)
{
BufferedReader reader = null;
try
{
reader = new BufferedReader(
new InputStreamReader(entity.getContent()));
try
{
while(true)
{
String res = reader.readLine();
if(res.equals(0))
{
webContent.getSettings
().setJavaScriptEnabled(true);
webContent.getSettings
().setJavaScriptCanOpenWindowsAutomatically(true);
webContent.getSettings().setPluginsEnabled
(true);
webContent.getSettings
().setSupportMultipleWindows(true);
webContent.getSettings().setSupportZoom
(true);
webContent.getSettings
().setBlockNetworkImage(false);
webContent.getSettings
().setLoadsImagesAutomatically(true);
webContent.getSettings().setUseWideViewPort
(true);
webContent.loadData(sb.toString(), text/
html, utf-8);
break;
}
Log.i(WEB, res);
sb.append(res);

}


}
catch (Exception e)
{
 webContent.loadData(html + e.getMessage()
+ /html, text/html, utf-8);
return;
}


}
catch (IOException ex)
{

throw ex;
}
catch (RuntimeException ex)
{

httpPost.abort();
throw ex;

}
finally
{

if(reader != null)
reader.close();

}
}
}
catch (ClientProtocolException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
webContent.loadData(html + e.getMessage() + /html,
text/html, utf-8);
}
catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
webContent.loadData(html + e.getMessage() + /html,
text/html, utf-8);
   

[android-developers] Some question about market rate

2009-04-03 Thread EvgenyV

Hi all,

I can't explaing why with the increasing number of downloads and
increasing positive feedbacks the number of uninstalls is growing as
well.

Does anybody know what is the avarage value of free applications
uninstall?


Thanks in advance,
Evgeny

--~--~-~--~~~---~--~~
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] Question regarding unexpected application behaviour (reported by market users)

2009-04-02 Thread EvgenyV

Hi all,

I just uploaded the application and got couple of negative rates like
force closes on start.
On start the tab page populated by Intent which is ListActivity. The
list data is loading from resources. List is really small. No internet
and file system access triggered on start.
The strange thing is that I NEVER got such errors during the
development and testing. The one reason I'm thinking I didn't check
the device available memory... What else?
Did you probably experienced such behaviour? Will appreciate your
opinion.

Thanks,
Evgeny
--~--~-~--~~~---~--~~
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] Custom created files and application reinstall - bug or my mistake?

2009-03-29 Thread EvgenyV

Hi all!

My application creates some custom file on sdcard/mypackage/myfile.bin
Uninstall from the phone left this file unremoved. Actually it left
the unused garbage. I believe it happens with other applications as
well.

How can I ensure deleting of all custom files when the application
uninstalled or reinstalled?

Thanks,
Evgeny

--~--~-~--~~~---~--~~
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] Question about OpenGL literature

2009-03-25 Thread EvgenyV

Hi all,

Can you please suggest some book(s) or any other useful references
about OpenGL?

Thanks in advance,
Evgeny
--~--~-~--~~~---~--~~
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] Question about spinner and quick text search.

2009-02-20 Thread EvgenyV

Hi!

For ListActivity I can use method setTextFilterEnabled(true) which
allows me to type letters and quick
find list item(s).

Does anybody know whether exists some similar out of the box
functionality for Spinner dropdown list?

Thanks,
Evgeny
--~--~-~--~~~---~--~~
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] Show dialog on creation - question?

2009-02-13 Thread EvgenyV

Hi!
I'm trying to show dialog OK/Cancel and then continue construction
after user closed the dialog.
Unfortunately the dialog get visibility only AFTER the creation of
myclass was completed.
In my example Run( ) method will never run.

There is code:

public class MyClass extends Activity
{
private _boolFlag = false;

@Override
public void onCreate(Bundle savedInstanceState) {
try {

super.onCreate(savedInstanceState);
some code...
showDialog(Dialog.BUTTON2);
if(_boolFlag)
 Run().// never run
}
   }


@Override
protected Dialog onCreateDialog(int id)
{
switch (id)
{
case Dialog.BUTTON2:
return  new AlertDialog.Builder(this)
.setIcon(R.drawable.files_down_32)
.setTitle(title)
.setPositiveButton(Ok, new
DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int
whichButton) {
_boolFlag = true;
}
}).create();
}
return null;
}

 private void Run()
 {

 }

}

What can I do except to move the dialog to the caller activity?

Thanks in advance,
Evgeny
--~--~-~--~~~---~--~~
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] setVerticalScrollBarEnabled( ) problem

2009-01-17 Thread EvgenyV

Hi all,

I'm trying to set vertical scrollbar programmatically. But get
following error stack on creation:

01-17 13:33:12.944: ERROR/AndroidRuntime(464):
java.lang.NullPointerException
01-17 13:33:12.944: ERROR/AndroidRuntime(464): at
android.view.View.onDrawScrollBars(View.java:4684)
01-17 13:33:12.944: ERROR/AndroidRuntime(464): at
android.view.View.draw(View.java:5490)
01-17 13:33:12.944: ERROR/AndroidRuntime(464): at
android.widget.FrameLayout.draw(FrameLayout.java:324)
01-17 13:33:12.944: ERROR/AndroidRuntime(464): at
android.view.ViewGroup.drawChild(ViewGroup.java:1436)
01-17 13:33:12.944: ERROR/AndroidRuntime(464): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1208)
01-17 13:33:12.944: ERROR/AndroidRuntime(464): at
android.view.View.draw(View.java:5355)
01-17 13:33:12.944: ERROR/AndroidRuntime(464): at
android.widget.FrameLayout.draw(FrameLayout.java:324)
01-17 13:33:12.944: ERROR/AndroidRuntime(464): at
android.view.ViewGroup.drawChild(ViewGroup.java:1436)
01-17 13:33:12.944: ERROR/AndroidRuntime(464): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1208)
01-17 13:33:12.944: ERROR/AndroidRuntime(464): at
android.view.ViewGroup.drawChild(ViewGroup.java:1434)
01-17 13:33:12.944: ERROR/AndroidRuntime(464): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1208)
01-17 13:33:12.944: ERROR/AndroidRuntime(464): at
android.view.View.draw(View.java:5355)
01-17 13:33:12.944: ERROR/AndroidRuntime(464): at
android.widget.FrameLayout.draw(FrameLayout.java:324)
01-17 13:33:12.944: ERROR/AndroidRuntime(464): at
com.android.internal.policy.impl.PhoneWindow$DecorView.draw
(PhoneWindow.java:1701)
01-17 13:33:12.944: ERROR/AndroidRuntime(464): at
android.view.ViewRoot.draw(ViewRoot.java:980)
01-17 13:33:12.944: ERROR/AndroidRuntime(464): at
android.view.ViewRoot.performTraversals(ViewRoot.java:829)
01-17 13:33:12.944: ERROR/AndroidRuntime(464): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1103)
01-17 13:33:12.944: ERROR/AndroidRuntime(464): at
android.os.Handler.dispatchMessage(Handler.java:88)
01-17 13:33:12.944: ERROR/AndroidRuntime(464): at
android.os.Looper.loop(Looper.java:123)
01-17 13:33:12.944: ERROR/AndroidRuntime(464): at
android.app.ActivityThread.main(ActivityThread.java:3742)
01-17 13:33:12.944: ERROR/AndroidRuntime(464): at
java.lang.reflect.Method.invokeNative(Native Method)
01-17 13:33:12.944: ERROR/AndroidRuntime(464): at
java.lang.reflect.Method.invoke(Method.java:515)
01-17 13:33:12.944: ERROR/AndroidRuntime(464): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:739)
01-17 13:33:12.944: ERROR/AndroidRuntime(464): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
01-17 13:33:12.944: ERROR/AndroidRuntime(464): at
dalvik.system.NativeStart.main(Native Method)

There is a very simple java code and xml layout:
public class BBB extends Activity
{
   @Override
public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.bbb);


int orient = getWindow().getWindowManager().getDefaultDisplay
().getOrientation();
if(orient== 1)
{
ScrollView viewMain = (ScrollView)findViewById
(R.id.layoutInputs1);
viewMain.setVerticalScrollBarEnabled(true);
}

   }

}

ScrollView xmlns:android=http://schemas.android.com/apk/res/android;
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent
android:id=@+id/layoutInputs1
android:scrollbars=none



LinearLayout
android:layout_width=fill_parent
android:layout_height=fill_parent
android:orientation=vertical
android:id=@+id/layoutInputs2


TextView
style=?android:attr/listSeparatorTextViewStyle
android:text=test-test-test
android:textColor=#FF
android:layout_width=wrap_content
android:layout_height=wrap_content/
/LinearLayout
/ScrollView

Looks like I'm missing somethind...
Any ideas?

Thanks in advance,
Evgeny


--~--~-~--~~~---~--~~
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] Find loaded activity - question

2009-01-17 Thread EvgenyV

Hi all!

I have some tab activity A which is application main activity.
From one of the TabSpec's I'm opening other separate activity B. B
not hosted inside my tab host. B is openening activity C etc.
How can I find and back to already loaded tab activity A and show
it?

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] Change linear layout programmatically - problem

2009-01-10 Thread EvgenyV

Hi!

I'm trying to change height layout from wrap_content to
fill_parent from code. Using landscape mode.
public class BBB extends Activity
{
   @Override
public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.bbb);
LinearLayout layout = 
(LinearLayout)findViewById(R.id.mainZZZ);

LayoutParams params = new LayoutParams
(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
layout.setLayoutParams(params);
   }
}
I have bbb.xml layout file
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:orientation=vertical
android:id=@+id/mainZZZ
android:layout_width=fill_parent
android:layout_height=wrap_content
/LinearLayout

Why the activity can't be loaded after run-time changes?
Missing I something?

Thanks in advance,
Evgeny

Stack error:
01-10 21:53:41.570: WARN/dalvikvm(1680): threadid=3: thread exiting
with uncaught exception (group=0x40010e28)
01-10 21:53:41.581: ERROR/AndroidRuntime(1680): Uncaught handler:
thread main exiting due to uncaught exception
01-10 21:53:41.841: ERROR/AndroidRuntime(1680):
java.lang.ClassCastException: android.view.ViewGroup$LayoutParams
01-10 21:53:41.841: ERROR/AndroidRuntime(1680): at
android.widget.LinearLayout.measureVertical(LinearLayout.java:323)
01-10 21:53:41.841: ERROR/AndroidRuntime(1680): at
android.widget.LinearLayout.onMeasure(LinearLayout.java:275)
01-10 21:53:41.841: ERROR/AndroidRuntime(1680): at
android.view.View.measure(View.java:6621)
01-10 21:53:41.841: ERROR/AndroidRuntime(1680): at
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:2791)
01-10 21:53:41.841: ERROR/AndroidRuntime(1680): at
android.widget.FrameLayout.onMeasure(FrameLayout.java:208)
01-10 21:53:41.841: ERROR/AndroidRuntime(1680): at
android.view.View.measure(View.java:6621)
01-10 21:53:41.841: ERROR/AndroidRuntime(1680): at
android.widget.LinearLayout.measureVertical(LinearLayout.java:461)
01-10 21:53:41.841: ERROR/AndroidRuntime(1680): at
android.widget.LinearLayout.onMeasure(LinearLayout.java:275)
01-10 21:53:41.841: ERROR/AndroidRuntime(1680): at
android.view.View.measure(View.java:6621)
01-10 21:53:41.841: ERROR/AndroidRuntime(1680): at
android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:2791)
01-10 21:53:41.841: ERROR/AndroidRuntime(1680): at
android.widget.FrameLayout.onMeasure(FrameLayout.java:208)
01-10 21:53:41.841: ERROR/AndroidRuntime(1680): at
android.view.View.measure(View.java:6621)
01-10 21:53:41.841: ERROR/AndroidRuntime(1680): at
android.view.ViewRoot.performTraversals(ViewRoot.java:620)
01-10 21:53:41.841: ERROR/AndroidRuntime(1680): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1103)
01-10 21:53:41.841: ERROR/AndroidRuntime(1680): at
android.os.Handler.dispatchMessage(Handler.java:88)
01-10 21:53:41.841: ERROR/AndroidRuntime(1680): at
android.os.Looper.loop(Looper.java:123)
01-10 21:53:41.841: ERROR/AndroidRuntime(1680): at
android.app.ActivityThread.main(ActivityThread.java:3742)
01-10 21:53:41.841: ERROR/AndroidRuntime(1680): at
java.lang.reflect.Method.invokeNative(Native Method)
01-10 21:53:41.841: ERROR/AndroidRuntime(1680): at
java.lang.reflect.Method.invoke(Method.java:515)
01-10 21:53:41.841: ERROR/AndroidRuntime(1680): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:739)
01-10 21:53:41.841: ERROR/AndroidRuntime(1680): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
01-10 21:53:41.841: ERROR/AndroidRuntime(1680): at
dalvik.system.NativeStart.main(Native Method)




--~--~-~--~~~---~--~~
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] Share data between activities queston

2009-01-09 Thread EvgenyV

Hi!

What is the best way to share data between different activities?

Thanks in advance,
Evgeny
--~--~-~--~~~---~--~~
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: changing string resources

2009-01-03 Thread EvgenyV

Just make sure I'm not missing something...

I have some code:
public class MyLangTest extends Activity {

@Override
public void onCreate(Bundle icicle)
{
super.onCreate(icicle);

String fromResources = getResources().getString(r.string.f_name);

//Displayed
First Name

Locale newLocale = new Locale(cs, CZ);
Locale.setDefault(newLocale)

String fromResourcesLang = getResources().getString(r.string.f_name);
//Expected First Name Other Language
//But in fact still displayed First Name

}
}

default xml
values\
string name=f_nameFirst Name/string
values-cs-rCZ\
string name=f_nameFirst Name Other Language/string


When I'm watchig this.mCurrentConfig.locale value is still en_US
Is it my mistake or SDK doesn't support this locale changes?

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: Could Chinese developper register Android market?

2009-01-02 Thread EvgenyV

I'm Israeli developer.
I completed registration as well. But the question is whether we could
upload chargable application and get the income from Google market?

Thanks

On Dec 12 2008, 5:44 pm, cpedia cpe...@gmail.com wrote:
 Yes. Of course.
 I registered and successed. I use MasterCard of chinamerchantbank.

 On Dec 11, 9:02 am, honglian...@gmail.com honglian...@gmail.com
 wrote:



  hi all
      I Chinese developper have a MasterCard and want to register
  Android market. But I found the location item has not China. Would you
  like to let me know if I can ignore this item and use Chinese
  MasterCard (Bank of China) Android Market successfully? Thank you very
  much.- 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] Apostrophe question

2008-12-24 Thread EvgenyV

Hi all!

Some question regarding apostrophe as part of string-array items.

I have string array defined as following:

?xml version=1.0 encoding=utf-8?
resources
string-array name=my_arry
itemMen's info/item
itemDummy info/item
/string-array
/resources

In code I'm getting the values into string array
String my_array[] = this.getResources().getStringArray
(R.array.my_array_id);
String myFirstString = my_array[0];

The displayed myFirstString is  - Mens info without apostrophe.

I changed it to following using ascii code
string-array name=my_arry
itemMen#39;s info/item
itemDummy info/item
/string-array

Same result.

Thanks in advance,
Evgeny

--~--~-~--~~~---~--~~
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: how to access file system

2008-12-10 Thread EvgenyV

Hi!

I have similar question.
Can I install any external file xml or text file next to apk
like .config file?
It will allow me to send updates without actually binary changes.
Is it possible?

Thanks



On Nov 26, 8:18 pm, Christine [EMAIL PROTECTED] wrote:
 What do you mean by accessthefilesystem? You can read and write
 files as you would in any Java program.

 On Nov 26, 6:58 am, [EMAIL PROTECTED] wrote:



  Hi,

  Dose anybody know how toaccessfilesystem? What the
  meaning of the permission toaccessthe cachefilesystem?
  Is the cachefilesystem afilesystem of virtual machine?

  BW,
  DK
  2008.11.26

  ---
  新浪空间与朋友开心分享网络新生活!(http://space.sina.com.cn/)- 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Spinner background change - how?

2008-11-28 Thread EvgenyV

Hi All,

How can i change the background of spinner from code or from layot
xml?
I tried to change it from xml it becames some unexpected flat line :(
In addition if it's possible to change the trinagle color?

Thanks in advance,
Evgeny
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Howto take value for android:textSize from resources?

2008-11-28 Thread EvgenyV

Hi All,

I have defined buttons like following:
Button
android:id=@+id/button_1
android:text=1
android:textStyle=bold
android:textSize=30dip
android:textColor=@color/main_text_color
android:padding=3dip /
Button
android:id=@+id/button_2
android:text=2
android:textStyle=bold
android:textSize=@item/text_size - doesn't work:(
android:textColor=@color/text_color
android:padding=3dip /

Is it possible to use some value from resources to set
android:textSize=@item/text_size
like i'm using color attribute?

I have defined such some item in resources
resources
item type=string name=text_size value=30dip/item
color name=text_color#FF/color
/resources


Thanks in advance,
Evgeny

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Help me to test APK file on your real device

2008-11-22 Thread EvgenyV

Hi!

I have a similar question.
f it's possible to upload apk directly from comp to device?

Thanks

On Nov 22, 6:23 pm, Dorn Hetzel [EMAIL PROTECTED] wrote:
 I suppose you could also upload it to the marketplace under maybe the
 Demo category and name it TestMePlease :)



 On Sat, Nov 22, 2008 at 1:22 AM, Peter [EMAIL PROTECTED] wrote:

  Hi Ulziisaikhan,

  There's a (fairly) new service that enables developers to test their
  mobile application on a real device by a variety of different testers:

 http://www.testarmy.com/

  If you can't obtain (or afford) a real Android device then this could
  be a cheap option.

  Regards,
  Peter

  On Oct 10, 8:44 pm, Ulzii [EMAIL PROTECTED] wrote:
  Hi All,

  I have finished an application for the Android platform device.

  I am writing from Ulaanbaatar, Mongolia. It means there is no
  possibility to test apk file on real android gPhone device.

  Is there anyone who obtained gPhone, could you help me to test my APK
  file on your device.- 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---