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

Comments: (0)

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

    sree android <android.sreenivas@gmail.com> Dec 01 09:16AM +0530  

    i am using but not working
     

     

    sree android <android.sreenivas@gmail.com> Dec 01 09:18AM +0530  

    Here clicking child Listview their only one window is open(In attachment
    two .jpg file line number 3,i clicked ' feed the cat ' and that window is
    open)like that their is which concept is used.It is usefull for me
    Replay me plz.
    if any posible give me with code.

     

    Richard Schilling <coderroadie@gmail.com> Nov 30 03:50PM -0800  

    I would like to take on an issue found in the issues list of the Android
    project (http://code.google.com/p/android/issues/list). How can I get
    assigned as the owner of a specific issue?
     
    Thanks.
     
    Richard

     

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 13 Topics

Comments: (0)

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

    Keith Wiley <kbwiley@gmail.com> Nov 30 03:36PM -0800  

    *CodeDefender* -> *ProGuard*. Sorry for the confusion.

     

    bob <bob@coolfone.comze.com> Nov 30 01:10PM -0800  

    If you create a Thread in an activity, does it generally live beyond a call
    to onPause?

     

    TreKing <trekingapp@gmail.com> Nov 30 03:25PM -0600  


    > If you create a Thread in an activity, does it generally live beyond a
    > call to onPause?
     
     
    Why wouldn't it? Write a simple test and see for yourself.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Streets Of Boston <flyingdutchie@gmail.com> Nov 30 01:28PM -0800  

    Yes.
     
    Threads are alive as long as they run and are not at all associated with an
    Activity's (or any other object's) life-cycle.
     
    This is also one of the main reason why it is dangerous to create
    sub-classes of Thread that are (anonymous) non-static inner classes, where
    the outer class is an Activity (or any other object whose life-cycle is
    externally maintained), since instances of these Threads hold implicit
    references to the outer Activity instance --> Activity leak.
     
     
     
    On Friday, November 30, 2012 4:10:57 PM UTC-5, bob wrote:

     

    Piren <gpiren@gmail.com> Nov 30 01:30PM -0800  

    Yes, those have nothing to do with one another.
     
    On Friday, November 30, 2012 4:10:57 PM UTC-5, bob wrote:

     

    Kristopher Micinski <krismicinski@gmail.com> Nov 30 06:30PM -0500  

    Yes, with the caveat that if you're doing this it might not be such a good
    idea.
     
    In Android, you might be better fit with creating a Service that mediates
    interaction between the Activity and the background thread, that or using
    an asynctask.
     
    kris
     
     

     

    TreKing <trekingapp@gmail.com> Nov 30 03:31PM -0600  

    On Tue, Nov 27, 2012 at 10:18 AM, Nirab pudasaini <
     
    > I am developing an android app. I need to pull posts from an online phpBB
    > 3 forum and then display them in my app.
    > How do i achieve this ????
     
    Write code to do what you described.
     
    http://www.catb.org/esr/faqs/smart-questions.html
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    bob <bob@coolfone.comze.com> Nov 30 02:43PM -0800  

    Sounds like a job for java.net.HttpURLConnection.
     
     
    On Tuesday, November 27, 2012 10:18:41 AM UTC-6, Nirab pudasaini wrote:

     

    "Mário César Mancinelli de Araújo" <mandapromario@gmail.com> Nov 30 08:55PM -0200  

    Actualy you can make a whole new UI for the phpBB, if you were able to
    access the forum database. It's not dificult, you just have to search for a
    good documentation about the phpBB.

     

    TreKing <trekingapp@gmail.com> Nov 30 02:45PM -0600  


    > Is there a way to know the height of the default soft keyboard that
    > appears when a textField is focused?
     
     
    I don't know, but why do you care? There might be a better alternative to
    whatever you're doing.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    RichardC <richard.critten@googlemail.com> Nov 30 12:43PM -0800  

    You can get it by taking the height the display area and subtracting the
    height of your outer most ViewGroup.
     
    Why do you need the height anyway?
     
    On Friday, November 30, 2012 6:38:07 PM UTC, Rudy wrote:

     

    Rudy <rudytm23@gmail.com> Nov 30 02:05PM -0800  

    Well i'm using cocos2d-x and when the keyboard appears, it does not
    reallocate the controls, and if there are controls behind the keyboard they
    keep behind and i can't see what i am writing, so i want to know the
    keyboard size to move my view, I tested changing the manifest to do it
    automatically, but it did not work, so I am trying programatically via
    Cocos2d-x or via android and jni.
     
    El viernes, 30 de noviembre de 2012 12:38:07 UTC-6, Rudy escribió:

     

    "J. Rodolfo Peña Butrón" <rudytm23@gmail.com> Nov 30 04:44PM -0600  

    android:windowSoftInputMode="adjustResize" but id did not work
     
     

     

    TreKing <trekingapp@gmail.com> Nov 30 04:53PM -0600  

    On Fri, Nov 30, 2012 at 4:44 PM, J. Rodolfo Peña Butrón
     
    > android:windowSoftInputMode="adjustResize" but id did not work
     
    Well, so much for that then. That's what I would have pointed you to.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    darrinps <darrinps@gmail.com> Nov 30 01:47PM -0800  

    Well I first tried adding in the onReceivedSslEror into the WebViewClient:
     
    @Override
    public void onReceivedSslError(WebView view, SslErrorHandler
    handler, SslError error)
    {
    DebugLog.d(TAG, "SSL Error received");
    handler.proceed();
    }
     
    When I ran it though, it never got hit, so I thought it must not be an SSL
    issue.
     
    BUT, then I tried using a browser on the device instead:
     
    Intent myIntent = new Intent(Intent.ACTION_VIEW,
    Uri.parse(uriString));
    startActivity(myIntent);
     
    When the browser came up it showed, you guessed it, a security warning
    about the certificate! When I pressed Continue to add the exception the
    page loaded just fine!
     
    So, it's either forgo the WebView or get the site to update their
    certificate.
     
    THANKS!
     
     
    On Friday, November 30, 2012 2:20:24 PM UTC-6, darrinps wrote:

     

    TreKing <trekingapp@gmail.com> Nov 30 03:30PM -0600  

    On Thu, Nov 22, 2012 at 3:27 AM, Carlos Delgado Beltrán <
     
    > I'm not a developer for Android but I'm a common user of this devices.
     
     
    Feature requests would go here, I think:
    http://code.google.com/p/android/issues/list
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    "Παύλος-Πέτρος Τουρνάρης" <p.tournaris@gmail.com> Nov 30 10:39PM +0200  

    Stopped working = stopped receiving notifications even though the GCM
    Receiver was enabled.
     
    I have to register the receiver class in the Manifest in order to work.
     
     

     

    Abhilash baddam <abhilash.androiddeveloper@gmail.com> Dec 01 02:06AM +0530  

    Hi,
     
    I tried to record a video and after saving the video, when i tried to play
    that recorded video from the Gallery it always playing in Landscape mode
    even if rotate my device into portrait mode.
    This thing is happening only in Ginger Bread 2.3.6 but in the devices with
    OS version ICS,2.3.3,2.3.4 the same recorded video is playing in both
    landscape and portrait mode.
    Means whether that feature is eliminated from GingerBread 2.3.6 or what.
    Help me out If anybody is having any idea on this.

     

    sree android <android.sreenivas@gmail.com> Nov 30 04:40PM +0530  

    Here i am using ExpandableListview,when i clicked child view the toast are
    not working,why?any one help me.
     
    and After clicking child Listview their only one window is open(In
    attachment two .jpg file line number 3,i clicked feed the cat and that
    window is open)like that their is which concept is used.
    It is usefull for me
     
    Sorry for my english plz understand me.

     

    bob <bob@coolfone.comze.com> Nov 30 07:40AM -0800  

    Change this line:
     
    Toast.makeText(MyExpandableActivity.this,"Clicked Child",3000).show();
     
    to this:
     
    Toast.makeText(MyExpandableActivity.this,"Clicked
    Child",Toast.LENGTH_LONG).show();
     
     
     
     
    On Friday, November 30, 2012 5:10:13 AM UTC-6, sree wrote:

     

    bob <bob@coolfone.comze.com> Nov 30 07:30AM -0800  

    I believe this document is in error:
    http://source.android.com/tech/accessories/guide/custom.html
     
    It talks about this:
     
    Simple Serial Protocol (SSP)
     
    I'm fairly certain it should say:
     
    Serial Port Profile (SPP)
     
     
     
     
    On Wednesday, November 28, 2012 5:49:51 PM UTC-6, Lew wrote:

     

    skink <pskink@gmail.com> Nov 30 03:12AM -0800  

    John A wrote:
    > and then touches the activity again.
     
    > Is there any way I can force the GestureOverlayView to start a new gesture
    > immediately?
     
    you could try (i know its an ugly solution) to simulate ACTION_DOWN
    event and pass it to your view:
     
    yourView.
    dispatchTouchEvent(event)
     
    pskink

     

    Mobile Developer <c2dmdeveloper@gmail.com> Nov 30 02:14AM -0800  

    Hi All,
     
    Parent layout holds the ontouch event so it didnt allow click events to its
    child. Do we have any work around to make touch event for parent to drag
    the layout and click event to child items.
     
    Thanks
     
    On Wednesday, November 7, 2012 10:54:28 PM UTC+5:30, Mobile Developer wrote:

     

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 13 Topics

Comments: (0)

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

    darrinps <darrinps@gmail.com> Nov 30 08:52AM -0800  

    I have some old 2.3 devices that just won't display some HTML pages which
    all other devices seem to work just fine. All the ones with problems show
    is a blank page.
     
    The really odd thing is that if I copy the HTML file onto the phone, then
    do this:
     
    webview.loadUrl("file:///sdcard/page.html");
     
    then it works just fine!
     
    Why on earth it would work when locally yet not work when loaded from the
    Internet I do not know.
     
    Anyone run into this before and if so, how did you get around it?

     

    Michael Banzon <michael@banzon.dk> Nov 30 06:02PM +0100  

    Is there anything special on the pages? Javascript or embedded elements -
    some fancy transitions e.g. in CSS?
     
    I'm thinking that the renderer is preventing some "advanced" stuff on pages
    loaded from "internet" instead of local - where it is trusted.
     
    A possible workaround would be to load the pages yourself and display them
    in the way that works?
     
     
     
    --
    Michael Banzon
    http://michaelbanzon.com/

     

    darrinps <darrinps@gmail.com> Nov 30 10:03AM -0800  

    Nothing really special. No javascript (and I even turned that off in the
    webview first thing as a guess). One line of CSS is all.
     
    Are you suggesting that I read in the HTML, save it off and then load it
    back from file like I did to test it?
     
     
     
    On Friday, November 30, 2012 11:02:06 AM UTC-6, mbanzon wrote:

     

    darrinps <darrinps@gmail.com> Nov 30 10:44AM -0800  

    Hmmm...another piece to the puzzle.
     
    I intercept the HTML to see what it looks like and although the page stops
    loading, when I inspect it, all I see is an empty HTML page! So for
    whatever reason, the problem devices aren't getting the data loaded when I
    retrieve it over the Internet.
     
    For those who want to know how to intercept the HTML, here is what you do
    just BEFORE your call to WebView.loadUrl()
     
    // intercept calls to console.log
    webview.setWebChromeClient(new WebChromeClient()
    {
    public boolean onConsoleMessage(ConsoleMessage cmsg)
    {
    // check secret prefix
    if (cmsg.message().startsWith("MAGIC"))
    {
    String msg = cmsg.message().substring(5); // strip off
    prefix
     
    // process HTML
     
    DebugLog.d(TAG, msg);
    return true;
    }
     
    return false;
    }
    });
     
    // inject the JavaScript on page load
    webview.setWebViewClient(new WebViewClient() {
    public void onPageFinished(WebView view, String address)
    {
    // have the page spill its guts, with a secret prefix

    view.loadUrl("javascript:console.log('MAGIC'+document.getElementsByTagName('html')[0].innerHTML);");
     
     
    //Stop the spinner
    activityIndicator.setVisibility(View.GONE);
     
    }
    });
     
     
    On Friday, November 30, 2012 12:03:33 PM UTC-6, darrinps wrote:

     

    Nobu Games <dev.nobu.games@gmail.com> Nov 30 11:00AM -0800  

    Here rings a bell... I had to work on a WebView based app about two years
    ago and I also noticed the blank-page problem on some devices whereas it
    worked just fine on others. It turned out that WebView rejected the SSL
    certificate of the loaded webpage. So if you're loading an HTTPS page this
    could be an explanation for that problem.
     
    If the server provider / owner of the web page to load does have a valid
    certificate you need to verify that the certificate information is also
    consistent and correct (must match the specific domain / subdomain).
    Android can be very specific about that.

     

    darrinps <darrinps@gmail.com> Nov 30 12:20PM -0800  

    By golly it is a secured site. Hmmm...that could just be it. Odd that some
    versions of Android would care more than others but, hey, if it's the way
    it is then that's just the way it is.
     
    I would think that onReceiveError would get called though and it isn't.
    Just an over site by 2.3 possibly though.
     
    Thanks. I'll dig into this!
     
     
     
    On Friday, November 30, 2012 1:00:38 PM UTC-6, Nobu Games wrote:

     

    bob <bob@coolfone.comze.com> Nov 30 12:13PM -0800  

    I've been baffling my brain with this some more.
     
    I suspect the solution to the problem lies in this text.
     
    /**
    * Update the texture image to the most recent frame from the image
    stream. This may only be
    * called while the OpenGL ES context that owns the texture is current
    on the calling thread.
    * It will implicitly bind its texture to the GL_TEXTURE_EXTERNAL_OES
    texture target.
    */
    public void updateTexImage() {
    nativeUpdateTexImage();
    }
     
     
    I suspect the key is figuring out what "while the OpenGL ES context that
    owns the texture is current on the calling thread" means.
     
    Anyone have some Advil and a Babel fish?
     
     
    On Thursday, November 29, 2012 2:50:15 PM UTC-6, bob wrote:

     

    Keith Wiley <kbwiley@gmail.com> Nov 30 12:12PM -0800  

    The 'Dungeons' demo code goes to some length to emphasize the security
    issues involved in implementing in-app purchases. One thing it makes some
    issue of is being careful about dropping the demo code into an existing
    project as opposed to reimplementing it from scratch (ugh). I'm using
    CodeDefender (or whatever it's called, I don't have it in front of me right
    now) for basic obfuscation, and I certainly intend to "mix up" the demo
    code some...but I'm curious if there is a more explicit prescription for
    how to fold in-app purchases into a project. Would others strongly advise
    against literally duplicating the Dungeons code into a subpackage of my
    actual project and then proceeding to make various cosmetic, yet
    functionally null, changes to the code? Is there a better way to
    accomplish this overall task?
     
    Thanks.

     

    bob <bob@coolfone.comze.com> Nov 30 11:31AM -0800  

    There are plenty of *Battery Saver* apps that do roughly this already.
    There may be some that even do exactly that.
     
     
     
    On Tuesday, November 27, 2012 11:16:42 AM UTC-6, Javo wrote:

     

    TreKing <trekingapp@gmail.com> Nov 30 10:58AM -0600  

    The error seems pretty clear. Which part of "you're missing SDK platform
    version 17" doesn't make sense to you?
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    TreKing <trekingapp@gmail.com> Nov 30 12:57PM -0600  


    > What is unclear is why there is no option to get that SDK.
     
     
    Now that's a question. There are numerous hits on Google for "android sdk
    manager missing sdk platform". See if any of those help.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    bob <bob@coolfone.comze.com> Nov 30 11:22AM -0800  

    They did not help.
     
    On Friday, November 30, 2012 12:57:27 PM UTC-6, TreKing wrote:

     

    TreKing <trekingapp@gmail.com> Nov 30 11:17AM -0600  


    > my personal favorites are the "i want the app to have feature X, you get 1
    > star until you add it"... bastards lol
     
    Even better: feature X already exists.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Techni <neotechni@gmail.com> Nov 30 11:13AM -0800  

    I hate those ones.
     
    On Friday, 30 November 2012 12:17:52 UTC-5, TreKing wrote:

     

    Nobu Games <dev.nobu.games@gmail.com> Nov 30 10:53AM -0800  

    Did you check for the typical bottlenecks? It sounds like you're performing
    intensive tasks on the UI thread, which might explain the lag of 2 seconds
    until the UI is visible. I guess that your web service requests runs on the
    UI thread. And maybe your code accidentally starts that request again when
    coming back from the other activity.
     
    In general you need to avoid the following on the UI thread: any kind of
    I/O like reading/writing files, database access, loading bitmaps, Internet
    requests should be done in a background thread. You can use AsyncTask for
    doing that.
     
    http://developer.android.com/training/articles/perf-anr.html
     
     
    On Tuesday, November 27, 2012 10:27:56 PM UTC-6, MathieuB wrote:

     

    Rudy <rudytm23@gmail.com> Nov 30 10:38AM -0800  

    Is there a way to know the height of the default soft keyboard that appears
    when a textField is focused? Because I don't want to create my own
    keyboard, i want to use the default one.

     

    Nobu Games <dev.nobu.games@gmail.com> Nov 30 10:30AM -0800  

    On Friday, November 23, 2012 8:47:38 AM UTC-6, Alexander Hoffmann wrote
     
    > The second question is: Should I connect directly to the database with the
    > android application or should a create webservices on the server which save
    > the data in the database and which I call from the Android application.
     
    My database lecturer at university would have said: never ever expose the
    raw database, not even to the server application. He was a firm believer in
    using only stored procedures for any database interaction in order to:
     
    - Separate concerns (separate data layer from business logic)
    - Preserve data consistency (data layer itself makes sure that the data
    and any changes to it "make sense". The business logic is not allowed to
    mess around with it)
    - Only allow as much data access / manipulation as necessary
    - Basically set up a database role with read-only rights for the
    business logic. That role is also allowed to call these stored procedures

    If you allow your Android clients direct access to your database you must
    do a hell of a good job of making sure that no misuse is possible:
     
    - SQL injection attacks (could even execute arbitrary code on your
    server and hijack it)
    - Access to private server-data
    - Access to other users' private data
    - Vandalism, data corruption
     
    That's really a tough one to cope with properly so do not go for that
    option.
     
    To keep things secure and reasonable create a web service that offers a
    clean, authenticated, session based interface to your Android client app.
    Do not allow direct database access at all.
     
    You do not really need to implement stored procedures even though they can
    be really elegant. But make sure for the very least that you use prepared
    statements in your SQL queries in order to invoid injection attacks.
     
    If you need password based user authentication then please do not store
    plain text passwords. Store "hashed and salted" versions of the passwords
    using individual random salts per password. In case there is a data breach
    you increase the chances of making the stolen password list useless for an
    attacker.
     
    You can find lots of material online for all these buzz words I mentioned.

     

    TreKing <trekingapp@gmail.com> Nov 30 11:58AM -0600  

    On Wed, Nov 28, 2012 at 10:53 AM, Παύλος-Πέτρος Τουρνάρης <
     
    > Although at first it worked like a charm, in the Preferences Screen, when
    > i restarted the App it stopped working.
     
    You should clarify "stopped working".
     
     
    > Is there any appropriate way to enable/disable such a Receiver across the
    > Application?
     
    Don't know a ton about Receivers, but maybe instead of registering it in
    the manifest, you enable it in code if your preference is set?
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    qkx <mildev84@gmail.com> Nov 30 01:24AM -0800  

    I'm trying to create some ads in Admob, but on last step I always get error:
     
    There were problems with your submission
     
    but it didn't specify *WHERE WHERE WHERE *:) I swear god, there are no
    errors on whole page, all fields are correctly filled, I see no red shapes
    around fields, everything match criterias written under fields, but I stil
    get this error - without any explanation. Has anybody same experiences?
    It's totally frustrating :(

     

    TreKing <trekingapp@gmail.com> Nov 30 11:54AM -0600  


    > I'm trying to create some ads in Admob
     
     
    You should probably consult AdMod support.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Jason Hsu <jhsu802701@gmail.com> Nov 30 08:10AM -0800  

    I'm interested in learning to work with ActionBarSherlock.
     
    What are the best tutorials for getting started? I need to start off with
    the Hello World of ActionBarSherlock and then work my way up to more
    complex apps.

     

    TreKing <trekingapp@gmail.com> Nov 30 11:14AM -0600  


    > I'm interested in learning to work with ActionBarSherlock.
     
    > What are the best tutorials for getting started?
     
    If you have questions about a 3rd party API, you should consult the web
    site and / or forums of that API.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

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 11 Topics

Comments: (0)

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

    Satya Komatineni <satya.komatineni@gmail.com> Nov 30 10:17AM -0500  

    <application...>
    <activity.../>
    <meta-data android:name="android.app.default_searchable"
    android:value="*" />
    </application>
     
    Is this feature of indicating "*" seem to be deprecated.
     
    The following lines in Searchables.java
     
    // This value is deprecated, return null
    if (refActivityName.equals(MD_SEARCHABLE_SYSTEM_SEARCH)) {
    return null;
    }
     
     
    Thank you so much
    Satya

     

    Chris Grebeldinger <cgrebeld@gmail.com> Nov 30 07:08AM -0800  

    To follow up in case it's useful to someone else:
     
    I ended up doing my testing with two devices using the same google account.
    IE force a backup from one device, then do a factory reset on a second
    device and see if the the data gets restored with the app is first
    installed on the second device.
     
     
    On Thursday, October 11, 2012 9:04:52 PM UTC-4, Chris Grebeldinger wrote:

     

    b0b <pujos.michael@gmail.com> Nov 30 01:44AM -0800  

    On Friday, 30 November 2012 07:31:00 UTC+1, Techni wrote:
     
    > I am getting some really STUPID comments and it's infuriating that I can
    > do nothing about them
     
    Good question. I hope Developer comments will not stay in perpetual beta,
    with approved developers and second class developers.
     
    I also get a fair share of user comments that prompts a reply:
     
    - user making totally false and misleading claim (and I'm not talking about
    not agreeing with personal opinion of user here)
    - user making support request

     

    qkx <mildev84@gmail.com> Nov 30 01:52AM -0800  

    Yeah, it's totally irritating - my app has fantastic review, but many
    idiots posted 1start rating with comments like "cant buy it in my country"
    or so. Its false, unobjective, and I have nothing to do with that - I would
    banned comments like this...Another idios post 1 start rating like "dont
    work after update" also I expicitely wrote in 2-3 places in description,
    that it's better to send mails if they have problem, so I can help them.
    People are just stupid :)
     
    Dňa piatok, 30. novembra 2012 10:44:51 UTC+1 b0b napísal(-a):

     

    qkx <mildev84@gmail.com> Nov 30 01:58AM -0800  

    Yeah, it's totally irritating - my app has fantastic review, but many
    idiots posted 1-star rating with comments like "cant buy it in my country
    asshole" or so. It's false, unobjective, and I have nothing to do with that
    - I would banned comments like this...Another "slow thinking" people post
    1-star rating like "xyz function dont work after update" even I wrote
    expicitely what to do when updating, and if they have problem I expicitely
    wrote in 2-3 places in description, that it's better to send mails so I can
    help them. I have even button in my app to send me mail with 1 click, but
    no - still writing stupid comments. Some people are just stupid :)
     
    Dňa piatok, 30. novembra 2012 10:44:51 UTC+1 b0b napísal(-a):

     

    Techni <neotechni@gmail.com> Nov 30 02:05AM -0800  

    Yup, that's exactly what I'm talking about. I had hoped switching to google
    plus accounts would help, but they haven't done that. They just hid the
    names making it even harder to contact them (sometimes you'd get lucky and
    the name/date would coincide with someone in the purchase history) now they
    have no reason at all to behave

     

    "Παύλος-Πέτρος Τουρνάρης" <p.tournaris@gmail.com> Nov 30 12:21PM +0200  

    Sometimes it is vital to answer at comments, because people will check the
    reviews and might see the stupid comments mentioned above and decide not to
    download it, which leads in less downloads and money lose in cases.
     
     

     

    Francisco Marzoa <fmmarzoa@gmail.com> Nov 30 11:29AM +0100  

    Spot on!

     

    "## André ##" <andelphi@gmail.com> Nov 30 09:25AM -0200  

    This is a Good Question!
     

     
    I've put my email address in app description, asking users tell me about
    suggests, problems, bugs, by mail.
     

     
    However they insist in comment.
     

     
    The same is happening with a specific user which receive error sometimes
     

     
    I am almost puting my cellphone number in the description J
     

     
    Regards,
     
    André
     

     

     
    De: android-developers@googlegroups.com
    [mailto:android-developers@googlegroups.com] Em nome de Francisco Marzoa
    Enviada em: sexta-feira, 30 de novembro de 2012 08:30
    Para: android-developers@googlegroups.com
    Assunto: Re: [android-developers] When can every developer reply to reviews?
     

     
    Spot on!
     
    On Nov 30, 2012 7:34 AM, "Techni" <neotechni@gmail.com> wrote:
     
    I am getting some really STUPID comments and it's infuriating that I can do
    nothing about them
     
    --
    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
    <mailto:android-developers%2Bunsubscribe@googlegroups.com>
    For more options, visit this group at
    http://groups.google.com/group/android-developers?hl=en
     
    --
    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

     

    Piren <gpiren@gmail.com> Nov 30 06:31AM -0800  

    my personal favorites are the "i want the app to have feature X, you get 1
    star until you add it"... bastards lol
     
     
     
    On Friday, November 30, 2012 4:58:09 AM UTC-5, qkx wrote:

     

    "Παύλος-Πέτρος Τουρνάρης" <p.tournaris@gmail.com> Nov 30 04:51PM +0200  

    So true. And they stop checking for updates after that.

     

    Mr cool <ponnds11@gmail.com> Nov 30 01:20AM -0800  

    i have one problem with handling the thread in android ,in my class i have
    to create one thread which create some UI after that thread finish i will
    get some value ,here i want to wait my Main Process until the thread
    complete it process but when i put wait() or notify in Main process thread
    does not show the UI in my application
     
    this is sample code
     
    protected void onCreate(Bundle savedInstanceState) {

    downloadThread = new MyThread(this);
    downloadThread.start();

    synchronized(this){
    try {
    this.wait();
    } catch (InterruptedException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    }
    }

    String test=Recognition.gettemp();
    public class MyThread extends Thread {
    private Recognition recognition;

    public MyThread(Recognition recognition) {
    this.recognition = recognition;
    // TODO Auto-generated constructor stub
    }

    @Override
    public void run() {
    synchronized(this)
     
    {

    handler.post(new MyRunnable());

    }

    notifyAll();
    }
    }
    }
    static public class MyRunnable implements Runnable {
    public void run() {
    settemp(template);
    }

    }
    }

    public static String gettemp() {
    return template;
    }
    public static void settemp(String template) {
    Recognition.template = template;
    }

    }
    here i will not use AsynTask because i have some other issue that is reason
    i choose Thread even now the problem is Thread wait do any give the
    suggestion for this

     

    Piren <gpiren@gmail.com> Nov 30 06:40AM -0800  

    whaaa... thats really going against all the basic android fundamentals. ..
     
    first, you never ever stop/hault/wait/busy-wait/do long processes on the UI
    (what you called Main) thread. You do that, the app is stuck and eventually
    errors out to the user (an ANR).
    Second, you shouldn't be creating UI on a background thread (can be done
    under certain strict conditions, but not recommended). Any code that
    'touches' the UI, needs to run on the UI thread.
     
    Look up for tutorials regarding using ASyncTasks... also, i think you
    skipped on reading the Android Fundamentals articles... you should read
    those :)
     
    On Friday, November 30, 2012 4:20:06 AM UTC-5, Mr cool wrote:

     

    Piren <gpiren@gmail.com> Nov 30 06:46AM -0800  

    just noticed that you mentioned AsyncTask and that you wont use it - Well,
    you should. what you're doing is WRONG.
    If you're that inclined on doing things the wrong way, at least remove your
    wait() (there's no need for that) and just post to the UI thread once the
    thread is done.
     
    On Friday, November 30, 2012 9:40:47 AM UTC-5, Piren wrote:

     

    Josh <josh.oleksyn@gmail.com> Nov 30 06:39AM -0800  

    Yeah.
     
    On Thursday, November 29, 2012 11:59:14 AM UTC-5, John Coryat wrote:

     

    Ratheesh Valamchuzhy <androidrcn@gmail.com> Nov 30 05:36PM +0530  

    Dear all,
     
    In My app i need to show the herbew text in text view . it workimg in
    android OS 4 text view but not in the OS 2 textview . is any solution for
    solving this issue.please help....
     
    i have use the vweb view intead of text view but it shows gibberish text in
    LG device please find any solution
    --
    --
    ωιтн яєgαя∂ѕ
    Ratheesh * *...........

     

    Piren <gpiren@gmail.com> Nov 30 06:24AM -0800  

    Android 2.0/2.1 do not include a Hebrew font by default (except for
    localized roms in Israel of course), as far as i remember they only added
    the fonts on 2.2.
    so if you wish to support the earlier versions, you'd have to supply your
    own font with the app and set each and every Textview to use it; my guess
    it will be easier to extend TextView to have that code, then replace all
    textviews in the app to use your custom view instead.
     
    P.S - RTL support in Andriod 2.x is horrible, so you better get someone
    that can also read Hebrew to make sure the text is shown correctly (i.e the
    letters might show up, but in an incorrect order)
     
    On Friday, November 30, 2012 7:06:46 AM UTC-5, Kunju Vava wrote:

     

    Makrand <makrandmane@gmail.com> Nov 30 05:23AM -0800  

    I have some bunch of Android projects that contains some common resources
    in Assets folder, So I have created one folder called "Android Resources"
    in workspace and copied all common resources in that, and I have linked all
    resources to Assets folder like this.
     
    http://www.badlogicgames.com/wordpress/wp-content/uploads/2011/02/eclipse-link.png
     
    Now I am facing problem with accessing that resources.
     
    1) Our normal way of getting files from Asset doesn't work. I understand
    this because its not physically present in folder
     
    AssetManager aManager = context.getAssets("data/Myfile.txt");
    InputStream is = aManager.open(path);
     
    2) Then I have checked my project file I found some entries there.
     
    <linkedResources>
    <link>
    <name>assets/data/Myfile.txt</name>
    <type>1</type>
    <locationURI>PARENT-4-PROJECT_LOC/workspace/Android
    Resources/data/Myfile.txt/<locationURI>
    </link>
     
    Then I have tried to access file by using this path, but not successful.

    String path="PARENT-4-PROJECT_LOC/workspace/Android
    Resources/data/Myfile.txt"
    AssetManager aManager = context.getAssets(path);
    InputStream is = aManager.open(path);

    every-time I am getting null pointer exception, I feel that I am missing
    something but not getting what?

     

    Guilherme Bernardi <gui.bernardi09@gmail.com> Nov 30 04:30AM -0800  

    Hi
     
    I'm using the lastest ActionBar Sherlock version and I'm developing an
    application with layout with ActionBar and 3 Tabs for the navigation.
     
    These tabs will load two attribute classes:
     
    *1st Tab - (Dados): Class Cliente.*
    *2nd and 3rd Tabs - (Entrega, Cobrança): Class ClienteEndereco.*
     
    Could I start the whole save of three tabs by the action of Save on the
    actionBar?
    And Could I fill the 1st Tab for example and when I change to the 2nd Tab,
    the 1st doesn't lose the data?
     
    More information about the structure:
     
    I'd structured the tabs and activities this way:
     
    I have a SherlockFragmentActivity (*CadastroCliente*) where I implemented
    the ActionBar and the Menu with Save, Cancel (You can see at the print
    below).
     
    And I have three SherlockFragment for each Tab:
     
    *CadastroClienteDados*
    *CadastroClienteEntrega*
    *CadastroClienteCobranca*
     
    I've made the layout with 4 xm layout:
     
    One for the SherlockFragmentActivity with a FrameLayout inside that will be
    inflate.
    One for each SherlockFragment with components(EditText, CheckBox...)
     
    I'm working with a Persistence Class with a overridable method grava(),
    this method will be override on attribute classes to persist the objects in
    a SQLite databases.
     
    <https://lh5.googleusercontent.com/-FdScOx8GzfY/ULieweRT2VI/AAAAAAAAAiw/Du9SmKV7RE4/s1600/tabDados.png>
     
    <https://lh5.googleusercontent.com/-LUvbCEaMVCE/ULiezrViBMI/AAAAAAAAAi4/0Xc-Xv9GkYA/s1600/tabEntrega.png>
     
    <https://lh3.googleusercontent.com/-akSpw289j1U/ULie3q_o9oI/AAAAAAAAAjA/YmImPD-HmZM/s1600/tabCobranca.png>
     
    Thanks in advance.

     

    "Παύλος-Πέτρος Τουρνάρης" <p.tournaris@gmail.com> Nov 30 02:42PM +0200  

    As for the state of the tabs i think you should use the saveInstanceState
    method or something like this. It will most likely retain the data on it
    while you are on the TabActivity.
     
    Also make your variables public so that when you click the save button you
    can access them and save them on the way you would like to save them.
     
     
    On Fri, Nov 30, 2012 at 2:30 PM, Guilherme Bernardi <

     

    brandall <benrandall76@gmail.com> Nov 30 03:42AM -0800  

    This question is a long shot, as it's a peculiar problem....
     
    I have a foreground service which controls my application's text to speech
    and recognition functionality. My implementation works correctly for
    thousands of users, but a handful a Galaxy SIII users are reporting a
    problem whereby onutterancecompletedlistener or UtteranceProgressListener
    is not called, which is the trigger for the recognition to start, making
    the application useless.
     
    The application works fine from a launcher shortcut/shake/widget, until the
    user opens another application!? As soon as they open another application
    and attempt to start my app again, the listener is not called. The service
    needs to be restarted in order for it to function again.
     
    I have tried absolutely everything and read every post out there, with
    various suggestions of where to put the listener (onInit). I've tried
    static implementations, randomly generating the utteranceID, applying
    individual listeners to each possible call to the speech engine (checking
    all possibilities of null objects) but nothing fixes it - It speaks
    successfully and then nothing....
     
    So, without me posting my thousands of lines of code, could anyone suggest
    an Android fundamental reason why the listener would fail to be called
    after an application is opened!?! I'm totally baffled as to how this could
    even be a possibility or interfering with my app?
     
    Suggestions welcome! Thank you.

     

    John A <jmoon5ftm@gmail.com> Nov 30 01:46AM -0800  

    Activity A calls startActivity(intent4activityB); in its
    OnLongClickListener.
     
    Activity B contains a GestureOverlayView. I would like to be able to
    detect a gesture starting as soon as Activity B starts, but the
    GestureOverlayView does not begin tracking until the user lifts her finger
    and then touches the activity again.
     
    Is there any way I can force the GestureOverlayView to start a new gesture
    immediately?

     

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 - 9 Messages in 7 Topics

Comments: (0)

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

    Techni <neotechni@gmail.com> Nov 29 10:31PM -0800  

    I am getting some really STUPID comments and it's infuriating that I can do
    nothing about them

     

    Zsolt Vasvari <zvasvari@gmail.com> Nov 29 11:10PM -0800  

    Dec 12, 6:00pm.
     
    On Friday, November 30, 2012 2:31:00 PM UTC+8, Techni wrote:

     

    Ananda Krishna <anandakrishna15.1989@gmail.com> Nov 29 09:20PM -0800  

    Hi,
    Can anyone tell how to develop a smart tv remote app using android i.e
    topics that we need to know and how to begin..
    Any help in this regard is appriciated..
    Regards,
    AnandaKrishna S

     

    Zsolt Vasvari <zvasvari@gmail.com> Nov 29 11:10PM -0800  

    Do you have Google access in your country?
     
    On Friday, November 30, 2012 1:20:01 PM UTC+8, Ananda Krishna wrote:

     

    sree android <android.sreenivas@gmail.com> Nov 30 09:34AM +0530  

    Thank you bro.

     

    Robert Greenwalt <rgreenwalt@google.com> Nov 29 05:09PM -0800  

    It an interesting idea.
     
    Note that toggling APM will consume more power than maintaining a
    connection for some period. If APM is on for long enough you can make this
    a positive change. If you have no coverage, it's definitely a positive
    change. Of course your texting, chatting, location services, basically
    everything you have a smartphone for will be broken during that time - you
    may as well have the phone off. Even phone calls will fail during that
    time. Turning APM off may also be slow. In some situations it may take
    30s or longer to get a data connection, and then apps need to reconnect and
    check for updates.
     
    I'll enter a feature request.
     
     

     

    Johnabre <johnabre@gu3.co.jp> Nov 29 04:06PM -0800  

    Hmm…I've still got a long way to go in narrowing this down to a simple test
    case, but I've gotten reproduction of the above SIGSEGV down to 2 HTML
    pages loaded from a plain webview app. The webview simply starts up and
    loads the first page:
     
    http://static0.kl-uswest.ec2.gumi.sg/static/android4crash/crash.html
     
    The pages link to each other, and don't necessarily crash on the first
    view, but eventually they crash 100% on the Android 4.1.1 emulator and my
    Galaxy Nexus (4.1.1). Note that the thread title is wrong - this
    definately isn't S3 only.
     
    The interesting thing is,
    - Using the webview inside my real app, loading 1 page (crash.html or any
    heavy HTML5 page) repeatedly is enough to cause the SIGSEGV.
    - Using this plain webview app for testing, the two pages need each other
    to crash - just loading 1 page repeatedly will not die.
    - Loading the pages in the Android 4.1.1 web browser, even the 2 pages
    aren't enough - it will die eventually but it takes many pages.
     
    In terms of error location, there are different stack traces on the
    crashes, some related to stylesheets, others related to destructors at
    HTMLImageElement. Android 2.x, iOS, any other browser is rock solid.
     
    Javascript changes the DOM, and that appears to be enough to cause the
    crash here…but why?
    At first glance this strikes me as a garbage collection problem - my app
    would garbage collect earlier than the plain webview app because it has
    used more memory in other places. I'm not getting memory error messages,
    however. I'll continue working to narrow this down, but anyone with any
    ideas as to how to proceed or what might be the issue truly has my eternal
    undying affection.
     
    Test App Code:
    http://static0.kl-uswest.ec2.gumi.sg/static/android4crash/CrashApp.zip
    Test App APK:
    http://static0.kl-uswest.ec2.gumi.sg/static/android4crash/CrashApp.apk
    All HTML resources:
    http://static0.kl-uswest.ec2.gumi.sg/static/android4crash/CrashHTMLPagFull.zip
     
    Test App's startup code:
     
    public class MainActivity extends Activity {

    private WebView webView;

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

    webView = (WebView) findViewById(R.id.webView1);
    webView.getSettings().setJavaScriptEnabled(true);

    webView.setWebViewClient(new WebViewClient());
    webView.setWebChromeClient(new WebChromeClient());
    webView.loadUrl("http://static0.kl-uswest.ec2.gumi.sg/static/android4crash/crash.html");
    }

    }
     
     
    On Wednesday, October 17, 2012 8:53:58 PM UTC+8, Johnabre wrote:

     

    Francisco Marzoa <fmmarzoa@gmail.com> Nov 30 12:52AM +0100  

    Same problem here.
     
    The only workaround I found was registering a credit card, so you are
    trusted that way without verifying your phone.
     
    Best regards,

     

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