i18n problem

by tagore » Sat, 01 Nov 2008 06:00:53 GMT


Sponsored Links
 Hi, everyone
   I wonder if the android support i18n. If so, which part of the
source file do such thing? Please figure out the detail path of file
location in the Android source files.

Thanks

Tagore
--~--~---------~--~----~------------~-------~--~----~



i18n problem

by szeldon » Sat, 01 Nov 2008 06:46:14 GMT


 Hi,

Check the documentation.

 http://code.google.com/android/devel/resources-i18n.html 

"Coming Soon: Internationalization and Localization are critical, but
are also not quite ready yet in the current SDK. As the SDK matures,
this section will contain information on the Internationalization and
Localization features of the Android platform. In the meantime, it is
a good idea to start by externalizing all strings, and practicing good
structure in creating and using resources."



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. ProgressBar doesn't allow control of visibility in AppWidgetProvider App Widget?

I was trying to set a progress bar to View.INVISIBLE or View.GONE, or
View.VISIBLE inside an AppWidgetProvider. However, it doesn't seem to
want to do it. Setting visibility works fine with TextView fields or
ImageView fields or ImageButtons. However, ProgressBar doesn't seem to
work. It doesn't make sense that just the progress bar type isn't
supported for controlling visibility. Has anyone else seen this
problem?


The code:

    @Override
    public void onUpdate(Context context, AppWidgetManager
appWidgetManager, int[] appWidgetIds) {

        RemoteViews updateViews = new RemoteViews(context.getPackageName(),
R.layout.a_widget_home_screen);

        updateViews.setViewVisibility(R.id.progress_bar,
View.VISIBLE);
    }



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

        <ProgressBar android:id="@+id/progress_bar"
                android:layout_height="32px"
                android:layout_width="32px"
                android:indeterminate="true"
                android:layout_marginLeft="110px"
                android:layout_marginTop="120px"
                android:visibility="gone"
                />

</RelativeLayout>


This is the error:



08-07 17:42:42.633: WARN/AppWidgetHostView(102): updateAppWidget
couldn't find any view, using error view
08-07 17:42:42.633: WARN/AppWidgetHostView(102):
android.widget.RemoteViews$ActionException: view:
android.widget.ProgressBar can't use method with RemoteViews:
setVisibility(int)
08-07 17:42:42.633: WARN/AppWidgetHostView(102):     at
android.widget.RemoteViews$ReflectionAction.apply(RemoteViews.java:
443)
08-07 17:42:42.633: WARN/AppWidgetHostView(102):     at
android.widget.RemoteViews.performApply(RemoteViews.java:855)
08-07 17:42:42.633: WARN/AppWidgetHostView(102):     at
android.widget.RemoteViews.apply(RemoteViews.java:832)
08-07 17:42:42.633: WARN/AppWidgetHostView(102):     at
android.appwidget.AppWidgetHostView.updateAppWidget
(AppWidgetHostView.java:167)
08-07 17:42:42.633: WARN/AppWidgetHostView(102):     at
android.appwidget.AppWidgetHost.updateAppWidgetView(AppWidgetHost.java:
243)
08-07 17:42:42.633: WARN/AppWidgetHostView(102):     at
android.appwidget.AppWidgetHost$UpdateHandler.handleMessage
(AppWidgetHost.java:73)
08-07 17:42:42.633: WARN/AppWidgetHostView(102):     at
android.os.Handler.dispatchMessage(Handler.java:99)
08-07 17:42:42.633: WARN/AppWidgetHostView(102):     at
android.os.Looper.loop(Looper.java:123)
08-07 17:42:42.633: WARN/AppWidgetHostView(102):     at
android.app.ActivityThread.main(ActivityThread.java:3948)
08-07 17:42:42.633: WARN/AppWidgetHostView(102):     at
java.lang.reflect.Method.invokeNative(Native Method)
08-07 17:42:42.633: WARN/AppWidgetHostView(102):     at
java.lang.reflect.Method.invoke(Method.java:521)
08-07 17:42:42.633: WARN/AppWidgetHostView(102):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:782)
08-07 17:42:42.633: WARN/AppWidgetHostView(102):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
08-07 17:42:42.633: WARN/AppWidgetHostView(102):     at
dalvik.system.NativeStart.main(Native Method)

--~--~---------~--~----~------------~-------~--~----~

2. Flipping / Rotating TextView (or layout) upside-down

Hello, I'm trying to find a way to rotate a View, or (more
conveniently) an entire layout, upside down and have it stay that way.
I found the rotation and animation classes in the SDK, and these come
close to what I want, but at the end of the animation I want my Layout
to stay rotated; repeating the animation or just flipping back right-
side-up doesn't help me with my app unfortunately.

The only thing I can think of so far would be to find the source code
for the rotate class, and override it such that the "...and then flip
it back around to be right-side-up" code never happens. I'm not sure
exactly where I'd find the original rotate code for reference if I
were to do something that extensive however.

I've found references online to the full android source - is that
basically what I'd be looking at downloading to be able to attempt
something like this? Am I missing a simple option on the rotation that
would let it just stay put after I rotate it? Any help would be very
much appreciated! Thank you!

--~--~---------~--~----~------------~-------~--~----~

3. Multiple line Notification

4. In call dialpad/menu confusion - am I the only one?

5. PendingIntent Flag and AlarmManager behavior ?

6. take screenshot programmatically

7. Android Lap top connection