Source code fro Genie Widget

by droidin.net » Tue, 20 Apr 2010 11:14:21 GMT


Sponsored Links
 Hi guys,

Can anyone help me find source code for Android's Weather and News app
(Genie Widget). It doesn't look like it can be found at 
 http://android.git.kernel.org/ 
and Google's Code Search does not return any results ether

Thanks,

Bo Stone

--



Source code fro Genie Widget

by a a » Wed, 21 Apr 2010 09:18:37 GMT


 Dear Stone,

 http://android-sky.googlecode.com/svn/trunk/Sky/ 

2010/4/20 droidin.net <bost...@gmail.com>:
>


Sponsored Links


Source code fro Genie Widget

by Dianne Hackborn » Wed, 21 Apr 2010 09:26:14 GMT


 Sorry that isn't the code for the news and weather app.  I don't think the
code for that app has been made available at this point.




> >



Source code fro Genie Widget

by droidin.net » Thu, 22 Apr 2010 03:46:44 GMT


 Nice widget, but no cigar I'm affraid. I'm actually after different
functionality, namely I want to see how they implemented rotating list
of items where headlines constantly rotating in the widget's one at
the time



> >



Source code fro Genie Widget

by droidin.net » Fri, 23 Apr 2010 00:25:02 GMT


 Dianne,

Thanks for your confirmation. What would be a suitable replacement? I
need an example on how to implement widget functionality where with
given list of entries widget continuously displays these in a loop
just like a News widget does?

Bo




> > >



Source code fro Genie Widget

by Dianne Hackborn » Fri, 23 Apr 2010 01:42:06 GMT


 That app in its current form is very much not a good example. :}  I don't
know off-hand of an example to point you to.






> > > >



Other Threads

1. SQLiteDatabase

Is there a way to access the SQLiteDatabase I have created in my Activity in
a service?

TIA
Newbie

-- 

2. Eclipse Loan calculator help!

Hello all!

I'm starting out and new to the development of android applications
and also new to the java programming.  I'm trying to make a app that
will allow me to calculate a loan but I am running into some trouble
and need assistance.  Having virtually 0 experience with java I
researched java code that I could use but it did not seem to convert,
I have went through and tried to changed most the of the what I
thought needed to be changed but eclipse does not seem to recognize
what a "parseDouble" is.  How can I make this code work? below is the
code that i have in my main java file:

package com.android.loancalc;

import java.text.DecimalFormat;
import java.text.NumberFormat;

import com.project.calculator.R;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;


public class main extends Activity
{
         double principal; // original principal

          double intRate; // interest rate

          double numYears; // length of loan in years

          final int payPerYear = 12;
          NumberFormat nf;

        public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        final DecimalFormat df = new DecimalFormat ("#,###.##");

        final TextView txtAnswer =
                (TextView) findViewById(R.id.txt_payments);

        Button btCal = (Button) findViewById(R.id.bt_calc);

        btCal.setOnClickListener(new View.OnClickListener()

        {

                        public void onClick(View arg0)
                        {
                                double result = 0.0;

                                TextView amountStr = (TextView) 
findViewById(R.id.txt_pricipal);
                                TextView periodStr = (TextView) 
findViewById(R.id.txt_years);
                                TextView rateStr = (TextView) 
findViewById(R.id.txt_interest);

                                try {
                                        if (amountStr.length() != 0 && 
periodStr.length() != 0
                                                  && rateStr.length() != 0) {

                                                principal = 
Double.parseDouble(amountStr);
                                                numYears = 
Double.parseDouble(periodStr);
                                                intRate = 
Double.parseDouble(rateStr) / 100;

                                                result = compute();

                                                
txtAnswer.setText(nf.format(result));
                                        }

                        }
                                catch (NumberFormatException exc)
                                        {
                                                txtAnswer.setText("Opps");
                                                Log.v("myApp",exc.toString());
                                        }
                }


                double compute()
                        {
                                double numer;
                                double denom;
                                double b, e;

                            numer = intRate * principal / payPerYear;

                            e = -(payPerYear * numYears);
                            b = (intRate / payPerYear) + 1.0;

                            denom = 1.0 - Math.pow(b, e);

                            return numer / denom;
                        }
        });
    }
}


Thanks for the help!

-- 

3. regarding monkey runner Tool

4. Promotional video

5. Unrevoked

6. Count network traffic for each activity

7. trace a route in mapview