[android-developers] Digest for android-developers@googlegroups.com - 25 Messages in 16 Topics

Comments: (0)

Group: http://groups.google.com/group/android-developers/topics

    Daniel Chacon <cubangt2@gmail.com> Apr 30 11:06AM -0500  

    Not sure about SQLite, but "order" is a reserved word for SQL, maybe that
    is the issue
    maybe try "orders" instead.


    lbendlin <lutz@bendlin.us> Apr 30 10:24AM -0700  

    if you have to use it, encapsulate it with square brackets.
    Create table [order] ...
    On Tuesday, April 30, 2013 12:06:39 PM UTC-4, Dan Cha wrote:


    Romain Guy <romainguy@android.com> Apr 30 10:14AM -0700  

    Measurement happens on the device and it measures how much time it takes to
    execute the draw() method of a View.
    Romain Guy
    Android framework engineer


    Ian Ni-Lewis <ilewis@google.com> Apr 30 09:28AM -0700  

    This is a known issue that will be fixed in a future version of Android.
    Calling prepare() unfortunately has no effect.
    On Saturday, April 27, 2013 12:45:33 PM UTC-7, Larry Meadors wrote:


    Larry Meadors <larry.meadors@gmail.com> Apr 30 10:32AM -0600  

    Thanks Ian - any known workaround?


    Ian Ni-Lewis <ilewis@google.com> Apr 30 09:43AM -0700  

    Only the one you've already found: wait for a couple seconds until the
    stream duration becomes non-zero.
    Ian Ni-Lewis
    Staff Developer Programs Engineer
    Android Developer Relations


    Daniel Chacon <cubangt2@gmail.com> Apr 30 11:03AM -0500  

    Im sure its set, but did you make sure "USB debugging" is enabled on the
    phone? its under developer options( this is for the connecting to pc issue
    you listed)


    Ravi Tewari <ravinimbus@gmail.com> Apr 30 07:40AM -0700  

    I need to create an app that will play a song after every one hour. The app
    will be running all the times but in background. As soon as it is 9
    o'clock, it will play a song. Once song is over, app should go idle. Again
    as soon as it is 10 o'clock, it will again play that song. So on for
    365*24*7... Even after boot up the device, the app should get started

    So is this possible, if yes, can you help/guide me in this?
    Appreciate your response !

    Peaceful time ahead...


    Ravi Tewari <ravinimbus@gmail.com> Apr 30 08:28PM +0530  

    Thanks Piren.. Will look at it... But I was looking if someone already has
    done similar


    bob <bob@coolfone.comze.com> Apr 30 08:47AM -0700  

    Maybe this will help?
    *// Get a reference to the Alarm Manager *
    *AlarmManager alarmManager = (AlarmManager) getSystemService(
    Context.ALARM_SERVICE); *
    *// Set the alarm to wake the device if sleeping. *
    *int alarmType = AlarmManager.ELAPSED_REALTIME_WAKEUP; *
    *// Schedule the alarm to repeat every half hour. *
    *long timeOrLengthofWait = AlarmManager.INTERVAL_HALF_HOUR; *
    *// Create a Pending Intent that will broadcast and action *
    *Intent intentToFire = new Intent( ALARM_ACTION); *
    *PendingIntent alarmIntent = PendingIntent.getBroadcast( this, 0,
    intentToFire, 0); *
    *// Wake up the device to fire an alarm in half an hour, and every *
    *// half-hour after that. *
    *alarmManager.setInexactRepeating( alarmType, timeOrLengthofWait,
    timeOrLengthofWait, alarmIntent);*
    *Meier, Reto (2012-04-05). Professional Android 4 Application Development
    (Wrox Professional Guides) (Kindle Locations 9250-9257). John Wiley and
    Sons. Kindle Edition. *
    On Tuesday, April 30, 2013 9:58:19 AM UTC-5, Ravi Tewari wrote:


    bob <bob@coolfone.comze.com> Apr 30 08:20AM -0700  

    Maybe in the *onPause* method of the SongPlay activity, you tell it to stop
    playing the song?
    On Monday, April 29, 2013 4:44:53 PM UTC-5, Luis Torres Coronel wrote:


    "Beyza Nur Kökcan" <beyzakok@gmail.com> Apr 30 07:09AM -0700  

    I have found tutorials about how to play animated gifs in android by
    reading it from an asset or using a drawable object. But what I want is to
    read a gif file from sdcard.
    I have changed the project reading gif from assets a little bit.
    In the main activity, I basically create gifMovieView then setContent(
    In the constructor of the GifMovieView class, I have initailized the Movie
    object like in the project "eu.andlabs.tutorial.animatedgifs". But I have
    used decodeFile giving the file path instead of decodeStream getting
    File file = new File


    mMovie = Movie.decodeFile(file.getPath());
    I HAVE GİVEN I/O EXCEPTION for this line. It finds the file but decodeFile
    gives exception.
    In onDraw ;
    protected void onDraw(Canvas canvas) {
    final long now = SystemClock.uptimeMillis();
    if (mMoviestart == 0) {
    mMoviestart = now;



    final int relTime = (int)((now - mMoviestart) % mMovie.duration());
    mMovie.draw(canvas, 10, 10);
    BECAUSE OF THE EXCEPTION, movie.duration becomes 0 causing the error.
    Any suggestions?
    Thank you in advance


    bob <bob@coolfone.comze.com> Apr 30 07:54AM -0700  

    I have played animated GIFs on Android before simply by loading them in a *
    On Tuesday, April 30, 2013 9:09:26 AM UTC-5, Beyza Nur Kökcan wrote:


    MathieuB <blanchmh@gmail.com> Apr 30 08:02AM -0700  

    My guess is that you cannot send a Java array to javascript directly.
    Maybe if you convert the Java array to JSONArray before sending it to
    javascript, then you could parse the JSONArray when received.


    Daniel Chacon <cubangt2@gmail.com> Apr 30 09:57AM -0500  

    I will try and post the code later tonight or tomorrow to see if someone
    can point out what ive done wrong..


    bob <bob@coolfone.comze.com> Apr 30 07:14AM -0700  

    The problem is that you are not calling super.onCreate. Make this the
    first line of your onCreate method:
    On Monday, April 15, 2013 10:52:18 PM UTC-5, Sachin Sharma wrote:


    Piren <gpiren@gmail.com> Apr 30 07:35AM -0700  

    Are you clairvoyant? how did you figure that is the issue from looking just
    at the screenshot of a Fatal Exception?
    On Tuesday, April 30, 2013 5:14:27 PM UTC+3, bob wrote:


    Ravi Tewari <ravinimbus@gmail.com> Apr 30 07:28AM -0700  

    Thanks so much.. Since I was novice so couldn't catch it. I am speeding up
    now... Hope to do better now..

    Peaceful time ahead..



    Craig Payne <craig.r.payne@gmail.com> Apr 30 02:48PM +0200  

    Hi Ian,
    You mean I can use my release key for development also? I do have one, of
    course, but I will have to look into how to do this. Can you point me in
    the right direction, perhaps? That solution will still be a bit fiddly,
    because I have a FREE and PRO version of the app which both use different


    Ian Ni-Lewis <ilewis@google.com> Apr 30 07:21AM -0700  

    +retomeier, who assured me that this is possible :-)
    Ian Ni-Lewis
    Staff Developer Programs Engineer
    Android Developer Relations


    bob <bob@coolfone.comze.com> Apr 30 07:18AM -0700  

    It sounds like you will want to read this book:
    *Beginning Android Games* *by Mario Zechner and Robert Green*
    I have it, and I enjoyed it greatly.
    On Tuesday, April 16, 2013 5:03:21 PM UTC-5, yaqub seyidov wrote:


    lbendlin <lutz@bendlin.us> Apr 30 06:45AM -0700  

    Don't you just need to install one of these fake screen crack apps to
    cancel out the effect?
    On Tuesday, April 30, 2013 2:54:28 AM UTC-4, Piren wrote:


    grady <mcgheegrady@gmail.com> Apr 30 06:24AM -0700  

    Is there a way to get Talkback to associate data cells to column and row
    headers in a mobile web data table like Voice Over does? The best I can get
    it so far is recognize the aria role columnheader and rowheader in mobile
    chrome but not the association to the data cells.



You received this message because you are subscribed to the Google Group android-developers.
You can post via email.
To unsubscribe from this group, send an empty message.
For more options, visit this group.

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
For more options, visit this group at
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

[android-developers] Digest for android-developers@googlegroups.com - 25 Messages in 22 Topics

Comments: (0)

Group: http://groups.google.com/group/android-developers/topics

    gabon <nuthinking@gmail.com> Apr 30 04:52AM -0700  

    Hi guys, I design and develop for clients compelling user experiences on
    mobile platforms. I am well covered on the iOS front but I would like to
    start offering also Android development.
    Design is an important aspect of the projects I work on, so it is mandatory
    having passion and experience on delivering software, especially the
    front-end, at the highest standard.
    If interested, please get in touch at: info AT nuthinking DOT com
    Have a great day!


    Jadranko Bodiroga <jadrankobodiroga1985@gmail.com> Apr 30 11:44AM +0200  

    Probaj ovo: (try this :)
    On Mon, Apr 29, 2013 at 10:00 PM, Ivan Stamenkovic <peacemaker.994@gmail.com


    Parthi K <parthisoft13@gmail.com> Apr 30 03:03PM +0530  

    Heloo seyidov ,
    According to your requirements you will get solution in internet .
    https://developer.android.com this site enough
    Thanks & Regards,
    Software Engineer
    Mode FinServer Pvt. Ltd.
    Cell: +7204205850
    Email: parthisoft13@gmail.com <shoaibjdev@gmail.com> |parthiban.k
    @modefinserver.com <shoaib.k@modefinserver.com>


    Vishal Pawale <vishalpawale123@gmail.com> Apr 30 02:12AM -0700  

    Do this->
    1. Remove the statement which is importing "R"
    2. Clean the project from Project -> Clean
    3. Rebuild.
    On Friday, April 19, 2013 7:18:30 AM UTC+5:30, Jacob Bosarge wrote:


    TreKing <trekingapp@gmail.com> Apr 30 03:28AM -0500  

    > How to fix it!!!Help
    Consider debugging your application.
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices


    Piren <gpiren@gmail.com> Apr 30 02:11AM -0700  

    Learning the route to a destination doesn't teach you how to drive a car...
    you should first read the owner's manual.
    http://developer.android.com/tools/index.html (the whole of it, not just
    the first page)
    On Tuesday, April 16, 2013 6:52:18 AM UTC+3, Sachin Sharma wrote:


    BearTi <mlrtimbo@gmail.com> Apr 30 01:14AM -0700  

    I´ve a defined a WebView with a JavaSciptInterface:
    myWebView.addJavascriptInterface(new WebAppInterface(this), "Android");
    In this Interface I have a Method like:
    > test [1] = "2..";
    > return test;
    > }
    Now on my website i want to receive this array:
    <script type="text/javascript">
    > var array = new Array();
    array = Android.getTest(); //didn´t work
    array = JSON.parse(Android.getTest()); // didn´t work, too
    > </script>
    The array alwas is displayed as "undefined". Am I doing something wrong or
    is it just not possible?


    "AndroidBangalore.com" <sapna.saxena777@gmail.com> Apr 30 01:36AM -0700  

    Greetings from Codefrux Technologies!
    Learn how to crack or to do a preparation for Android interview in* just
    1500 INR/*-.
    Workshop starting on *27 MAY 2013 & 28 MAY 2013.*
    *Other Workshops:*
    Learn iPhone app development in 2 days @ just 1500 INR
    Workhsop dates: 18 MAY & 19 MAY 2013.
    *Other Courses:*
    *Big Data* training starting from 01 June 13
    *Advance .Net* with sharepiont, WCF,WPF, Webservices- new batch starting
    from 20 May 2013
    *Advance Java* with J2EE,Hibernate,Struts,Springs, JBOSS, weblogic,tomcat,
    etc starting from 20 MAY2013.
    *Testing Automation tools* like QTP, Selenium,JUNIT starting from 20
    *Mobile testing* with Robotium and Junit starting soon!
    *Red hat Linux* certification training starting from 01June 2013
    For more info, pls contact us @ 08041714862/63 or email us@
    Visit us @ www.codefruxtechnology.com
    On Monday, April 29, 2013 5:07:57 PM UTC+5:30, BearTi wrote:


    Miquel Escarda <miquelescarda@gmail.com> Apr 29 10:07AM -0700  

    I am trying to use de Picasa API in my Android Application but i can't not
    find the way for add the jars correctly.
    I add the .jar files in the directory /libs and I do "Add Building Path"
    but always I obtain the same error:
    I find a lot of people with the same problem in Internet but no solutions.
    Somebody know the method for use this API?
    Thank you very much,


    shoaib khan <skkshoaib@gmail.com> Apr 16 08:17PM -0700  

    I am creating a table named order in the database order.db.
    I am getting error during the execution of the function call
    Error is as follows:
    04-17 02:06:35.014: E/AndroidRuntime(4612):
    android.database.sqlite.SQLiteException: near "order": syntax error (code
    1): , while compiling: create table order ( _id integer primary key
    autoincrement, orderName text not null, orderCommission text not null,
    orderDate text not null, orderSlot text not null, orderGain text not null,
    orderNO text not null, orderValue text not null);
    package com.shoaib.lotteryerp.helper;
    import android.content.Context;
    import android.database.sqlite.SQLiteDatabase;
    import android.database.sqlite.SQLiteOpenHelper;
    import android.util.Log;
    public class MySQLiteHelperOrder extends SQLiteOpenHelper {

    public static final String TABLE_ORDER = "Order";
    public static final String COLUMN_ID = "_id";
    public static final String COLUMN_NAME = "orderName";
    public static final String COLUMN_DATE="orderDate";
    public static final String COLUMN_ORDERNO="orderNO";
    public static final String COLUMN_SLOT="orderSlot";

    public static final String COLUMN_ORDERVALUE="orderValue";
    public static final String COLUMN_COMMISSION="orderCommission";
    public static final String COLUMN_GAIN="orderGain";
    private static final String DATABASE_NAME = "order.db";
    private static final int DATABASE_VERSION = 2;

    // Database creation sql statement
    private static final String DATABASE_CREATE = "create table "
    + " integer primary key autoincrement, " + COLUMN_NAME
    + " text not null, " + COLUMN_COMMISSION + " text not null,
    + COLUMN_DATE + " text not null, "
    + COLUMN_SLOT + " text not null, "
    + COLUMN_GAIN + " text not null, "
    + COLUMN_ORDERNO + " text not null, " + COLUMN_ORDERVALUE
    + " text not null);";

    MySQLiteHelperOrder(Context context) {
    super(context, DATABASE_NAME, null, DATABASE_VERSION);

    public void onCreate(SQLiteDatabase database) {

    public void onUpgrade(SQLiteDatabase db, int oldVersion, int
    newVersion) {
    "Upgrading database from version " + oldVersion + " to "
    + newVersion + ", which will destroy all old


    Sharmila Harsha <sharmila.h.shukthij@gmail.com> Apr 15 10:06PM -0700  

    hello i am working on android source code...
    i need source code of android's cupcake version,,,,
    it is not available https://android.googlesource.com/platform/manifest/+refshere....
    where can i get t..
    can anybody help me in this regard....


    vikram raj <vikramraj1991@gmail.com> Apr 28 09:02AM -0700  

    I am developing a application in which i want to send image content in
    imageview so please help me if anyone know to do this.
    thaks in andvance


    spshewale@gmail.com Apr 17 01:24AM -0700  

    I m new to android . I would like to insert *checkbox* along with data and
    then enter text data and insert this data in SQLLite how should I achieve
    this in android 2.3?
    I tried by using ImageView but i didnt succeeded?TEll me how to achieve
    this.Also i tried for TableLayout but it has limitation that no of rows
    fixed .And if this is not possible in android 2.3 then tell me which
    version should i use?


    Nathan <westphal506@gmail.com> Apr 26 09:20AM -0700  

    I can not figure out what is happening here for the life of me. Everything
    was working fine. I went to bed one night and came back the next and now my
    app will not read or write to my db and gives me no errors. Please help any
    advice would be great.
    My DB Handler:
    import android.content.ContentValues;
    import android.content.Context;
    import android.database.Cursor;
    import android.database.sqlite.SQLiteDatabase;
    import android.database.sqlite.SQLiteOpenHelper;
    public class DatabaseHandler extends SQLiteOpenHelper {
    // All Static variables
    // Database Version
    private static final int DATABASE_VERSION = 1;

    // Database Name
    private static final String DATABASE_NAME = "GP";

    // Contacts table name
    private static final String TABLE_VERSION = "GPVersion";

    // Contacts Table Columns names
    private static final String KEY_ID = "id";
    private static final String KEY_VERSION = "name";

    public DatabaseHandler(Context context) {
    super(context, DATABASE_NAME, null, DATABASE_VERSION);
    public void onCreate(SQLiteDatabase db) {
    // TODO Auto-generated method stub
    + ")";
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
    // TODO Auto-generated method stub

    // Create tables again
    // Adding new version
    void addGPVersion(String version) {
    SQLiteDatabase db = this.getWritableDatabase();

    ContentValues values = new ContentValues();
    values.put(KEY_ID, "0"); // Pair
    values.put(KEY_VERSION, version); // Pair

    // Inserting Row
    db.insert(TABLE_VERSION, null, values);
    db.close(); // Closing database connection

    // Getting students Count
    public String getGPVersion() {
    SQLiteDatabase db = this.getReadableDatabase();
    + KEY_ID + "='0'";
    String z;

    Cursor cursor = db.rawQuery(q,null);
    if (cursor != null && cursor.getCount()>0) {
    return z;

    return "na";

    Main Activity:
    protected void onCreate(Bundle savedInstanceState) {
    private void CheckGPVersion()
    DatabaseHandler db = new DatabaseHandler(this);
    String a = "";
    a = db.getGPVersion();
    EditText txtEffortCode = (EditText)
    public void onGoClick(View view) // Input Effort Code
    EditText txtEffortCode = (EditText) findViewById(R.id.txtEffortCode);
    if (txtEffortCode.getText().length() != 0){
    //Do Something
    DatabaseHandler db = new DatabaseHandler(this);

    Toast.makeText(this, "Input Success!", Toast.LENGTH_SHORT).show();
    //Alert no code input
    Toast.makeText(this, "You must enter 'EFFORT CODE'!",
    While it creates the database or so I think it does as the app shows under
    data 4.00K. When it was inputting data the other night, the data field
    showed 12.00K. Argh, what is going on here? I use sqlite on many other apps
    and they work fine. Did something get corrupt? I tried cleaning the
    project, rebooting etc. nothing. Thanks in advance.


    Kris Adams <shinigami.kris@gmail.com> Apr 28 01:16PM -0700  

    I just updated so I can develop for 4.2.2 but when I create a new project,
    only 4.2 shows up as an option (and below) not 4.2.2
    Also when I try to plug my phone into my PC to test an app, nothing
    happens, it doesn't show up on my phone. I did develop one for 4.2 and my
    phone is 4.2.2 would that matter when testing?


    John Gu <zijiangu@gmail.com> Apr 25 05:18PM -0700  

    On my Android 2.3.6, when I open a market intent with a utf-8 encoded
    referrer, it displays in LogCat:
    Starting activity: Intent { act=android.intent.action.VIEW
    (has extras) } from pid 3044
    But on 4.2.2 for the same market url, I see:
    START u0 {act=android.intent.action.VIEW dat=http://market.android.com/details?id=com.myapp&referrer=test=1&test2=2 cmp=com.android.vending/com.google.android.finsky.activities.MainActivity (has extras)} from pid 2474
    This seems to break how the referrer gets passed to the BroadcastReceiver, as when I read onReceive for the com.android.vending.INSTALL_REFERRER intent:
    String referrer = intent.getStringExtra("referrer");
    The value of referrer is only "test=1".


    Jonathan Wu <jonathan09886@gmail.com> Apr 29 07:32PM -0700  

    Dear sirs,
    Sorry, "openTypedAssetFileDescriptor" found a very strange place, that is marked
    as the red , "releaseUnstableProvider" seems been performed twice.
    Not sure if I understand it correctly, Thank you in advance.

    *public final AssetFileDescriptor openTypedAssetFileDescriptor(Uri uri,*
    *String mimeType, Bundle opts) throws FileNotFoundException { *
    IContentProvider unstableProvider =
    if (unstableProvider == null)
    throw new FileNotFoundException("No content provider: " +

    IContentProvider stableProvider =
    AssetFileDescriptor fd =

    fd = unstableProvider.openTypedAssetFile(uri, mimeType,
    if (fd == null)
    // The provider will be released by the finally{}

    } catch (DeadObjectException e)
    // The remote process has died... but we only hold an
    // reference though, so we might recover!!! Let's
    // This is

    stableProvider =
    if (stableProvider == null)
    throw new FileNotFoundException("No content provider: " +

    fd = stableProvider.openTypedAssetFile(uri, mimeType,
    if (fd == null)
    // The provider will be released by the finally{}



    if (stableProvider == null)
    stableProvider =

    *releaseUnstableProvider(unstableProvider);* =>
    ParcelFileDescriptor pfd = new

    // Success! Don't release the provider when exiting,
    // ParcelFileDescriptorInner do that when it is
    stableProvider =

    return new AssetFileDescriptor(pfd,


    } catch (RemoteException e)
    // Whatever, whatever, we'll go
    throw new
    "Failed opening content provider: " +
    } catch (FileNotFoundException e)
    } finally
    if (stableProvider != null)


    if (unstableProvider != null)





    Palmer Eldritch <the.ubik@gmail.com> Apr 22 05:55AM -0700  

    Excuse me I am facing a similar issue with my (twice posted) "Exported
    receiver does not require permission"
    Is some human moderating the forums or some machine - which obviously fails
    Please amend this situation - it is very frustrating - and no, I am no n00b
    - these are no SO questions - check my bug reports for one.
    On Wednesday, April 10, 2013 1:21:29 AM UTC+3, Antonym wrote:


    shailesh <shaileshs038@gmail.com> Apr 27 02:57AM -0700  

    I am new to android and ndk. I want to develop an android application
    which uses camera open in a frame such like instagram application (Camera
    in a frame ). If I make the manually it varies device to device. and
    rotation also. So I think it should better with use of ndk. Is It so.
    Please Help me how to open and control to open camera in frame Universal
    code. Any link or suggestion will be very helpful..


    Surabhi Saxena <ssurabhi16@gmail.com> Apr 22 06:48PM +0530  

    How can we change focus from edit text to trxt view at runtime where edit
    text calculates some value only if the focus is then changed to other


    Indra Wahyono <running.0906@gmail.com> Apr 14 11:54PM -0700  

    how to reverse/retrieve byte to audio/sound source code??
    i don't know how to make it??
    just this, i haven't solve the problem..
    please share with me if know about this..


    Piren <gpiren@gmail.com> Apr 29 11:54PM -0700  

    I do wonder... if you analyze the fractures and how they reflect and
    refract light, maybe it's possible to do manipulate the display in a way
    that counter acts the fracture thus making it appear less visible and the
    display to appear unbroken...
    Would still be cracked though :-P
    On Tuesday, April 30, 2013 1:06:15 AM UTC+3, Lew wrote:


    Pent <support@apps.dinglisch.net> Apr 29 11:17PM -0700  

    > This is seriously disheartening and I am greatly disappointed in the way Google handles this!
    Ah, reminds me of my early Android Market days. With a bit more
    'Google experience' you'll become disillusioned and resigned instead.


You received this message because you are subscribed to the Google Group android-developers.
You can post via email.
To unsubscribe from this group, send an empty message.
For more options, visit this group.

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
For more options, visit this group at
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

[android-developers] Digest for android-developers@googlegroups.com - 25 Messages in 25 Topics

Comments: (0)

Group: http://groups.google.com/group/android-developers/topics

    Sachin Sharma <sachiins261@gmail.com> Apr 15 08:52PM -0700  

    I am developing my first app using android tutorials given on android
    developers site.When i run the app it shows me message "Application has
    stopped unexpectedly force close".How to fix it!!!Help


    Lisa Neigut <niftynei@gmail.com> Apr 29 02:15PM -0700  

    Following up on extrapedestrian's comment, this is what worked for me.
    Inside a custom OptionsSpinnerAdapter (extends ArrrayAdapter implements
    public View getDropDownView(int position, View convertView, ViewGroup
    parent) {
    View view = convertView;
    ... code to set up view and text ...
    if (!option.isAvailable()) {
    view.setEnabled(false); // greys out the text
    view.setClickable(true); // makes item unclickable

    return view;
    On Saturday, March 13, 2010 10:20:26 AM UTC-5, extrapedestrian wrote:


    AviS <stolpera@gmail.com> Apr 17 05:02AM -0700  


    I am trying to use the face detection method (level 14) I have a device -
    Nexus 7 Level 17 4.2, and it does not detect any faces (returns 0).

    Please advise.



    Luis Torres Coronel <brandot@gmail.com> Apr 29 02:44PM -0700  

    Hi guys, a question,
    I have three songs in a list (listview), selected one of these will launch
    a new activity and plays the song. Return to the previous activity, select
    a new song and this also is playing together with the above at once, how
    could avoid this?


    Terran Brown <terranmichaelbrown@gmail.com> Apr 21 09:26AM -0700  

    I've decided after using HTML5 for so long and having got a reasonable
    understanding of it to wade in to Java for Android. Using the Wizard in
    Eclipse ( Scrollable Tabs + Swipe ) and the ADT I've created a basic tabbed
    My problem is that I have been attempting to take that example further so I
    can refer to different layouts on each tab. I've refereed to two different
    threads on here the results of which you can see as attached code.
    Application opens up fine until I slide to the next screen/fragment.
    I'm still finding my feet with the log cat but to me the attached log
    doesnt point to a specific error place only that the error occurs.
    I would love to get some advice on where to look, if you can see the issue
    or some general pointers to send me in the right direction.
    Thanks In Advance
    10-28 23:20:17.002: W/dalvikvm(1432): threadid=1: thread exiting with
    uncaught exception (group=0x40a13300) 10-28 23:20:17.064:
    E/AndroidRuntime(1432): FATAL EXCEPTION: main 10-28 23:20:17.064:
    E/AndroidRuntime(1432): java.lang.NullPointerException 10-28 23:20:17.064:
    E/AndroidRuntime(1432): at
    10-28 23:20:17.064: E/AndroidRuntime(1432): at
    android.support.v4.app.BackStackRecord.add(BackStackRecord.java:389) 10-28
    23:20:17.064: E/AndroidRuntime(1432): at
    10-28 23:20:17.064: E/AndroidRuntime(1432): at
    android.support.v4.view.ViewPager.addNewItem(ViewPager.java:800) 10-28
    23:20:17.064: E/AndroidRuntime(1432): at
    android.support.v4.view.ViewPager.populate(ViewPager.java:991) 10-28
    23:20:17.064: E/AndroidRuntime(1432): at
    android.support.v4.view.ViewPager.populate(ViewPager.java:880) 10-28
    23:20:17.064: E/AndroidRuntime(1432): at
    android.support.v4.view.ViewPager$3.run(ViewPager.java:238) 10-28
    23:20:17.064: E/AndroidRuntime(1432): at
    android.view.Choreographer$CallbackRecord.run(Choreographer.java:725) 10-28
    23:20:17.064: E/AndroidRuntime(1432): at
    android.view.Choreographer.doCallbacks(Choreographer.java:555) 10-28
    23:20:17.064: E/AndroidRuntime(1432): at
    android.view.Choreographer.doFrame(Choreographer.java:524) 10-28
    23:20:17.064: E/AndroidRuntime(1432): at
    10-28 23:20:17.064: E/AndroidRuntime(1432): at
    android.os.Handler.handleCallback(Handler.java:615) 10-28 23:20:17.064:
    E/AndroidRuntime(1432): at
    android.os.Handler.dispatchMessage(Handler.java:92) 10-28 23:20:17.064:
    E/AndroidRuntime(1432): at android.os.Looper.loop(Looper.java:137) 10-28
    23:20:17.064: E/AndroidRuntime(1432): at
    android.app.ActivityThread.main(ActivityThread.java:4745) 10-28
    23:20:17.064: E/AndroidRuntime(1432): at
    java.lang.reflect.Method.invokeNative(Native Method) 10-28 23:20:17.064:
    E/AndroidRuntime(1432): at java.lang.reflect.Method.invoke(Method.java:511)
    10-28 23:20:17.064: E/AndroidRuntime(1432): at
    10-28 23:20:17.064: E/AndroidRuntime(1432): at
    com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) 10-28
    23:20:17.064: E/AndroidRuntime(1432): at
    dalvik.system.NativeStart.main(Native Method)
    import java.util.Locale;
    import android.os.Bundle;
    import android.support.v4.app.Fragment;
    import android.support.v4.app.FragmentActivity;
    import android.support.v4.app.FragmentManager;
    import android.support.v4.app.FragmentPagerAdapter;
    import android.support.v4.view.ViewPager;
    import android.view.LayoutInflater;
    import android.view.Menu;
    import android.view.View;
    import android.view.ViewGroup;
    public class DodActivity extends FragmentActivity {
    * The {@link android.support.v4.view.PagerAdapter} that will provide
    * fragments for each of the sections. We use a
    * {@link android.support.v4.app.FragmentPagerAdapter} derivative, which
    * will keep every loaded fragment in memory. If this becomes too memory
    * intensive, it may be best to switch to a
    * {@link android.support.v4.app.FragmentStatePagerAdapter}.
    SectionsPagerAdapter mSectionsPagerAdapter;
    * The {@link ViewPager} that will host the section contents.
    ViewPager mViewPager;
    protected void onCreate(Bundle savedInstanceState) {
    // Create the adapter that will return a fragment for each of the three
    // primary sections of the app.
    mSectionsPagerAdapter = new SectionsPagerAdapter(
    // Set up the ViewPager with the sections adapter.
    mViewPager = (ViewPager) findViewById(R.id.pager);
    public boolean onCreateOptionsMenu(Menu menu) {
    // Inflate the menu; this adds items to the action bar if it is present.
    getMenuInflater().inflate(R.menu.dod, menu);
    return true;
    * A {@link FragmentPagerAdapter} that returns a fragment corresponding to
    * one of the sections/tabs/pages.
    public class SectionsPagerAdapter extends FragmentPagerAdapter {
    public SectionsPagerAdapter(FragmentManager fm) {
    public Fragment getItem(int i) {
    // getItem is called to instantiate the fragment for the given page.
    // http://stackoverflow.com/questions/15591087/android-navigation-type-fixed-tabs-swipe/15591125#15591125
    // http://stackoverflow.com/questions/11708937/how-can-i-create-a-ui-for-each-tab-of-a-tabbed-activity
    Fragment fragment = null;
    case 0:
    fragment = new dod_mainpage_SectionFragment();
    case 1:
    fragment = new dod_events_SectionFragment();
    case 3:
    fragment = new dod_map_SectionFragment();
    return fragment;
    public int getCount() {
    // Show 3 total pages.
    return 3;
    public CharSequence getPageTitle(int position) {
    Locale l = Locale.getDefault();
    switch (position) {
    case 0:
    return getString(R.string.title_section1).toUpperCase(l);
    case 1:
    return getString(R.string.title_section2).toUpperCase(l);
    case 2:
    return getString(R.string.title_section3).toUpperCase(l);
    return null;
    public static class dod_mainpage_SectionFragment extends Fragment {
    public dod_mainpage_SectionFragment() {
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
    Bundle savedInstanceState) {
    View v = inflater.inflate(R.layout.fragment_dod_mainpage, null);
    return v;
    public static class dod_events_SectionFragment extends Fragment {
    public dod_events_SectionFragment() {
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
    Bundle savedInstanceState) {
    View v = inflater.inflate(R.layout.fragment_dod_events, null);
    return v;
    public static class dod_eventsdetail_SectionFragment extends Fragment {
    public dod_eventsdetail_SectionFragment() {
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
    Bundle savedInstanceState) {
    View v = inflater.inflate(R.layout.fragment_dod_eventsdetail, null);
    return v;
    public static class dod_map_SectionFragment extends Fragment {
    public dod_map_SectionFragment() {
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
    Bundle savedInstanceState) {
    View v = inflater.inflate(R.layout.fragment_dod_map, null);
    return v;
    public static class dod_settings_SectionFragment extends Fragment {
    public dod_settings_SectionFragment() {
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
    Bundle savedInstanceState) {
    View v = inflater.inflate(R.layout.fragment_dod_settings, null);
    return v;


    Mr_and_Mrs_D <the.ubik@gmail.com> Apr 20 05:44AM -0700  

    I have the following receivers declared :
    <receiver <!-- no warning -->
    android:enabled="false" >
    <action android:name="android.intent.action.BOOT_COMPLETED" />
    <receiver <!-- no warning -->
    android:enabled="false" >
    <action android:name="android.net.wifi.SCAN_RESULTS" />
    These receivers are exported - right ? If I put `exported="false"` would
    they still be able to work ?


    Vlad <vlad20popa@gmail.com> Apr 28 01:04PM -0700  

    I wat to create an android app, a tamagochi to be more specific. For that i
    need to create a pixelated interface. How can I simulate a "big pixel" and
    how can I animate the "big pixels"?


    STAN SHAN <shanshuo88@gmail.com> Apr 16 07:40AM -0700  

    I asked a similar question<http://stackoverflow.com/questions/14364501/how-can-i-load-an-archived-webpage-properly-in-android>
    Apparently, we could load the archived file by using the third party class
    However, the problem is that I also want to Email the webpage and let the
    user read it directly. I called *webView.saveWebArchive(path)*, and saved a
    webpage on my disk, but I can't open it by any application.
    Let's say I have a webpage showing a PDF file. Is there a way to unarchive
    the file which is generated by calling webView.saveWebArchive, and send it
    as an attachment via Email?
    If not, is there an alternative way to save web page to local storage
    without Archiving?
    I am just curious that why GOOGLE make an API method to archive something
    but do not bother to make another one to unarchive it? What is the point of
    "saveWebArchive" anyway?


    Vinay B <vybe3142@gmail.com> Apr 27 06:13AM -0700  

    This is a bit of a newbie question and I'm looking for either actual
    answers or general directions in which to research in search of answers.
    Background: I'd like to develop a streaming client that consumes multimedia
    feeds from content delivery networks (CDN). I'm consider developing it for
    android sticks / set top boxes rather than for off-the-shelf media
    extenders such as roku.
    Questions: 1. Are there ready-to-use turnkey software solutions available
    for android that will allow me to accomplish this or do I have to roll my
    own ?
    1. What should I be looking at in order to "skin" the OS to provide the
    user solely my menus, as opposed to the standard android software. For
    example, if I wanted to emulate the look of a roku or XBMC or whatever, as
    opposed to the stock android icons
    Thanks for your answers.


    Suvinay Pawa <suvinay123@gmail.com> Apr 16 07:40AM -0700  

    I heard we can reply to user reviews but i cant.Please help.


    Carlos Costa <up2cc3@gmail.com> Apr 27 10:26AM -0700  

    Hi guys
    I am developing a game with eclipse, I try it in my mobile phone, to get
    the real feeling
    Sometimes I do little changes in my app and I want to install it in the
    phone but without remove the previous version, which is the best way to do
    I tried to change the app name in the manifest, but it doesn't work
    Thanks in advance


    saritswarts@gmail.com Apr 18 08:15AM -0700  

    I can read Hebrew characters from wamp server and see them on my android app
    but I'm trying to insert hebrew charaters to the wamp server but instead of
    Hebrew I get squares ,How can I use Hebrew characters?


    yaqub seyidov <seyidov.yaqub@gmail.com> Apr 16 03:03PM -0700  

    hi guys i need your help i wanna make great apps and games for android os
    but i am totally new on this way i mean i have no java knowledge, no
    eclipse experience even no programming knowledge all i wanna to know that
    can i make great apps and games by reading all articles in this
    site https://developer.android.com? or do i need additional alternative
    books or something? i mean https://developer.android.com is this site is
    enough to know all things about program developmen? make programs?. if yes
    what can u advise to do? thanks for paying attention


    steveg1701@gmail.com Apr 22 07:39PM -0700  

    I am trying to get the number of voicemails on an Android using
    TelephonyManager, seems it should be easy enough using the
    getVoiceMessageCount() nethod (not documented but its in the source code!
    But I get an error saying there is no such method ;-(
    any ideas?


    solocaldeveloper@gmail.com Apr 20 05:39AM -0700  

    Dear readers,
    I currently have a very, very annoying problem. I'm using ADT to develop an
    Android app. Now that I work with a team, I need the Subversion plugin to
    work with a SVN.
    Whenever I install a SVN client, may it be subversion, subclipse etc
    through the in-client ''Install New Software'', my whole installation
    messes up. When I restart, the splashscreen changed from Android Developer
    Tools to Eclipse Juno and alot of buttons in the interface go missing,
    errors everywhere, etcetera.
    What am I doing wrong exactly here?


    Maka ahmed <thuglive895@gmail.com> Apr 14 03:23PM -0700  


    Ivan Stamenkovic <peacemaker.994@gmail.com> Apr 29 01:00PM -0700  

    I tried, i searched but nothing works. I have this code preparing the
    and there is myCamera.setDisplayOrientation(90);
    But when i playback the video it's in landscape. Is there any way to change
    this or to rotate videoview????


    visualtao Inc <visualtao@gmail.com> Apr 29 07:52AM -0700  

    I have implemented in-app billing v3 with auto-renewing subscriptions.
    Since there is no sandbox environment for testing this feature, I am
    making real transactions in order to test the app for cases of
    subscription renewal and subscription cancellation.
    I have created a few test accounts and tried to perform in-app
    purchases with them. Some purchases succeeded, but with some accounts
    the transactions were cancelled immediately by Google. The message
    that I receive in the application is "Your payment could not be
    processed at this time. You may receive an email asking you to verify
    your account." These accounts did not receive any such emails.
    In the Google Wallet Transactions list I can see a transaction for
    each failed attempt, and they are all marked as Canceled, with the
    following information:
    "Google has cancelled this purchase.
    Comments from Google: We have cancelled your order because your
    account is on hold."
    I have used both newly created Google users and old users. From both
    categories, most of the users attempted got a cancelled transaction.
    With the new users I have tried waiting for 48 hours and trying again
    (as was suggested by the Wallet support team), but the attempts still
    I have tried using a few different credit cards. Each succeeded a few
    times (some only once) and then failed on further attempts. Are credit
    cards restricted to only one user?
    The app has not been published, but an APK has been uploaded. The in-
    app products have been published. All users that I have tried with
    were added to "Gmail accounts with testing access" in the Google Play
    Developer Console. Again, some attempts DID succeed, but most end in
    Please help.


    srihari.iiet@gmail.com Apr 25 07:47PM -0700  

    Hi all,
    I already have Netbeans IDE with Java 1.6 installed in my system.
    Now, I also want to work with android development. So, when i try to open
    eclipse, it is showing following error message:
    *"*A JRE or JDK must be available in order to run eclipse. No
    Java Virtual Machine is found after searching the following locations:
    in your current path"*
    Please, anyone help me in this context. Thanks in advance...
    Waiting for your replies...
    Srihari Ch
    New Learner for Android


    Vishal Pawale <vishalpawale123@gmail.com> Apr 29 12:21PM -0700  

    Why not to use multiple list views in single layout xml?
    And if number of list views are dynamic (no of sections changes at runtime)
    add list views from JAVA code.
    On Wednesday, April 24, 2013 6:19:41 PM UTC+5:30, Rank wrote:


    Mitch Sundt <mitchellsundt@gmail.com> Apr 29 10:10AM -0700  

    This app:
    It stopped being visible with its April 15th update that didn't change any
    permissions, but added a broadcast listener for connectivity changes.
    A subsequent April 17th update, adding declarations changing just about
    everything to uses-features-not-required, failed to restore its visibility.
    aapt dump badging "collect\ODK Collect v1.3 rev 1029.apk"
    package: name='org.odk.collect.android' versionCode='1029' versionName='1.3'
    application-label:'ODK Collect'
    application-label-ca:'ODK Collect'
    application-label-ka:'ODK Collect'
    application-label-id:'ODK Collect'
    application-label-de:'ODK Collect'
    application-label-vi:'ODK Collect'
    application-label-nl:'ODK Collect'
    application-label-tl:'ODK Collect'
    application-label-no:'ODK Collect'
    application-label-ro:'ODK Collect'
    application-label-fp:'ODK Collect'
    application-label-fr:'ODK Collect'
    application-label-es:'ODK Collect'
    application-label-it:'ODK Collect'
    application-label-lt:'ODK Collect'
    application-label-pt:'ODK Collect'
    application-label-sw:'ODK Collect'
    application: label='ODK Collect' icon='res/drawable-mdpi/notes.png'
    name='org.odk.collect.android.activities.SplashScreenActivity' label='ODK
    Collect' icon=''
    uses-implied-feature:'android.hardware.touchscreen','assumed you require a
    touch screen unless explicitly made optional'
    supports-screens: 'small' 'normal' 'large'
    supports-any-density: 'true'
    locales: '--_--' 'ca' 'ka' 'id' 'de' 'vi' 'nl' 'tl' 'no' 'ro' 'fp' 'fr'
    'es' 'it' 'lt' 'pt' 'sw'
    densities: '120' '160' '240'
    The manifest is here:
    As is the entire codebase:


    Saurabh Gupta <smile.al.d.way@gmail.com> Apr 17 11:25AM -0700  

    We have a WebView with absolutely position <input> element. The <input>
    element is of type text. This input element shows up at different positions
    on WebView based on user tap. However, when user taps on the input field,
    the soft keyboard flashes on screen and then goes away.
    Here is the sequence of events
    Focus on Input field -> Soft keyboard appears -> WebView flashes -> Soft
    keyboard disappears
    This is true even if the <input> element doesn't have to re-position itself
    to accommodate for soft keyboard.
    I have looked at following forums for solution for no success. I have tried
    hardware acceleration and idea of fixed position of <input> element -
    1. https://code.google.com/p/android/issues/detail?id=20446
    2. http://stackoverflow.com/questions/7097884/black-flickering-on-honeycomb-webview
    Has anyone else faced the similar issue?


    satish lokkoju <satish.lokkoju@gmail.com> Apr 28 06:49AM -0700  

    Hi all,
    We are working on a project where we are required to record an OpenGL
    Surface. We are planning to use MediaRecorder API by setting the video
    source to
    VIDEO_SOURCE_GRALLOC_BUFFER and generate the compressed file
    We are using the following code as the base code.
    I want to know
    1.) If this is the right approach to record an OpenGL (GLsurfaceView) which
    is being displayed?. If not what are the options available.
    2.) With the sample code given above, the video and audio are compressed
    and an MP4 file is being generated. but the OpenGL surface is not
    displayed. What am I missing ?
    Any help /pointers is greatly appreciated.


    Android777 <yxyworld@gmail.com> Apr 25 09:48PM -0700  

    Hello, everyone. I recently received an email from nevron. They said they
    wanted to use my app for their android STBs and I would received payment
    for each copy of my app installed on each STB. Other than their website, I
    was unable to find any information about them online. Has anyone else here
    received communication from them, or is anyone currently in their program?
    If not, what are your thoughts on this?


    JS <sjose1988@gmail.com> Apr 17 02:03PM -0700  

    I write a page in an html file and uploaded it in Dropbox (on my desktop).
    I wanted to see how it looks on the android platform before making it live,
    so I downloaded
    and installed dropbox in my android.
    How can I see the contents of my html file in an android browser?
    On my desktop, I downloaded WAMP, so I can work on my local server (
    I want to do the same in android
    Thank you


You received this message because you are subscribed to the Google Group android-developers.
You can post via email.
To unsubscribe from this group, send an empty message.
For more options, visit this group.

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
For more options, visit this group at
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.