Fix Computer Issues Today!

by Fix Computer Today » Fri, 20 May 2011 15:34:55 GMT


Sponsored Links
 I can lose anything but my PC. It is my work, life and blood. So you can 
imagine how I reacted when my PC automatically rebooted twice in a day for 3 
consecutive days. Thankfully I was able to subscribe to *Fix Computer Today 
*services and I was never wrong in investing to them. I call their hotline 
and their certified technicians fix 
computer< http://www.fixcomputertoday.com/> ;problems immediately and I was back 
up and running in real time. So if you 
are also experiencing computer issues let the fix computer experts settle 
them for you. Call *1-888-216-6589* or visit 
 http://www.fixcomputertoday.com/ 

-- 



Other Threads

1. Can't get my widget to show up?

I followed the tutorial off code.google.com to add widgets to your
app. For some reason, when I run the app on the phone for testing,
then long click the home screen to add widgets, my widget is not an
option. I imagine I am doing something wrong, but I thought I followed
the tutorial pretty well. Here is some of my code, please offer a
suggestion of why I can't add my widget. BTW i dont care that it
doesnt do anything yet, or even if it breaks, I just want to see it as
an option first (small steps). Thanks for any help or feedback

Any * you see, is just a place holder for the real name.

My widget provider

public class * extends AppWidgetProvider {

    public void onUpdate(Context context, AppWidgetManager
appWidgetManager, int[] appWidgetIds) {
        final int N = appWidgetIds.length;

        // Perform this loop procedure for each App Widget that
belongs to this provider
        for (int i=0; i<N; i++) {
            int appWidgetId = appWidgetIds[i];

            // Create an Intent to launch ExampleActivity
            Intent intent = new Intent(context, MobileApp.class);
            PendingIntent pendingIntent = PendingIntent.getActivity
(context, 0, intent, 0);

            // Get the layout for the App Widget and attach an on-
click listener to the button
            RemoteViews views = new RemoteViews(context.getPackageName
(), R.layout.widget);
            views.setOnClickPendingIntent(R.id.widget_next_label,
pendingIntent);

            // Tell the AppWidgetManager to perform an update on the
current App Widget
            appWidgetManager.updateAppWidget(appWidgetId, views);
        }
    }
}


My manifest

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.*.android"
      android:versionCode="1"
      android:versionName="1.0.0">

  <application
    android:label="*">

    <activity
      android:name=".MobileApp"
      android:label="*"
      android:configChanges="orientation|keyboardHidden"
      android:theme="@style/Theme.NoBackground"
      android:icon="@drawable/icon_gs">
      <intent-filter>
          <action android:name="android.intent.action.MAIN" />
          <category android:name="android.intent.category.LAUNCHER" />
      </intent-filter>
                </activity>
    <service android:name=".audio.AudioPlayerService"
android:exported="false" android:enabled="true" />
  </application>

<receiver android:name=".*AppWidgetProvider" android:label="* Widget">
    <intent-filter>
        <action
android:name="android.appwidget.action.APPWIDGET_UPDATE" />
    </intent-filter>
    <meta-data android:name="android.appwidget.provider"
               android:resource="@xml/app_widget_info" />
</receiver>



  <uses-sdk minSdkVersion="2" />
        <uses-permission android:name="android.permission.INTERNET"/>
  <uses-permission android:name="android.permission.READ_PHONE_STATE"/
  <uses-permission
android:name="android.permission.ACCESS_NETWORK_STATE"/>
  <uses-permission android:name="android.permission.WAKE_LOCK"/>
</manifest>


and my info .xml file...


<?xml version="1.0" encoding="utf-8"?>
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/
android"
    android:minWidth="294dp"
    android:minHeight="72dp"
    android:updatePeriodMillis="86400000"
    android:initialLayout="@layout/widget" >
</appwidget-provider>


my widget layout file

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

        <Button
                android:id="@+id/widget_play_button"
                android:layout_width="25px"
                android:layout_height="25px"
                android:layout_alignParentLeft="true"
                android:layout_centerVertical="true"
                android:text="Play"     />

        <Button
                android:id="@+id/widget_next_button"
                android:layout_width="25px"
                android:layout_height="25px"
                android:layout_toRightOf="@id/widget_play_button"
                android:text="Next" />

        <TextView
                android:id="@+id/widget_song_label"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_toRightOf="@id/widget_next_button"
                android:layout_marginTop="5px"
                android:text="Song Name by Song Artist"
                android:textSize="16px"/>

        <TextView
                android:id="@+id/widget_next_label"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_toRightOf="@id/widget_next_button"
                android:layout_below="@id/widget_song_label"
                android:layout_marginTop="5px"
                android:textSize="10px"
                android:text="Next Song by Next Artist"/>

</RelativeLayout>
--~--~---------~--~----~------------~-------~--~----~

2. Graphics

Hi folks,

I was looking at the examples of the android graphics especially the
Xfermodes.java.

When I apply a SRC_IN Xfermode like in the example I have the expected
result.
But when I add a translation between the drawings of the 2 bitmaps as
below, the operation is not complete (the DestB is only partially
because of the translation).

How can I have my operation fully completed and my translation done?

            // draw the checker-board pattern
            paint.setStyle(Paint.Style.FILL);
            paint.setShader(mBG);
            canvas.drawRect(0, 0, W, H, paint);

            // draw the src/dst example into our offscreen bitmap
            int sc = canvas.saveLayer(0, 0, W, H, null,
                                      Canvas.MATRIX_SAVE_FLAG |
                                      Canvas.CLIP_SAVE_FLAG |
                                      Canvas.HAS_ALPHA_LAYER_SAVE_FLAG
|
 
Canvas.FULL_COLOR_LAYER_SAVE_FLAG |
                                      Canvas.CLIP_TO_LAYER_SAVE_FLAG);

            canvas.drawBitmap(mDstB, x, y, paint);
            paint.setXfermode(sModes[0]);  //SRC_IN

            canvas.translate(30, 30);

            canvas.drawBitmap(mSrcB, x, y, paint);
            paint.setXfermode(null);
            canvas.restoreToCount(sc);

Thanks!
Bart.

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

3. Map object recycling in MapView

4. Problem in Http Get method....pls tel me ...

5. DDMS "File Explorer" not showing any contents

6. Thinking about adding UBIFS utilities into platform/external/

7. Judging application for the ADC 2