[Galaxy S III Q&A, Help & Troubleshooting] KIMBASINGER:
Hello, my friends.

I don't like ask, but now my work is null in latest weeks, I have to look for any questions on the red and I don't obtain the solution... Finally I ask in this forum...

I have android 4.1.2 in my S3. I'll like insert in my lockscreen the weather forecast with 5 days and the text 'weather state'. ( likewise in the apk AccuweatherWidget_Main ).

I modified xml of the lockscreen widget (very easy), it was a

view

, this 'view' has any 'ids' defined in 'ids.xml' and 'public.xml', ( these 'ids' was source of the smali file 'ClockWidget$Weather.smali' in the android.policy.jar ).

http://xdaforums.com/showthread.php?t=2077292

The view in the xml I modified:

<view android:orientation="vertical" android:id="@id/clock_weather" android:paddingTop="8.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" class="com.android.internal.policy.impl.sec.ClockWidget$Weather">
<TextView android:textSize="16.0dip" android:textColor="#ffebebeb" android:ellipsize="none" android:gravity="center" android:id="@id/clock_weather_no_service" android:padding="15.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" android:shadowColor="@color/black" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1.0" />
<LinearLayout android:gravity="center" android:orientation="vertical" android:id="@id/clock_weather_data_box" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:id="@id/clock_weather_icon" android:layout_width="155.0dip" android:layout_height="128.0dip" />
<LinearLayout android:gravity="top" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_centerHorizontal="true">
<TextView android:textSize="20.0dip" android:typeface="sans" android:textStyle="bold" android:textColor="#fff6f7c9" android:gravity="bottom" android:id="@id/clock_weather_temp" android:layout_width="wrap_content" android:layout_height="24.0dip" android:layout_marginTop="3.0dip" android:shadowColor="#55000000" android:shadowDx="3.0" android:shadowDy="3.0" android:shadowRadius="1.0" />
<ImageView android:id="@id/clock_weather_temp_unit" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/keyguard_lockscreen_ic_celsius" />
</LinearLayout>
<TextView android:textSize="18.0dip" android:textColor="#fff9f9f9" android:ellipsize="marquee" android:gravity="bottom" android:id="@id/clock_weather_city" android:layout_width="wrap_content" android:layout_height="22.0dip" android:singleLine="true" android:shadowColor="#55000000" android:shadowDx="3.0" android:shadowDy="3.0" android:shadowRadius="1.0" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" android:marqueeRepeatLimit="marquee_forever" />
</LinearLayout>
</view>

The view call to class: class="com.android.internal.policy.impl.sec.ClockWidget$Weather", and in this smali it shows the variables Weathericon, WeatherCity, ... with your ids defined...

I studied a little smali, dalvik bytecode, but I don't risk to modify.

My question is:

In a xml, of a apk, can I insert any ids of the another apk? If it's posible, ¿How? ( I'll modify in this case manifest.xml, ids.xml, public.xml? )

Thanks for avanced, and for read me.

I'm sorry, for my english.

A embrace.

dkt