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

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

    Peeyush Varshney <varshney.peeyush@gmail.com> Dec 31 07:48PM +0530  

    **
     
    * Dear All,*
     
    *New Year begins,*
     
    *Let us pray that*
     
    *It will be a year with New Peace,*
     
    *New Happiness*
     
    *And Abundance of new friends,*
     
    *WISH YOU AND YOUR FAMILY A VERY HAPPY AND JOYOUS NEW YEAR AHEAD!!!*
     
    ** **
     
    ** **
     
    ****
     
    ** **
     
    ** **
     
    *Regards,
    Peeyush*
     
    ** **
     
    ** **
     
    ** **
     
    ** **
     
     
     
    --
    Thank & Regards
    Peeyush Varshney

     

    John Raftery <john.raftery2@gmail.com> Dec 31 06:08AM -0800  

    Hi, I've got keytool sitting in the jdk, and it works when I use
    eclipse to automatically sign an application package. However, I'm
    struggling to run keytool to get an MD5 Fingerprint. When I go to the
    jdk bin folder and try to run keytool, a command prompt window opens
    and then closes after a second. It's probably something really simple
    I'm missing. Could I have some help please? I'm using Windows.
     
    Thanks,
    John

     

    Nikolay Elenkov <nikolay.elenkov@gmail.com> Dec 31 11:14PM +0900  

    > jdk bin folder and try to run keytool, a command prompt window opens
    > and then closes after a second. It's probably something really simple
    > I'm missing. Could I have some help please? I'm using Windows.
     
    Open a command prompt window, and run the keytool command
    (with appropriate parameters) from there. It's a command line utility,
    so if you just double-click it, it will display a usage message and
    exit, closing the command prompt window.

     

    lbendlin <lutz@bendlin.us> Dec 31 05:56AM -0800  

    you're probably using network location which gives you the illusion of a
    quicker GPS fix. Switch that off, then start the camera app, and see how
    long it takes to get a real GPS fix. We're talking tens of seconds here.

     

    barry <barry.drinkwater@gmail.com> Dec 31 05:48AM -0800  

    Hi James,
     
    I think I have fixed the problem. The following may answer your
    question:
     
    In the onCreate() in my ContentProvider, I was leaving the database
    open:
     
    @Override
    public boolean onCreate()
    {
    UKMPGDataProvider.init(getContext(), Constants.DATABASE_NAME);
    return (UKMPGDataProvider.getWritableDatabase() == null) ? false :
    true;
    }
    (In my defence, this was copied from a tutorial on the net.)
     
    In my test, the addVehicle() would result in a call the
    getWriteableDatabase() on SQLiteOpenHelper, which looks like this
    (shortened for clarity):
     
    public synchronized SQLiteDatabase getWritableDatabase() {
    if (mDatabase != null && mDatabase.isOpen() && !
    mDatabase.isReadOnly()) {
    return mDatabase; // The database is already open for
    business
    }
     
    //lots more initialisation here, omitted
    int version = db.getVersion();
    if (version != mNewVersion) {
    db.beginTransaction();
    try {
    if (version == 0) {
    //DATABASE CREATED HERE
    onCreate(db);
    //END
    } else {
    onUpgrade(db, version, mNewVersion);
    }
    db.setVersion(mNewVersion);
    db.setTransactionSuccessful();
    } finally {
    db.endTransaction();
    }
    }
    //omitted code again
    }
    As I had left the database open, execution would not get passed the
    first if statement and the onCreate(db) line would never be reached.
     
    In my code, I would close the database after inserting a vehicle, so
    next call to getWriteableDatabase() (getVehicles()) would get passed
    the first if statement and execute the onCreate(db).
     
    It doesn't really explain why the first insertion was successful
    though. And it doesn't explain why the test passed in 'run' mode. I
    added some logging to the onCreate() in my ContentProvider and
    SQLiteOpenHelper and in run mode the ContentProvider onCreate() is
    called twice.
     
    I don't know if this made the difference or not... If anyone can shed
    any light on what the difference is between run and debug when unit
    testing, I'd be interested to learn more.
     
    Thanks,
    Barry
     

     

    "SL@maxis" <ecp_gen@my-rialto.com> Dec 31 08:36PM +0800  

    > If you're doing web dev and don't know about json, you're probably doing
    > something wrong.
    > Anyway, good luck with your odd approach.
     
    OK, OK, I shall look at it. May be it can simplify some of my tasks.
     
    You see there are always so many things to look into it that ends up
    looking a few things only.
     
    Java alone has so large a library it will probably take quite a while to
    get acquited with them, or at least read them very quickly just leave an
    impression.
     
    I have done a lot of C/C++, even then there are areas that I think are
    hair-raising.
     
     
    --
    Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

     

    "SL@maxis" <ecp_gen@my-rialto.com> Dec 31 08:52PM +0800  

    > you won't be able to read and implement these (well, or your reduction
    > to it) unless you have background socket programming knowledge, which
    > you should get...
     
    I have done some pretty simple socket programing with C/C++. In this case,
    with pointers I have quite a free hand to encode my data using a scheme
    onto a memory buffer. At the receiving end once I get socket data into a
    memory buffer I can easily decode the data.
     
    As of now, I am just not certain how to encode my data onto a bytearray
    with java tools. For example given an integer, with C, just obtain a
    pointer to the integer then pack the 4 bytes one by one onto my buffer. In
    java, I think, as of now, I have to use the 'shift' operator and be
    careful with the sign bit.
     
    For you info, the file I/O and byte stream features in java are
    bewildering to a new comer. For one with a lot time they are no much of a
    problem. Thus advice help of gurus are essential to cut down learning time.
     
     
     
     
     
     
     
     
    --
    Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

     

    RAJU V <kathirirajanv@gmail.com> Dec 31 06:05PM +0530  

    pls help me.. how to fix this issues in eclipse pls....
     
     
     
     
    [2011-12-31 17:58:34 - DDMS] DDMS files not found:
    D:\Eclipse\eclipse\platform-tools\adb.exe
    D:\Eclipse\eclipse\tools\hprof-conv.exe
    D:\Eclipse\eclipse\tools\traceview.bat
     
    ~~~~~~RAJU~~~~~~
    ~~www.itdoall.co.cc~~

     

    TreKing <trekingapp@gmail.com> Dec 31 03:40AM -0600  


    > If I
    > add getExpandableListView().setOnGroupClickListener((OnGroupClickListener) this);
    > it asks me to type cast 'this'.
     
    What do you mean it "asks you to typecast 'this' " ?
    What is "this"?
    Is it an OnGroupClickListener?
     
     
    > Then the application crashes on run. I suppose onclick must be used for
    > changing the display could the conflict be the problem?
     
    Posting the crash would help.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Sean751 <sean751@gmail.com> Dec 31 04:21AM -0800  

    I mean Eclipse suggests that as a fix.
    There is an example for using the onChildClick and in onCreate the
    line getExpandableListView().setOnChildClickListener(this); is
    included so if I want to also have onGroup click I assumed that I need
    getExpandableListView().setOnGroupClickListener(this); but that causes
    an error the suggestion in Eclipse is to change it to
    getExpandableListView().setOnGroupClickListener((OnGroupClickListener)
    this);
    I am after any item click if there is another way, the code that I
    want to run onClick is the same for Group or Child. I can see in the
    parent class there is an event but I don't know how to use it, I am
    new to this.
    Thanks again
    Sean
     

     

    Teena sharma <sharma.teena824@gmail.com> Dec 31 12:39PM +0530  

    Thanks .I have read whole doc but didn't got accurate solution.
     

     

    TreKing <trekingapp@gmail.com> Dec 31 03:42AM -0600  


    > Thanks .I have read whole doc but didn't got accurate solution.
     
     
    OK. Then read this whole thing and try again:
    http://www.catb.org/~esr/faqs/smart-questions.html
     
    You still didn't explain what "starched" means and I, for one, have no idea
    what you're getting at.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Teena sharma <sharma.teena824@gmail.com> Dec 31 03:23PM +0530  

    Can any one please explain
    I am trying to make.apk for Galaxy Tab in that it takes images from
    drawable-large folder but still in emulator image size is very small,
    why images are not in proper size.

     

    TreKing <trekingapp@gmail.com> Dec 31 03:56AM -0600  


    > in emulator image size is very small, why images are not in proper size.
     
     
    How is your emulator configured?
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Amit Mangal <forum.amit.mangal@gmail.com> Dec 31 02:21PM +0530  

    Hi there,
     
    I want to do recording using AudioRecord API. please let me know how to do
    recording with AudioRecord API and save file in desired location.
     
    Any code willbe highly appreciated.
     
    thanks

     

    Teena sharma <sharma.teena824@gmail.com> Dec 31 03:12PM +0530  

    rcd.setOnClickListener(new OnClickListener() {
     
    @Override
    public void onClick(View v) {
     
     
    recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
    recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
    recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
    recorder.setOutputFile(Environment
    .getExternalStorageDirectory()
    + "/" + give name of the file to store+ ".3gp");
     
     
    try {
    recorder.prepare();
    mPlayer.start();
    recorder.start();
    } catch (IllegalStateException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    } catch (Exception e) {
    // TODO Auto-generated catch block
    }
     
    }
     
    });
     
    rcd is a button to start recording.
     
     
     
     
     
     
     
     

     

    Droid <rodsit@gmail.com> Dec 31 12:15AM -0800  

    proguard is some type of 3rd party file for version checking or
    similar.
    I normally ignore them or just delete them.
     

     

    al <achim.leubner@googlemail.com> Dec 31 01:20AM -0800  

    Proguard is a tool to shrink and obfuscate apps. For details, see
    http://proguard.sourceforge.net/#FAQ.html . The proguard documentation
    is very good. You might want to take a look.
     

     

    Mohd Arshi Khan <arshikhan4u@gmail.com> Dec 31 02:47PM +0530  

    I'm student. so i don't have credit card. so
    it is possible to use ATM cum Debit Card of State Bank of India (SBI) for
    registration on android Market for publish my App.

     

    common user <commonvalues@gmail.com> Dec 31 02:35PM +0530  

    Hi, Am new to android i want to create a 3D games for Android Mobile
     
    Pls help me how to start the games apps
     
    Adv Thanks,

     

    Zsolt Vasvari <zvasvari@gmail.com> Dec 31 01:11AM -0800  

    And I am new to investing and want to become a millionare investor.
    Will you help me?
     

     

    Zsolt Vasvari <zvasvari@gmail.com> Dec 31 01:10AM -0800  

    Maybe it's a 4.0.2 vs 4.0.3 problem. You could try it in an emulator
    and if it's a regression in 4.0.3, create a bug report.
     

     

    String <sterling.udell@googlemail.com> Dec 31 01:05AM -0800  

    I'd say so.
     
    String

     

    String <sterling.udell@googlemail.com> Dec 31 01:00AM -0800  

    How about using publishProgress() and onProgressUpdate() to notify the
    user? You may already be using it to keep the user updated to the progress
    of the download, but seems to me you could use it to let them know about
    post-download processing too.
     
    String

     

    Stephan Wiesner <testexperte@googlemail.com> Dec 30 11:20PM -0800  

    I guess you gave the obvious answer yourself: Don't hardcode the name.
    Use a variable, maybe a system setting or something from a config file
    that can be accessed by all your apps and put an if/else block in your
    provider....
     
    Greetings from Berne,
    Stephan
     

     

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
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment