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

Comments: (0)

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

    James Black <planiturthian@gmail.com> Dec 31 10:20PM -0500  

    I recently updated my SDK, and in one project I am getting this error:
     
    !ENTRY com.android.ide.eclipse.adt 4 0 2011-12-31 22:08:11.403
    !MESSAGE Unknown error: java.lang.NullPointerException
    !STACK 0
    java.lang.NullPointerException
    at
    com.android.ide.eclipse.adt.internal.build.AaptParser.getResourceFromFullPath(AaptParser.java:721)
    at
    com.android.ide.eclipse.adt.internal.build.AaptParser.checkAndMark(AaptParser.java:473)
    at
    com.android.ide.eclipse.adt.internal.build.AaptParser.parseOutput(AaptParser.java:370)
    at
    com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.build(PostCompilerBuilder.java:599)
    at
    org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
    at
    org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:321)
    at
    org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:396)
    at org.eclipse.core.internal.resources.Project$1.run(Project.java:618)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
    at
    org.eclipse.core.internal.resources.Project.internalBuild(Project.java:597)
    at org.eclipse.core.internal.resources.Project.build(Project.java:124)
    at
    com.android.ide.eclipse.adt.internal.project.ProjectHelper.doFullIncrementalDebugBuild(ProjectHelper.java:961)
    at
    com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch(LaunchConfigDelegate.java:146)
    at
    org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854)
    at
    org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
    at
    org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:928)
    at
    org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1132)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
     
    I have this in project.properties:
    android.library.reference.1=../BookTrackerLib
     
    java.runtime.version=1.6.0_29-b11
     
    [image: image.png]
     
    For my project, everything is done in the library, so here is my main
    activity:
    public class BookTrackerActivity extends BookTrackerLibActivity {
    public void onCreate(Bundle savedInstanceState) {
    mContext = this;
    super.onCreate(savedInstanceState);
    }
     
    }
     
    I don't know what else may be needed to help solve this problem. I have
    cleaned both projects, rebuilt the library, then restarted Eclipse, rebuilt
    the main project, still have the same error.
    --
    "I know that you believe you understand what you think I said, but I'm not
    sure you realize that what you heard is not what I meant."
    - Robert McCloskey

     

    James Black <planiturthian@gmail.com> Dec 31 07:51PM -0800  

    I looked at another two projects that use a different library and I
    have a different problem that is new, as I had recently built this and
    put it on the market:
    R cannot be resolved to a variable
     
    For this line:
    case R.id.clear_menu:
     
    I have the ids defined in the library, as they are shared for both
    projects, and this used to work.
     
    So, I think the fact that I am not copying the res files from the
    library to the actual projects may be the problem, which to me seems
    to be a bug.
     

     

    Dancing Fingers <batymahn@gmail.com> Dec 31 06:41PM -0800  

    Hi Guys,
    I've created a custom game keyboard that I want to share with several
    windows so I decided to give TabActivity a try. I created a layout
    for each tab, for example:
     
    // Plain text input layout
    inputLayout = new LinearLayout(this);
    inputLayout.setOrientation(LinearLayout.VERTICAL);
    mainText.setHeight(120);
    inputLayout.addView(mainText);
    inputLayout.addView(keyboard);
     
    host.addTab(host.newTabSpec("Text
    Input").setIndicator("Input").setContent(inputLayout));
     
    I get an "change inputLayout to int" compile error. This seems
    inconsistent with the Activity class. Is there a workaround or do I
    have to use xml?
     
    Thanks.
     
    Chris

     

    David Karr <davidmichaelkarr@gmail.com> Dec 31 04:57PM -0800  

    I noticed the mention of the "layoutopt" tool in the Android Training
    pages. I see that I don't have that in my sdk distro anywhere. I've kept
    the SDK installed from the ADT pretty up to date, but perhaps that's
    separate from this.
     
    Why might it be missing?

     

    Tor Norbye <tnorbye@google.com> Dec 31 05:23PM -0800  

    > > separate from this.
     
    > > Why might it be missing?
     
    > My guess is that it has been subsumed into the lint utility.
     
    Correct. Lint includes all the layoutopt rules (and more).
    http://tools.android.com/tips/lint
     
    We'll try to get the training docs updated.
     
    -- Tor
     
     

     

    TreKing <trekingapp@gmail.com> Dec 31 07:15PM -0600  


    > it is possible to use ATM cum Debit Card of State Bank of India (SBI) for
    > registration on android Market for publish my App.
     
     
    Why don't you just try it and see ... ?
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    James Black <planiturthian@gmail.com> Dec 31 11:23AM -0500  

    If you start the gps fix early on in the application, perhaps have an
    activity they go to before they take the picture, or, at least, let them
    know there is no GPS fix, then you can get the time to get that before they
    take the picture.
     
     
    --
    "I know that you believe you understand what you think I said, but I'm not
    sure you realize that what you heard is not what I meant."
    - Robert McCloskey

     

    Lew <lewbloch@gmail.com> Dec 31 10:11AM -0800  

    lbendlin wrote:
     
    > you're probably using network location which gives you the illusion of a
    > quicker GPS fix. Switch that off, then start the camera
     
     
    On what do you base such a statement? I gave absolutely zero information
    about what I experience. "Probably"?

     
    > app, and see how long it takes to get a real GPS fix. We're talking tens
    > of seconds here.
     
     
    Well, for me it's five seconds, and all the times I've used geo location
    for photos that five seconds has never bothered me much. It's comparable
    to the time to do a local search from Google Maps for Mobile, for example.
    Perhaps I am unique. Perhaps I measure latency against what other apps
    provide, and since they are all in that five-second range it seems normal.
     
    There are a couple of us now who suggested prefetch. Is that an idea that
    would work for you?
     
    What evidence have you gathered to find the threshold at which "[y]our
    users may not be willing to wait"? Are users generally bothered by a
    five-second delay for GPS?
     
    I'm thinking you have a tendency to leap to conclusions, well, assumptions
    disguised as conclusions. You might have fallen into Knuth's famous
    premature optimization trap. You assumed things ("probably") about my
    configuration and even what I experience on my phone. Have you assumed
    things about what users typically experience and can tolerate? Shouldn't
    you have some facts in hand before investing, possibly wasting effort
    solving a tier-2 or -3 problem?
     
    That said, some sort of coordinate prefetch-and-cache strategy might make
    your app the new standard that has people impatient with all the others.
     
    --
    Lew

     

    Lew <lewbloch@gmail.com> Dec 31 10:14AM -0800  

    On Saturday, December 31, 2011 10:11:04 AM UTC-8, Lew wrote:
    >> quicker GPS fix. Switch that off, then start the camera
     
    > On what do you base such a statement? I gave absolutely zero information
    > about what I experience. "Probably"?
     
    I take that back, I did say that I never noticed the delay. Still, how you
    get from that to my configuration is a reach. As it happens I never turn
    on network location.
     
    --
    Lew

     

    lbendlin <lutz@bendlin.us> Dec 31 01:11PM -0800  

    You do realise that I am not the OP, right?

     

    Lew <lewbloch@gmail.com> Dec 31 04:05PM -0800  

    I was responding to your posts. You don't have to be the OP for me to
    answer what you wrote. Perhaps I erred in thinking your comments were a
    response to my post, though, in which case I apologize.
     
    --
    Lew
     
    On Saturday, December 31, 2011 1:11:00 PM UTC-8, lbendlin wrote:

     

    bob <bob@coolfone.comze.com> Dec 31 02:38PM -0800  

    Can I make my android games faster by somehow telling proguard not to
    obfuscate my stuff?

     

    Marcin Orlowski <webnet.android@gmail.com> Jan 01 12:20AM +0100  

    You should read what obfuscation is and how proguard works first.

     

    Kristopher Micinski <krismicinski@gmail.com> Dec 31 07:00PM -0500  

    You can interpret this as:
     
    No, this doesn't make any sense, there is no way proguard is going to
    make things slower, only faster..
     
    Kris
     
    On Sat, Dec 31, 2011 at 6:20 PM, Marcin Orlowski

     

    TreKing <trekingapp@gmail.com> Dec 31 03:20PM -0600  


    > There is an example for using the onChildClick and in onCreate the line
    > getExpandableListView().setOnChildClickListener(this); is included
     
    That implies that in this example the class referred to by "this"
    implements the OnGroupClickListener interface. Does it?
     
     
    > so if I want to also have onGroup click I assumed that I
    > need getExpandableListView().setOnGroupClickListener(this);
     
    You need an OnGroupClickListener, where you get it from, whether it is
    "this" or another instance, is fairly irrelevant.
     
     
    > but that causes an error the suggestion in Eclipse is to change it
    > to getExpandableListView().setOnGroupClickListener((OnGroupClickListener) this);
     
    Eclipse doesn't know any better. You should. This will get it to compile
    but will crash as you saw.
     
     
    > 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.
     
    You may need to take a step back and learn some Java first, as it appears
    you're getting hung up on some basic semantics of the language.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Amit Mangal <forum.amit.mangal@gmail.com> Jan 01 01:24AM +0530  

    Hi i need AudioRecord Api not MediaRecorder.
     
    thanks
     

     

    David Karr <davidmichaelkarr@gmail.com> Dec 31 11:19AM -0800  

    I was looking at the new "Android Training" section on the Android
    Developer's site. One of the first required steps is installing the
    "Android Support" package.
     
    In the "Downloading the Support Package" section, it first says to "Launch
    the SDK and AVD Manager". This is curious, as my Eclipse has two options,
    called "Android SDK Manager" and "AVD Manager". These instructions refer
    specifically to a choice called "Android SDK and AVD Manager". I assume
    they really mean the SDK Manager, so that's what I'm looking at.
     
    The instructions next say "Expand the Android Repository, check Android
    Support package".
     
    My "Android SDK Manager" dialog has a pane labeled "Packages". I see
    nothing labeled "Android Repository". I also see nothing like "Android
    Support".
     
    What am I missing?

     

    Mark Murphy <mmurphy@commonsware.com> Dec 31 02:23PM -0500  

    > called "Android SDK Manager" and "AVD Manager". These instructions refer
    > specifically to a choice called "Android SDK and AVD Manager".  I assume
    > they really mean the SDK Manager, so that's what I'm looking at.
     
    The tutorials were written before the split of the SDK and AVD Manager
    into two windows, apparently.
     
     
    > My "Android SDK Manager" dialog has a pane labeled "Packages". I see nothing
    > labeled "Android Repository". I also see nothing like "Android Support".
     
    > What am I missing?
     
    In the SDK Manager, it is called "Android Compatibility package", and
    it appears in the Extras category.
     
    The name of this component has varied from "Android Compatibility
    Library" to "Android Support package" to "Android Compatibility
    package". If you see any of those names, they should all be referring
    to the same thing.
     
    --
    Mark Murphy (a Commons Guy)
    http://commonsware.com | http://github.com/commonsguy
    http://commonsware.com/blog | http://twitter.com/commonsguy
     
    _Android Programming Tutorials_ Version 4.1 Available!

     

    "mr.winky" <mr0winky@gmail.com> Dec 31 11:12AM -0800  

    I am writing an intent to allow the user to pull an image from the
    gallery:
     
    Intent getImage = new Intent(Intent.ACTION_GET_CONTENT);
     
    getImage.setType("image/*");
    getImage.putExtra("outputX", width);
    getImage.putExtra("outputY", height);
    getImage.putExtra("aspectX", width);
    getImage.putExtra("aspectY", height);
    getImage.putExtra("noFaceDetection", true);
    getImage.putExtra("scale", true);
    getImage.putExtra("crop", "true");
    getImage.putExtra("setWallpaper", false);
     
    startActivityForResult(Intent.createChooser(getImage, "Select
    Background Image"), 0x10);
     
    Everything is working fine and a new image is generated from the
    gallery except it looks like the image that comes back cropped is in a
    lower quality format from the original image, like 16 bit color format
    instead of 32 bit.

     

    Lew <lewbloch@gmail.com> Dec 31 10:45AM -0800  

    RAJU wrote:
     
    > pls help me.. how to fix this issues in eclipse pls....
     
    I'll get to your question in a minute, but I have to object to this use of
    "pls" to spell "please". It's only three letters difference. Is it really
    that much trouble to spell it out?
     
    > D:\Eclipse\eclipse\platform-tools\adb.exe
    > D:\Eclipse\eclipse\tools\hprof-conv.exe
    > D:\Eclipse\eclipse\tools\traceview.bat
     
    You don't give a whole lot of information, but this snippet suggests that
    you might not have set up the Eclipse ADT plugin, or at least not correctly.
    http://developer.android.com/sdk/eclipse-adt.html
     
    Or perhaps Eclipse itself is not installed correctly. The missing Eclipse
    tools suggest that.
     
    Speaking of not spelling things out ("spell things out" is a colloquialism
    meaning to provide all the details), people might be able to offer better
    help if you give more details. What sort of things were you doing? Does
    this happen with Eclipse generally or only for a specific project? At what
    phase? How is the project set up?
     
    Anyway, check your plugins and other related installations. If things
    remain broken maybe additional details will uncover the mystery then.
     
    --
    Lew

     

    Tom Opgenorth <tom@opgenorth.net> Dec 31 11:05AM -0700  

    Hi all, I think I have a misunderstanding on my part about
    localization/resource location that I'm hoping someone can clarify for
    me.
     
    So I have a simple layout, which will has an ImageView (will display
    just a flag). I have the following folders/files in my res folder:
     
    drawable/flag.png (the flag of the United Nations)
    drawable-de/flag.png (the Bundesdienstflagge of Germany)
    drawable-en-rCA/flag.png (the Maple Leaf of Canada)
    drawable-fr/flag.png (the French Tricolor).
     
    Here is the layout for my ImageView:
    <ImageView android:id="@+id/flagImage"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:src="@drawable/flag200"
    />
     
    Now, I run the app in the emulator. The first time it runs, the
    locale is set to en-US, and I see the flag of the United Nations. This
    is what I would expecte as this is the default resource. Now I change
    the locale (via the Default Locale) app in the emulator, and change
    the locale to de. I see the German flag. This is also expected.
     
    Now here is where I'm confused. I change the locale to just en, and
    now my app shows the Canadian flag. Should my app not be displaying
    the UN Flag?
     
    i.e. is not the localization path/chain as follows for a locale of en:
     
    1. Look for drawable/en folder (not found)
    2. Use the default resources in drawable
     
    TIA for any help.
     
    --
    http://www.opgenorth.net

     

    Baba Shanker <baba.android@gmail.com> Dec 31 10:03PM +0530  

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

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

Comments: (0)

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

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

Comments: (0)

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

    bob <bob@coolfone.comze.com> Dec 30 09:38PM -0800  

    Can someone explain in a nutshell what this means?
     
    Obsolete proguard file; use -keepclasseswithmembers instead of -
    keepclasseswithmembernames

     

    Kristopher Micinski <krismicinski@gmail.com> Dec 31 12:09AM -0500  

    > but I am a bit reluctant to use a 3rd-party tool, always fearing the
    > possibilty of a back-door virus. It was only then I realised that a PHP
    > script on a webserver would do the job.
     
    If it's a trusted library such as apache (for example, the dynamically
    linked org.apache harmony system...) that's an entirely irrational
    fear. If it's a "random jar you pull off a forum" that's more
    understandable. If you want one, go find a trusted jar, make sure
    your download matches the checksum, and you'll be fine.
     
    Though I have to admit, the questions you're asking could easily be
    resolved if you set aside two or three days worth of time, read
    through basic socket tutorials outside of the context of your current
    questions, and came back to this issue.
     
    For what you're doing, this sounds like you're trying to implement
    something similar to IRC. IRC has messages, and also incorporates a
    mechanism for file transfer, if you look at the newer CTCP. However
    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...
     
    kris
    Kris

     

    Amit Mangal <forum.amit.mangal@gmail.com> Dec 30 04:43PM +0530  

    Hi Every one,
     
     
    I want to develop solid bar rising up and down. falling up and down logic i
    have implemented in thread. i need to know what control should i use in UI
    for solid color bar so that i could increase and decrease height of that.
     
    like image.
     
    thanks

     

    Desu Vinod Kumar <vinny.soft@gmail.com> Dec 30 02:25AM +0900  

    we can access acceptCall from .adil. its possible.
     
    > For more options, visit this group at
    > http://groups.google.com/group/android-developers?hl=en
    > -~----------~----~----~----~------~----~------~--~---
     
    --
    Regards
    -------------------
    D Vinod Kumar
    R & D Engineer - Android Platform
    http://in.linkedin.com/in/desuvinodkumar
    (¨`•.•´¨) Always
    `•.¸(¨`•.•´¨) Keep
    (¨`•.•´¨)¸.•´ Smiling :-) !
    `•.¸.•´*
    ** Have a Nice Day ***

     

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

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

Comments: (0)

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

    "SL@maxis" <ecp_gen@my-rialto.com> Dec 31 11:45AM +0800  

    > less efficient -- to simplify development, debugging and later,
    > maintenance
    > and enhancements.
     
    I have not thought about this; anyway I have been more active with PHP,
    javascript intepreted languages (before C/C++, occassional cursory look at
    Java).
     
    By the way you mean the current thinking is to convert binary data into
    ASCII representation ?
     
    I think hexadecimal notation (correct me if I am wrong), something like in
    an RTF file.
     
     
     
    --
    Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

     

    Miguel Morales <therevoltingx@gmail.com> Dec 30 07:49PM -0800  

    If you have a background with php and javascript you should already know
    about json.
    What are you trying to do? This sounds like something a simple webservice
    with a fileserver could easily do.
     
     
    --
    ~ Jeremiah:9:23-24
    Android 2D MMORPG: http://solrpg.com/,
    http://www.youtube.com/user/revoltingx

     

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

    > What are you trying to do? This sounds like something a simple
    > webservice
    > with a fileserver could easily do.
     
     
    I have heard about 'json' but never bother with it. Those web related
    things are done with PHP and javascript without 'json'.
     
    Recently while I was planning to FTP some files onto a webserver with java
    that I discovered java does not provide FTP features (quite a let-down
    really). Of course 3rd-party library like apache provides such a service,
    but I am a bit reluctant to use a 3rd-party tool, always fearing the
    possibilty of a back-door virus. It was only then I realised that a PHP
    script on a webserver would do the job.
     
     
     
    --
    Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

     

    Miguel Morales <therevoltingx@gmail.com> Dec 30 08:32PM -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.
     
     
    --
    ~ Jeremiah:9:23-24
    Android 2D MMORPG: http://solrpg.com/,
    http://www.youtube.com/user/revoltingx

     

    barry <barry.drinkwater@gmail.com> Dec 30 03:54PM -0800  

    I have an app which uses a sqlite database and a ContentProvider to
    serve up data. The eclipse project has a unit test which adds a record
    to a database, retrieves it and asserts against the retrieved data:
     
    public void testAddNewVehicle() { Vehicle vehicle1 = new
    Vehicle("xyz", "my car", 111f); long result =
    VehicleProvider.addVehicle(getContext(), vehicle1);
     
    assertTrue(1 == result);
     
    ArrayList<Vehicle> vehicles =
    VehicleProvider.getVehicles(getContext()) ;
     
    assertEquals(1, vehicles.size()); assertEquals("xyz",
    vehicles.get(0).getRegistrationNo()); assertEquals("my car",
    vehicles.get(0).getDescription()); assertEquals(111.0f,
    vehicles.get(0).getInitialMileage()); }
     
    My setup method deletes the database:
     
    @Override protected void setUp() throws Exception { super.setUp();
    deleteTestDatabase(); }
     
    The test passes when I choose 'run', but if I choose debug, it fails
    at theassertEquals(1, vehicles.size()); line. After stepping through
    the code I have noticed something strange: even though the data
    insertion succeeds and assertTrue(1 == result); passes, the database
    does not exist on the file system at this point. It is only created
    when VehicleProvider.getVehicles(getContext()); is called.
     
    Both addVehicle() and getVehicles() result in a call
    togetWritableDatabase(), so I don't see why the first call does not
    create the database on disk. The addVehicle() method will eventually
    call insert() (irrelevant code omitted):
     
    @Override public Uri insert(Uri uri, ContentValues values) { String
    table = table = Constants.VEHICLE_TABLE_NAME;
     
    long rowID = UKMPGDataProvider.getWritableDatabase().in sert(table,
    null, values);
     
    // ---if added successfully---if (rowID > 0) { Uri insertedRowUri =
    insertedRowUri = ContentUris.withAppendedId(VEHICLE_CONTENT _URI,
    rowID);
     
    getContext().getContentResolver().notifyC hange(insertedRowUri, null);
    return insertedRowUri; } throw new SQLException("Failed to insert row
    into " + uri); }
     
    And the getVehicle() will eventually call query():
     
    @Override public Cursor query(Uri uri, String[] projection, String
    selection, String[] selectionArgs, String sortOrder)
    { SQLiteQueryBuilder sqlBuilder = new SQLiteQueryBuilder();
     
    sqlBuilder.setTables(uri.getPathSegments( ).get(0));
     
    if (uriMatcher.match(uri) == VEHICLE_ID) // ---if getting a particular
    vehicle
     
    sqlBuilder.appendWhere(BaseColumns._ID + " = " +
    uri.getPathSegments().get(1));
     
    if (sortOrder == null || sortOrder == "") { sortOrder =
    BaseColumns._ID; }
     
    Cursor c = sqlBuilder.query(UKMPGDataProvider.getWri tableDatabase(),
    projection, selection, selectionArgs, null, null, sortOrder);
     
    // ---register to watch a content URI for changes---
     
    c.setNotificationUri(getContext().getCont entResolver(), uri); return
    c; }
     
    As I say, the test passes when not in debug mode.

     

    barry <barry.drinkwater@gmail.com> Dec 30 04:02PM -0800  

    My apologies for the formatting in the original message!
     

     

    James Black <planiturthian@gmail.com> Dec 30 10:28PM -0500  

    Where is the database table created?

     

    yaqub ahmad <yaqubonnet@gmail.com> Dec 30 07:01PM -0800  

    Please see the code i am using for streaming shoutcast stream, it
    works with one URL but NOT with the other one.
     
    This one works:
     
    Uri myUri = Uri.parse("http://fr3.ah.fm:9000/");
     
    But not with this one:
     
    Uri myUri = Uri.parse("http://ib3.islambox.tv:8011/");
     
    SimpleMusicStream.java
     
    import android.app.Activity;
    import android.media.AudioManager;
    import android.media.MediaPlayer;
    import android.net.Uri;
    import android.os.Bundle;
    import android.util.Log;
    import android.view.View;
    import android.widget.Button;
     
    public class SimpleMusicStream extends Activity implements
    MediaPlayer.OnCompletionListener,
    MediaPlayer.OnPreparedListener,
    MediaPlayer.OnErrorListener,
    MediaPlayer.OnBufferingUpdateListener {
     
    private String TAG = getClass().getSimpleName();
    private MediaPlayer mp = null;
     
    private Button play;
    private Button pause;
    private Button stop;
     
    @Override
    public void onCreate(Bundle icicle) {
    super.onCreate(icicle);
    setContentView(R.layout.main);
     
    play = (Button) findViewById(R.id.play);
    pause = (Button) findViewById(R.id.pause);
    stop = (Button) findViewById(R.id.stop);
     
    play.setOnClickListener(new View.OnClickListener() {
    public void onClick(View view) {
    play();
    }
    });
     
    pause.setOnClickListener(new View.OnClickListener() {
    public void onClick(View view) {
    pause();
    }
    });
     
    stop.setOnClickListener(new View.OnClickListener() {
    public void onClick(View view) {
    stop();
    }
    });
    }
     
    private void play() {
    Uri myUri = Uri.parse("http://fr3.ah.fm:9000/");
    try {
    if (mp == null) {
    this.mp = new MediaPlayer();
    } else {
    mp.stop();
    mp.reset();
    }
    mp.setDataSource(this, myUri); // Go to Initialized state
    mp.setAudioStreamType(AudioManager.STREAM_MUSIC);
    mp.setOnPreparedListener(this);
    mp.setOnBufferingUpdateListener(this);
     
    mp.setOnErrorListener(this);
    mp.prepareAsync();
     
    Log.d(TAG, "LoadClip Done");
    } catch (Throwable t) {
    Log.d(TAG, t.toString());
    }
    }
     
    @Override
    public void onPrepared(MediaPlayer mp) {
    Log.d(TAG, "Stream is prepared");
    mp.start();
    }
     
    private void pause() {
    mp.pause();
    }
     
    private void stop() {
    mp.stop();
     
    }
     
    @Override
    public void onDestroy() {
    super.onDestroy();
    stop();
     
    }
     
    public void onCompletion(MediaPlayer mp) {
    stop();
    }
     
    public boolean onError(MediaPlayer mp, int what, int extra) {
    StringBuilder sb = new StringBuilder();
    sb.append("Media Player Error: ");
    switch (what) {
    case MediaPlayer.MEDIA_ERROR_NOT_VALID_FOR_PROGRESSIVE_PLAYBACK:
    sb.append("Not Valid for Progressive Playback");
    break;
    case MediaPlayer.MEDIA_ERROR_SERVER_DIED:
    sb.append("Server Died");
    break;
    case MediaPlayer.MEDIA_ERROR_UNKNOWN:
    sb.append("Unknown");
    break;
    default:
    sb.append(" Non standard (");
    sb.append(what);
    sb.append(")");
    }
    sb.append(" (" + what + ") ");
    sb.append(extra);
    Log.e(TAG, sb.toString());
    return true;
    }
     
    public void onBufferingUpdate(MediaPlayer mp, int percent) {
    Log.d(TAG, "PlayerService onBufferingUpdate : " + percent +
    "%");
    }
     
    }
     
     
     
    main.xml:
     
     
    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <Button
    android:text="Play"
    android:id="@+id/play"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"></Button>
    <Button
    android:text="Pause"
    android:id="@+id/pause"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"></Button>
    <Button
    android:text="Stop"
    android:id="@+id/stop"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"></Button>
    </LinearLayout>
     
    The Log-cat shows errors:
     
    NuHTTPDataSource(33): Server did not give us the content length!
     
    Media Player Error: Unknown (1) -2147483648
     
     
    Can someone help me to fix it?
     
    Thanks

     

    Sean751 <sean751@gmail.com> Dec 30 07:00PM -0800  

    Thanks for responding,
    I still have a problem
    I can do a method for
    public boolean onGroupClick(ExpandableListView parent, View v,int
    groupPosition, long id) {} but it does nothing when a group is
    clicked.
    If I add
    getExpandableListView().setOnGroupClickListener((OnGroupClickListener)
    this); it asks me to type cast 'this'. Then the application crashes on
    run. I suppose onclick must be used for changing the display could the
    conflict be the problem?
    Any ideas
    Thanks
    Sean
     
     

     

    Jeresam515 <jeremyschiff515@gmail.com> Dec 30 11:45AM -0800  

    The solution I found is to change deleteallnotes() to: public void
    deleteAllNotes() { mDb.execSQL("DROP TABLE IF EXISTS
    notes");mDb.execSQL(DATABASE_CREATE); }
     

     

    lbendlin <lutz@bendlin.us> Dec 30 05:31PM -0800  

    if you only have a few entries then "Drop table" is a bit of an overkill.
    Simply issuing "Delete from table" is sufficient in most cases.

     

    barry <barry.drinkwater@gmail.com> Dec 30 04:05PM -0800  

    I have an app that uses a ContentProvider to serve data instead of
    directly accessing the database. The application is working as
    expected but I have a problem with unit tests: how can I force the
    ContentProvider to use a test database rather than a 'live' one? If I
    wasn't using a ContentProvider I could pass a different database name
    to the Constructor of my `SQLiteOpenHelper` sublass, but now the
    database is created with a call to onCreate() in my ContentProvider:
     
    @Override
    public boolean onCreate()
    {
    UKMPGDataProvider.init(getContext(), Constants.DATABASE_NAME);
    return (UKMPGDataProvider.getWritableDatabase() == null) ? false :
    true;
    }
     
    As you can see, the database name is hardcoded.
     
    Is there a way to pass a test name into the ContentProvider?

     

    TurboMan <yusufcelik@gmail.com> Dec 30 11:25AM -0800  

    Hi,
     
    Would that cause any trouble if I initiate second AsyncTask thread right at
    the onPostExecute event of first AsyncTask?
     
    Regards
    TM

     

    TurboMan <yusufcelik@gmail.com> Dec 30 11:27AM -0800  

    I may ask the question in another way.
    What is the best way to execute more than one thread after completion of
    another?

     

    Mukesh Srivastav <mukichamps@gmail.com> Dec 31 01:00AM +0530  

    What are you trying to really achieve with that ?
     
    secondly, onpostExecute() is the one which actually executed lastly, i mean
    after doInbackground(), it means that it executes after your firstAsyncTask
    is finished and i dont see any problem as long your close all the created
    objects in preExecute before calling the Second AsyncTask.
     
     
    One of My blog on Android using one Generic ASYNCTask for all the
    Activities.
     
    http://www.androidsnippets.com/asyntask-in-android
     
    --
    Warm Regards,
    *Mukesh Kumar*,
    Android Consultant/Freelancer,
    India,Hyderabad.
     

     

    TurboMan <yusufcelik@gmail.com> Dec 30 12:47PM -0800  

    Thanks Mukesh,
     
    The reason I am trying to do this is:
    After I download a file then I wish to process the file in another thread*.
    *So I have to wait the first thread to finish its job.
     
    Regards
    TM*
    *

     

    TurboMan <yusufcelik@gmail.com> Dec 30 01:26PM -0800  

    So I can notify the user

     

    Jeresam515 <jeremyschiff515@gmail.com> Dec 30 11:46AM -0800  

    So I'm making a simple painting app for the Android SDK. However, the
    onTouchEvent() is only getting some of the events not all of them(if I
    drag my finger across the screen it gets roughly half of the
    events(points)) Here is my OnTouchEvent():
     
    @Override
    public boolean onTouchEvent(MotionEvent event) {
    mDbHelper.createNote(event.getX(), event.getY(), 11);
    NotesMade ++;
    mLemonadeMainMenuView.setCoords(NotesMade);
    return true;
    }
     
     
    private void doDraw(Canvas canvas) {
    canvas.drawColor(Color.TRANSPARENT);
    Paint paint = new Paint();
    paint.setColor(Color.BLUE);
    paint.setStyle(Style.FILL);
    int mNoteId = 0;
    while(mNotesMade>mNoteId)
    {mNoteId++;
    Cursor note = mDbHelper.fetchNote(mNoteId);
    Float x;
    Float y;
    Float size;
    x =
    Float.valueOf(note.getString(note.getColumnIndexOrThrow(NotesDbAdapter.KEY_X)));
    y=
    Float.valueOf(note.getString(note.getColumnIndexOrThrow(NotesDbAdapter.KEY_Y)));
    size =
    Float.valueOf(note.getString(note.getColumnIndexOrThrow(NotesDbAdapter.KEY_Size)));
    canvas.drawCircle(x, y, size, paint);}
    }}
     
    Drawing portion above. Logcat also reveals nothing. Help would be
    greatly appreciated. How can I fix my OnTouchEvent()?

     

    guich <guihazan@gmail.com> Dec 30 11:06AM -0800  

    Hi,
     
    I store some zipped data in the assets. When my app runs at the first
    time, i unpack the zip. The original zip in the assets folder is
    useless, however, we cannot delete it.
     
    Is there another way to pack files into an apk that we can later
    delete after using it?
     
    thanks
     
    guich

     

    guich <guihazan@gmail.com> Dec 30 11:08AM -0800  

    On a side note, is it possible to get the creation data and time of
    the asset file?

     

    Romain Guy <romainguy@android.com> Dec 30 10:17AM -0800  

    If that happens it means you are creating your OpenGL context on the
    UI thread. Or that you are running some of your GL code on the UI
    thread. I have seen apps do this before (Google Maps had such a bug
    before we shipped 4.0 for instance.)
     
    Drivers usually generate the same series of names when you invoke
    glGenTextures(). For instance, if you invoke glGenTextures() in two
    different GL contexts on two different threads, both calls will return
    the same value (for instance 1 on Tegra.) This means that if you run
    your code on the wrong context/thread you are likely to use a texture
    that's not yours but has the same identifier.
     
    If you are creating your OpenGL context on the UI thread you should
    always make sure to call eglMakeCurrent() before you do anything else,
    otherwise your GL commands will run on the context created by the UI
    toolkit.
     
    If you creating your OpenGL context on another thread, make sure that
    all of your GL commands are executed on that particular thread.
     
     
    --
    Romain Guy
    Android framework engineer
    romainguy@android.com

     

    petter <petter.gustad@gmail.com> Dec 30 04:01AM -0800  

    In my application I dynamically create buttons, but it would be better
    if I could specify a button in the resource file and then clone it to
    inherit its style, size, etc. But how do you clone a button or other
    view object? I've tried to call .clone() but I seem to get all sorts
    of errors and warnings, probably because I'm not casting in the right
    order.

     

    skink <pskink@gmail.com> Dec 30 04:18AM -0800  

    petter wrote:
    > view object? I've tried to call .clone() but I seem to get all sorts
    > of errors and warnings, probably because I'm not casting in the right
    > order.
     
     
    use LayoutInflater
     
    pskink

     

    surabhi jain <surabhi17.jain@gmail.com> Dec 30 05:22PM +0530  

    I'd like to know which is the intent android sends when it sends a message.
    And how can I listen for this intent in my application. I wanted that, when
    I send a message in native android messaging, my application listen this
    intent, so it will know a new message has been sent.
     
    So, which one is it, and how to listen for this intent?

     

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