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

Comments: (0)

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

    Josh Steiner <vitriolix@gmail.com> May 31 11:12AM -0700  

    I'm using the new official Android support lib Drawer library in a project:
     
    http://developer.android.com/training/implementing-navigation/nav-drawer.html
     
    I'm getting a sporadic crash when opening or closing the drawer. The crash
    is happening in the frameworks below my app and I can't really see any
    information about what might be causing it.
     
    I started with tobykurien's project here:
     
    https://github.com/tobykurien/SherlockNavigationDrawer/
     
    Here's my stacktrace:
     
    FATAL EXCEPTION: main java.lang.NullPointerException
    at android.support.v4.widget.ViewDragHelper.continueSettling(ViewDragHelper.java:719)
    at android.support.v4.widget.DrawerLayout.computeScroll(DrawerLayout.java:729)
    at android.view.View.getDisplayList(View.java:12706)
    at android.view.View.getDisplayList(View.java:12762)
    at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3201)
    at android.view.View.getDisplayList(View.java:12654)
    at android.view.View.getDisplayList(View.java:12762)
    at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3201)
    at android.view.View.getDisplayList(View.java:12654)
    at android.view.View.getDisplayList(View.java:12762)
    at android.view.View.draw(View.java:13491)
    at android.view.ViewGroup.drawChild(ViewGroup.java:3219)
    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3089)
    at android.view.View.getDisplayList(View.java:12716)
    at android.view.View.getDisplayList(View.java:12762)
    at android.view.View.draw(View.java:13491)
    at android.view.ViewGroup.drawChild(ViewGroup.java:3219)
    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3089)
    at android.view.View.draw(View.java:13770)
    at android.widget.FrameLayout.draw(FrameLayout.java:467)
    at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:2396)
    at android.view.View.getDisplayList(View.java:12718)
    at android.view.View.getDisplayList(View.java:12762)
    at android.view.HardwareRenderer$GlRenderer.draw(HardwareRenderer.java:1144)
    at android.view.ViewRootImpl.draw(ViewRootImpl.java:2301)
    at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2173)
    at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1981)
    at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1131)
    at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4611)
    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:725)
    at android.view.Choreographer.doCallbacks(Choreographer.java:555)
    at android.view.Choreographer.doFrame(Choreographer.java:525)
    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711)
    at android.os.Handler.handleCallback(Handler.java:615)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:4898)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1008)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:775)
    at dalvik.system.NativeStart.main(Native Method)

     

    powder366 <jonas@semlasoft.com> May 31 09:37AM -0700  

    Is there another way to solve this requirement (other
    than ProximityAlert())?
     
    On Sunday, March 21, 2010 12:04:45 AM UTC+1, Mark Murphy wrote:

     

    psyco <abdallah.medamine@gmail.com> May 31 09:00AM -0700  

    Hi all,
     
    i installed ADT Bundle for windows7 (64), and am working under a proxy in
    my company
     
    Before i close (for the first time) the ADT every thing works fine but if i
    restart it, a dialog message is telling me that i need to update my ADT to
    version 22
     
    so, i put my proxy settings in "window / preferences / general / network..."
     
    however, no updates were found
     
    can any one helps me
    it's urgent
    thanks a lot

     

    Sgh <ram.jane77@gmail.com> May 31 05:59PM +0530  

    I
     
    ---replied message---
    from: Kristopher Micinski <krismicinski@gmail.com>
    date: 2013-05-28 07:13:36.0
    to: Android Developers <android-developers@googlegroups.com>
     
    >> and I'm just being naïve about the politics of handset manufacturing
    >> and distribution.)
     
    > Did you mean "not feasible"?  Or you meant "maybe it isn't"?
     
    I meant to say not feasible, apologies.
     
    The point is that the telephony market is mostly dominated by huge
    conglomerates (at least in the states, where I'm from).  This isn't
    really a point I want to argue about (I'm all for open source
    firmware, but just being realistic as to the current market
    situation..), but if you want to get Android in the hands of a bunch
    of people via phones they probably aren't going to let you run your
    own open source firmware at the current time.
     
    > calls via wifi if it's available and only use cell when there's no wifi.
    > This can save subscribers lots of money as they bypass the need
    > for cell access.
     
    Sure, tons of services offer this (even Skype, which I believe was the
    first to offer this).  At least my experience in the states is that
    broadband internet access still isn't widely available.  Someday this
    may well be where the market goes (microtransactions with lowest
    bidder costs for cell calls, etc...) but that's just not where it's at
    now.
     
    > I was beginning to think that the android community was suffering
    > from the plague of self-censorship.
    > Thanks for taking the time to reply.
     
    AOSP is a pretty good open source platform, but not everything is
    feasible to open source from a business perspective (patents, closed
    code, etc...).  It would be nice to move in the direction of more
    open, but that takes time (developers, hardware hackers, etc..) and
    money.
     
    Kris
     
    --
    --
    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
    ---
    You received this message because you are subscribed to the Google Groups "Android Developers" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.

     

    Taylor Ringo <taylorringo@gmail.com> May 31 02:40AM -0700  

    Hey everyone I finally have a device to test on and so I was wondering what JAVA frame work should I use for 2D, 3D, and HTML5 Game development?

     

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

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

Comments: (0)

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

    android devloper <android.devloper45@gmail.com> May 30 11:24PM -0700  

    Hello all,
    i am getting the below error when signing the apk from command prompt
    using the ant builder,if anybody has idea please help me.
     
    D:\Android-Sdks\tools\ant\build.xml:1132: The following error occurred
    while executing this line:
    D:\Android-Sdks\tools\ant\build.xml:1144: Value for 'keystore' is not
    valid. It must resolve to a single path
     
     
    Thanks in advance.

     

    Yamusani Vinay <yamusanivinay@gmail.com> May 30 10:23PM -0700  

    How to apply bass boost to media player..

     

    Harish <hkachoria@gmail.com> May 30 08:21PM -0700  

    Dear friends,
     
    With gr8 help of this group, we developed one free app to view all events
    like birthdays, anniversary, reminders
    along with option of sending sms,
    I look forward your suggestions on this app. This is completely free
    without any ads and even without internet permission so don't worry abt any
    data theft or other misuse.
     
    https://play.google.com/store/apps/details?id=com.mexel.aapi
     
    and sorry abt posting a promotional post.

     

    Yamusani Vinay <yamusanivinay@gmail.com> May 30 07:43PM -0700  

    How to apply bass boost effect to media player

     

    Michael Asimos <michael.asimos@gmail.com> May 30 04:46PM -0700  

    Thanks!
    On Monday, May 27, 2013 10:23:05 AM UTC-7, Etienne wrote:

     

    Guillermo Andrades <lokoyaw@gmail.com> May 30 05:34AM -0700  

    Hi,
     
    I'm in the middle of the integration of GPGS on my game and I'm facing a
    problem.
     
    I have two scoreboards registered in the dashboard and I've sent some
    scores for one. I'm trying to get the scores for the current player in all
    the scoreboards.
     
    When calling the method loadPlayerCenteredScores<http://developer.android.com/reference/com/google/android/gms/games/GamesClient.html#loadPlayerCenteredScores(com.google.android.gms.games.leaderboard.OnLeaderboardScoresLoadedListener,
    java.lang.String, int, int, int)> it should give me the Leaderboard object
    (in the LeaderboardBuffer) and one LeaderboardScore object (in the
    LeaderboardScoreBuffer) but the LeaderboardScoreBuffer is empty instead.
    Code:
     
    gamesHelper.getGamesClient().loadPlayerCenteredScores(new
    OnLeaderboardScoresLoadedListener() {
    @Override
    public void onLeaderboardScoresLoaded(int arg0, LeaderboardBuffer arg1,
    LeaderboardScoreBuffer arg2) {
    System.out.println("Count1: " + arg1.getCount());
    System.out.println("Count2: " + arg2.getCount());
    for(LeaderboardScore jarl : arg2){
    System.out.println("This is never shown");
    }
    }
    }, localScore.id, LeaderboardVariant.TIME_SPAN_ALL_TIME,
    LeaderboardVariant.COLLECTION_PUBLIC, 1);
     
     
    The result:
     
    Count1: 1
    Count2: 0
     
     
    If I try to retrieve the data using the variants (getVariants()<http://developer.android.com/reference/com/google/android/gms/games/leaderboard/Leaderboard.html#getVariants()>)
    it works OK and I can retrieve the score for the current player. Code:
     
    Leaderboard serverScore = ...
    ArrayList<LeaderboardVariant> scoresVariant = serverScore.getVariants();
    for(LeaderboardVariant scoreVariant : scoresVariant){
    if(scoreVariant.getCollection() == LeaderboardVariant.COLLECTION_PUBLIC &&
    scoreVariant.getTimeSpan() == LeaderboardVariant.TIME_SPAN_ALL_TIME){
    System.out.println("Score: " + scoreVariant.getRawPlayerScore());
    }
    }
     
     
    Is there anything that I'm doing wrong?
     
    Greetings

     

    Guillermo Andrades <lokoyaw@gmail.com> May 30 02:53PM -0700  

    So how can I get the info in a reliable way?
     
    On Thursday, May 30, 2013 2:55:28 PM UTC+2, Paul-Peter Tournaris wrote:

     

    "Παύλος-Πέτρος Τουρνάρης" <p.tournaris@gmail.com> May 31 01:26AM +0300  

    Havent tried my way with GPGS yet, i will do it in Summer after exams so i
    am sorry that i can't answer you!
     
     
     
     
    --
    *Παύλος-Πέτρος Τουρνάρης*
    *Android & Software Developer*
     
    - *http://goo.gl/TsJ8u*
    - *http://acschedule.org*

     

    bjv <bjvetter@gmail.com> May 30 01:55PM -0700  

    Ok, it was a bad subject. I just needed a way to provide a Bitmap drawable
    in my App's memory (not on sdcard) to the SearchWidget suggestion handling
    code. Here's the answer for anyone who needs to provide their own image
    that isn't stored somewhere as a file and easily accessible via one of the
    other content providers that are already there.
     
    I created a ContentProvider in my app. The key methods look like the
    following:
     
    @Override
     
    public ParcelFileDescriptor openFile(Uri uri, String mode)
     
    throws FileNotFoundException {
     
    ParcelFileDescriptor[] pipe=null;
     
     
    try {
     
    pipe=ParcelFileDescriptor.createPipe();
     
    String bmapId = uri.getLastPathSegment();
     
    IconInfo ai = getIconInfo.lookup(Integer.parseInt(bmapId));
     
    if (ai == null)
     
    throw new FileNotFoundException("Bitmap "+bmapId+" not found");
     
    Bitmap bitmap = ((BitmapDrawable)ai.icon).getBitmap();
     
    if (bitmap == null)
     
    throw new FileNotFoundException("Drawable is not Bitmap");
     
    // The following task/thread is needed if the bmap is larger than 64kb
     
    new BitmapCopyTask(bitmap,
     
    new AutoCloseOutputStream(pipe[1])).execute(null,null
    ,null);
     
    }
     
    catch (IOException e) {
     
    MyLog.d(getClass().getSimpleName(), "Exception opening pipe: %s",
    e.getMessage());
     
    throw new FileNotFoundException("Could not open pipe for: "
     
    + uri.toString());
     
    }
     
     
    return(pipe[0]);
     
    }
     
     
    class BitmapCopyTask extends AsyncTask<Void,Void,Void> {
     
    OutputStream out;
     
    Bitmap bmap;
     
    BitmapCopyThread(Bitmap bmap, OutputStream out) {
     
    this.bmap = bmap;
     
    this.out = out;
     
    }
     
    @Override
     
    protected Void doInBackground(Void... arg0) {
     
    bmap.compress(Bitmap.CompressFormat.PNG, 100, out);
     
    return null;
     
    }
     
    }
     
    I also put the following provider definition in my manifest file:
     
    <provider android:name=".IconProvider"
     
    android:exported="false"
     
    android:authorities="org.example.provider.iconlist.icon" />

     

    Lew <lewbloch@gmail.com> May 30 02:55PM -0700  

    bjv wrote:
     
     
    > public ParcelFileDescriptor openFile(Uri uri, String mode)
     
    > throws FileNotFoundException {
     
    > ParcelFileDescriptor[] pipe=null;
     
    No need for this assignment as you throw away the value immediately
    without using it.
     
     
     
    > IconInfo ai = getIconInfo.lookup(Integer.parseInt(bmapId));
     
    > if (ai == null)
     
    > throw new FileNotFoundException("Bitmap "+bmapId+" not found");
     
    Don't omit the curly braces!

     
     
    > new BitmapCopyTask(bitmap,
     
    > new AutoCloseOutputStream(pipe[1])).execute(null,
    > null,null);
     
    Do not indent your posted code with TAB characters.

     
    > e.getMessage());
     
    > throw new FileNotFoundException("Could not open pipe for: "
     
    > + uri.toString());
     
    You should include the original exception as a cause of your wrapped
    exception, which normally is already
    a 'FileNotFoundException', so one wonders why you'd wrap a FNFE inside an
    FNFE.

     
     
    > }
     
    > class BitmapCopyTask extends AsyncTask<Void,Void,Void> {
     
    > OutputStream out;
     
    Consider making these members 'final'.

     
     
    > @Override
     
    > protected Void doInBackground(Void... arg0) {
     
    > bmap.compress(Bitmap.CompressFormat.PNG, 100, out);
     
    You didn't check the arguments for 'null'.

     
     
    --
    Lew

     

    Miha <miha.valencic@gmail.com> May 30 05:47AM -0700  

    Hi everybody!
     
    On Wednesday, May 29, 2013 9:35:49 PM UTC+2, Miha wrote:
     
    > I'll post the whole mechanics tomorrow.
     
    So, to give some context: I'm using a ViewPager with
    FragmentStatePageAdapter, where I have three fragments. Two of those
    fragments (first and third), also nest another fragments inside. The first
    one has a two-pane layout, and the third one is sort of a file-browser
    where three types of fragments change (computer, shares, files).
     
    We know that when we derive our activity, the BACK key is handled for us
    automatically by the FragmentActivity base class. This is of course not the
    case for nested fragments, where I need to "clear the backstack"
    appropriately. So for that, I've defined and implemented a simple interface:
     
    public interface BackButtonPressListener {
    boolean onBackButtonPressed();
    }
     
    I use this interface from the main Activity, which implements this
    interface. So when a Back key is pressed, I get the current fragmet from
    FragmentStatePageAdapter, and call onBackButtonPressed on that fragment. If
    this fragment is able to "pop" the back-stack, I leave it at that. If not,
    I let the base activity handle the key press.
     
    I had the problem with FragmentStatePageAdapter, more so with its
    getItem(int) method. I was under the impression that this method would get
    the current fragment, but it is actually intended to **create** fragments;
    FragmentStatePageAdapter internally caches those instances for viewPager,
    so I went about implementing my own cache for that as well (since
    FragmentStatePageAdapter's cache is private). I overrode the method
    instantiateItem with such implementation:
     
    public Object instantiateItem(ViewGroup container, int position) {
    Object item = super.instantiateItem(container, position);
    _items.put(position, item);
    return item;
    }
     
    where _items is a private member of type SparseArray<Fragment>.
     
    I added a simple method to get the reference to the current fragment being
    shown inside a ViewPager to my page adapter:
    public Fragment getCreatedItem(int position)
    {
    Object item = _items.get(position, null);
    if (item != null)
    {
    return (Fragment) item;
    }
    Log.v(TAG, _items.toString());
    throw new RuntimeException("No matching item in an inner array or item
    is null..."); // shouldn't happen
    }
     
    The "onBackButtonPressed" in the "main" (top-level) fragments handler
    implementation is very simple as well:
    @Override
    public boolean onBackButtonPressed() {
    try {
    return FragmentManager fragmentManager =
    getChildFragmentManager().popBackStackImmediate();
    } catch (Exception x) {
    Log.e(TAG, "Could not pop back stack!", x);
    }
    return false;
    }
     
    All of my fragments implement onSaveInstanceState to store state and so
    far, everything works as expected (screen orientation changes, resuming an
    app, back presses).
     
    I hope this helps someone as well, given some misleading information out
    there.
     
    Regards,
    Miha.

     

    Fran <fmmarzoa@gmail.com> May 30 03:42AM -0700  

    Hi!
     
    I am trying to use the Google Plus sign in/out buttons in my own "Settings"
    activity within my app, but I have found no way to do it. I tried cutting
    and pasting the button from the example app layout to my own activity
    layout, but it raises the following error:
     
    com.google.android.gms.common.SignInButton failed to instantiate.
     
    Then, I tried to import such thing from my Settings Activity class, right
    like:
     
    import com.google.android.gms.common.SignInButton;
     
    and even:
     
    com.google.android.gms.common.*;
     
    also, but the same *failed to instantiate* error persists after that.
     
    So, any ideas?
     
    I know I could simply duplicate all these resources in my own app, but as
    far as the example app does not do that, there should be a better way...
     
    Bests,

     

    Piren <gpiren@gmail.com> May 30 02:10AM -0700  

    3.0. it in the release notes
     
    On Wednesday, May 29, 2013 9:05:31 PM UTC+3, RichardC 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
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

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

Comments: (0)

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

    Miha Valencic <miha.valencic@gmail.com> May 29 09:26AM +0200  

    Hi!
     
    On Tue, May 28, 2013 at 11:55 PM, Streets Of Boston
     
    > In short: The backstack doesn't work for 'inner' fragments, it only works
    > for Activity (i.e. 'main') fragments, since the back stack seems to be tied
    > to an Activity only, not to its Fragments.
     
    Thanks! I actually found this SO post, but since it didn't use the
    getChildFragmentManager(), I was assuming that was not the case any
    more...
     
    Nontheless, this seems like a bug to me, since the backstack is
    visibly populated (seen by inspecting fragmentManager.dump()), just
    can't pop it. It looks to me that I need to work around it then.
     
    In this case, it probably does not make sense to call addToBackStack,
    and just handle the "back stack" myself. Not a big deal, though I
    wonder what happens when i "replace" fragments within fragment
    transaction. Will they be discarded properly?
     
    I'll try some approaches and will post the solution.
     
    Regards,
    Miha.

     

    Miha Valencic <miha.valencic@gmail.com> May 29 09:35PM +0200  

    Hi guys and gals!
     
    > Thanks! I actually found this SO post, but since it didn't use the
    > getChildFragmentManager(), I was assuming that was not the case any
    > more...
     
    ... and that is actually the case. My problem is (was) actually with
    Android API documentation or wording. The root of the problem lies in
    the implementation of FragmentStatePagerAdapter, especially in the
    getItem(int) method, which is, even though the name does not reflect
    it, meant to **create** fragments for the first time they are needed
    by the viewpager (or actually by the abstract class
    FragmentStatePageAdapter). I read the source code of
    FragmentStagePageAdapter, PageAdapter and ViewPager to understand how
    they work together, and finally pieced it together. As I'm currently
    running out of time, I'll provide more elaborate answer tomorrow, but
    for now, let me just say:
     
    - child fragment manager backstack works as expected
    - in your FragmentStatePageAdapter implementation, you need to
    override instantiateItem method, and "cache" objects retrieved by
    calls to getItem.
    - in your FragmentStatePageAdapter implementation, add a method to
    retrieve the fragment by index
    - when you want to call pageAdapter.getItem(int), you should really
    call your "new" method from previous line to get a reference to a
    fragment, and then on this fragment, you can call
    popBackStack[Immediate]()
     
    I'll post the whole mechanics tomorrow.
     
    Regards,
    Miha.

     

    mbaroukh <mike.baroukh@gmail.com> May 29 09:29AM -0700  

    Hi.
     
    I try to program an simple alarm that call a broadcastreceiver at a
    determined time.
    All works nice if my application is always running.
    But if I set the alarm and kill the application, the BroadcastReceiver is
    never called.
     
    All I read seems to say that it should work.
    Do I misunderstand ?
     
    Thanks in advance for any advice.
     
    My (common) code to start set the alarm :
     
    AlarmManager am = (AlarmManager)getSystemService(Context.ALARM_SERVICE);
    > Intent i = new Intent(this, TimerReceiver.class);
    > PendingIntent pi = PendingIntent.getBroadcast(this, 0, i, 0);
    > am.set(AlarmManager.RTC_WAKEUP, , pi);
     
     
    And the receiver is defined in the manifest :
     
    <receiver android:name="com.timer.TimerReceiver"
    > android:exported="true"></receiver>
     
     
    - I tried with and without android:exported="true". Doesn't change
    anything. As I understand, I did not need it.
    - the classname of the receiver is correct.
     
     
    Mike

     

    RichardC <richard.critten@googlemail.com> May 29 11:05AM -0700  

    If you kill your application with the standard build-in Task-Killer and you
    are on Android 4.1+ (I think that's the version might be 3+) then you
    Application will not be run again until manually started by an end-user.
     
    If you exit normally (press back) then your alarms should work as expected.
     
    On Wednesday, May 29, 2013 5:29:23 PM UTC+1, mbaroukh wrote:

     

    mbaroukh <mike.baroukh@gmail.com> May 29 11:22AM -0700  

    You are right !
    Thanks a lot.
     
    I killed the app with "kill <pid>" and this time, the alarm started at
    expected time.
    I didn't knew this feature but it makes sense.
     
    thanks again.
     
    Mike
     
    Le mercredi 29 mai 2013 20:05:31 UTC+2, RichardC a écrit :

     

    Salih Selametoglu <barboonia35@gmail.com> May 29 05:49PM +0300  

    Hello friends,
     
    Some mp3 downloader apps are remove but some mp3 downloader apps are not
    remove. Why? I installed mp3 downloader and then i wanted writing comment
    but app is remove. but i can find alot of apps the same. Why are some apps
    remove? why some not?

     

    Tiago Braga <tbragamachado@gmail.com> May 29 10:51AM -0300  

    Hello Romain!
     
    I put a background image in view, so I can not draw with the background
    color.
     
     
     
    --
    Atenciosamente,
    Tiago Braga Machado

     

    Red Planet <dmitrievmaxim1990@gmail.com> May 29 06:24AM -0700  

    I have got a database of countries and international organizations. Each
    country can be a member of a number of the organizations and each
    organization has at least one member (in other words , many-to-many). I use
    the well-known LoaderManager<http://developer.android.com/reference/android/app/LoaderManager.html>framework for displaying. But after I delete an item (some items), all the
    fragments show the deleted items. I've tried to use this solution<http://stackoverflow.com/questions/7379165/update-data-in-listfragment-as-part-of-viewpager>from the `onContextItemSelected` of `MyFragment extends
    SherlockListFragment` class but nothing has happened.
     
    @Override
    public boolean onContextItemSelected(MenuItem item) {
    AdapterView.AdapterContextMenuInfo info = (AdapterContextMenuInfo)
    item.getMenuInfo();
    switch (item.getItemId()) {
    case R.id.countryMenu_delete:
    long id = info.id;
    // deleting
    Bundle loaderExtras = createLoaderExtras();
    getLoaderManager().restartLoader(LOADER_ID, loaderExtras,
    this); // Restarting for the current fragment
    return true;
     
    default:
    return super.onContextItemSelected(item);
    }
    }
     
    **The result.**
     
    I don't have any errors in log but sometimes the list view isn't refreshed.
     
    The application is on GitHub <https://github.com/Red-Planet/Sandbox_Android>,
    ActionBarSherlock <https://github.com/Red-Planet/ActionBarSherlock> is used
    in it.

     

    Yamusani Vinay <yamusanivinay@gmail.com> May 29 04:24AM -0700  

    I tries to apply reverb effect on media player but i'm getting MediaPlayer
    error(-22,0)..
     
    code:
    mMediaPlayer.setDataSource(fd);
    mReverb = new PresetReverb(0, mMediaPlayer
    .getAudioSessionId());
    mReverb.setPreset(PresetReverb.PRESET_LARGEROOM);
    mReverb.setEnabled(true);
    mMediaPlayer.attachAuxEffect(mReverb.getId());
    mMediaPlayer.setAuxEffectSendLevel(1.0f);
    mMediaPlayer.prepare();
    mMediaPlayer.start();
     
    added permisions in manifest file

     

    Piren <gpiren@gmail.com> May 29 12:13AM -0700  

    It's not a question of "must" ... it's a question of choice and
    availability. Some events can be registered in the manifest can also be
    registered in code (but not all events that can be registered in code can
    be registered in the manifest) and have the added benefit of being sent to
    your app even if it wasn't started (as long as it was started at least once
    and wasn't force closed since the last restart)
     
    Regarding the list, it doesn't exist... google suck in that aspect. I'm not
    even sure there's even a list of all existing events (both code and
    manifest based).
     
    On Tuesday, May 28, 2013 10:59:59 PM UTC+3, gonzobrains 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
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

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

Comments: (0)

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

    Mulsaniya Bhadresh <bhadresh.haker@gmail.com> May 29 12:17PM +0530  

    you dont have to add db file manually but you have to wright code for that
    so that when your apk install in moble phone , it will automatically
    creates db file in phone.
     
     
    On Mon, May 27, 2013 at 11:14 AM, Priyanka Rana

     

    Tiago Braga <tbragamachado@gmail.com> May 29 12:43AM -0300  

    Hello!
     
    I am starting the studies, and decide to make a little program to draw on a
    white canvas.
     
    I rode one example of android called "FingerPaint" and I noticed something:
    When I select the option "Erase", it uses the following method to clean up
    what is on the screen:
     
    mPaint.setXfermode (new PorterDuffXfermode (PorterDuff.Mode.CLEAR));
     
    It cleans up really, but while you're dragging the screen to clear, is
    appearing black lines.
     
    How do I solve this?
     
    --
    Atenciosamente,
    Tiago Braga Machado

     

    Romain Guy <romainguy@android.com> May 28 09:53PM -0700  

    Erase is working as intended here. You are erasing the window's Canvas,
    which is shared by all the Views. If you want to erase to transparent you
    should make that View use a drawing cache (setDrawingCacheEnabled()) or a
    layer (setLayerType()) but this will come at a cost performance-wise.
    Another solution is to simply draw with your background color.
     
     
     
    --
    Romain Guy
    Android framework engineer
    romainguy@android.com

     

    Larry Meadors <larry.meadors@gmail.com> May 28 08:55PM -0600  

    I'm trying to convert a project to use gradle (from maven), and seem
    to have hit a wall.
     
    * What went wrong:
    Execution failed for task ':packageDebug'.
    > Duplicate files at the same path inside the APK: about.html
     
    I'm trying to include jetty (long story), and there are two jar files
    that include a file named "about.html", I really don't want or need
    either of them, but can't seem to get past this.
     
    Any suggestions?
     
    Larry

     

    Larry Meadors <larry.meadors@gmail.com> May 28 08:10PM -0600  

    Is it possible to create a DRM Agent as an application component, or
    can they only be created as part of the OS distribution by device
    manufacturers?
     
    If they *can* be application components, are there any guides or hints
    on how to create them?
     
    Larry

     

    Peter Teoh <htmldeveloper@gmail.com> May 29 07:22AM +0800  

    > screen rotates - something wrong happens. Looks like WebView relayouts and
    > set his size using new orientation, but inline player not (I mean size of
    > player not changes). How can I set size of inline player ? Is it possible ?
     
    according to:
     
    http://stackoverflow.com/questions/13062858/how-to-set-webview-inside-a-linearlayout
     
    it seemed that your WebView should be "fill_parent" and the layout should
    be "match_parent" instead?
     
     
     
    --
    Regards,
    Peter Teoh

     

    Sean Barbeau <sjbarbeau@gmail.com> May 28 02:19PM -0700  

    Hi Android team,
    Just in case this isn't a known issue (I haven't seen any other posts about
    it):
     
    Most of the links to the additional documentation on the Google Maps
    Android API v2 landing page are broken:
    http://developer.android.com/google/play-services/maps.html
     
    This includes most of the top links returned when Googling for "google maps
    api v2 android", including:
    https://developers.google.com/maps/documentation/android/
     
    I actually had to do quite a bit of hunting to find the new landing page
    because of this.
     
    It looks like there was a transition from developers.google.com, and
    links/content for everything except the API reference didn't make the trip.
     
    Thanks,
    Sean Barbeau

     

    Lew <lewbloch@gmail.com> May 28 02:52PM -0700  

    Sean Barbeau wrote:
     
    > Most of the links to the additional documentation on the Google Maps
    > Android API v2 landing page are broken:
    > http://developer.android.com/google/play-services/maps.html
     
    I followed the links from that page just now without trouble. What do you
    mean by "broken", exactly?

     
    > This includes most of the top links returned when Googling for "google
    > maps api v2 android", including:
    > https://developers.google.com/maps/documentation/android/
     
    Are you saying that link is "broken"? What exactly do you mean by that? I
    don't see any issues.

     
    > I actually had to do quite a bit of hunting to find the new landing page
    > because of this.
     
    What is the "new" landing page?

     
    > It looks like there was a transition from developers.google.com, and
    > links/content for everything except the API reference didn't make the trip.
     
    What *precisely* are you seeing to make you say that?
     
    I see no problems.
     
    --
    Lew

     

    Sean Barbeau <sjbarbeau@gmail.com> May 28 06:44PM -0400  

    Looks like there was an issue with my local cache in Chrome.
     
    I was getting the following message in Chrome:
     
    "This webpage is not available
     
    The webpage at *https://developers.google.com/maps/documentation/android/*
    might
    be temporarily down or it may have moved permanently to a new web address.
     
    Error 15 (net::ERR_SOCKET_NOT_CONNECTED): Unknown error."
    I just cleared the Chrome cache via "Menu->Tools->Clear browser data..."
    and checking the "Empty the cache" checkbox and then restarted Chrome, and
    now it seems to be working fine.
     
    Sorry for the false alarm if this was just me, but if anyone else is having
    the same issue the above steps should fix it.
     
    Sean
     

     

    Josh Burton <athor3d@gmail.com> May 28 02:04PM -0700  

    Well I don't have a fix yet, but I have just run into the same problem!
     
    On Tuesday, 28 May 2013 07:23:19 UTC+12, Miha wrote:

     

    Streets Of Boston <flyingdutchie@gmail.com> May 28 02:55PM -0700  

    Did a google search and wound up on stackoverflow, where Dianne Hackborn
    answered this question:
    http://stackoverflow.com/questions/8772921/how-to-pop-back-stack-for-activity-with-multiple-fragments
     
    In short: The backstack doesn't work for 'inner' fragments, it only works
    for Activity (i.e. 'main') fragments, since the back stack seems to be tied
    to an Activity only, not to its Fragments.
     
    On Saturday, May 25, 2013 9:08:13 AM UTC-4, Miha wrote:

     

    gonzobrains <gonzobrains@gmail.com> May 28 12:59PM -0700  

    Why must some broadcasts be registered in code while others must be
    registered in a manifest file? Is there somewhere that lists registration
    requirements for every broadcast?
     
    On Thursday, October 28, 2010 8:53:37 AM UTC-7, Streets Of Boston wrote:

     

    Dan Cha <cubangt2@gmail.com> May 28 07:25AM -0700  

    So im trying to build an app for my sisters photography business. Currently
    she offers her clients a "Sessions" area on her site that the client can
    login to after they have their photos taken.
    This login is available to them for 2week periods where they can review the
    photos and order what they want.

    What i'd like to try to do is make an app that mimics that setup. So is it
    possible to create an app, that can login to the site, and display the
    gallery on the phone(as long as they have internet access) so they dont
    have to be on a pc?

    If so, can any one point me to some good samples or tutorials on how to
    accomplish?

    thanks/

     

    TreKing <trekingapp@gmail.com> May 28 12:41PM -0500  

    > possible to create an app, that can login to the site, and display the
    > gallery on the phone(as long as they have internet access) so they dont
    > have to be on a pc?
     
    Yes, this is possible.
     
     
    > If so, can any one point me to some good samples or tutorials on how to
    > accomplish?
     
    You're question is extremely broad. There is not going to be one sample or
    tutorial that does everything you've described. Break your project up into
    discrete tasks (Gallery View, Login, etc) and search the internets for
    those specific things.
     
    Good luck.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Michael Banzon <michael@banzon.dk> May 28 07:45PM +0200  

    In my honest opinion: You should try and build a website that is more
    phone/tablet friendly instead. If you Google "responsive html css" or
    some combination you should be able to find enough resources to get
    the project moving. Unless the users/clients of the photo business is
    returning and often required to go through the review process I can't
    really see why they would want to install a dedicated app on their
    phone/tablet. Even if they are returning having a device friendly
    website should be a big gain. If the site is build using "modern"
    techniques it should simply be a matter changing the stylesheet.
     
    That being said - it is very much possible to build an app that
    require the user to login to view content delivered from a website and
    let the user interact with that content in a user-specific manner. You
    could watch the presentation from I/O of Google Volley
    (http://www.youtube.com/watch?v=yhv8l9F44qo) for a quick recap on such
    applications.
     
     
    --
    Michael Banzon
    http://michaelbanzon.com/

     

    Daniel Chacon <cubangt2@gmail.com> May 28 01:01PM -0500  

    The site we designed was done recently using some of the latest techniques,
    and i was thinking of a mobile web version for the gallery section as well.
    Just wanted to see about an app, but the websit would be easire and faster
    :)
     
     

     

    Kromosome <matg@kromosome.net> May 28 05:50AM -0700  

    try start_sticky :)

     

    "ravi ." <ravikanth970@gmail.com> May 28 04:46AM -0700  

    I haddownload a demo project from
    http://developer.android.com/training/location/retrieve-current.html. But I
    can't find which jar file contain the
    "com.google.android.gms.location.LocationClient.class" file
     
    I had also included google-play-services_lib into the project. But i am
    unable to solve this.
     
    Please see the below screen shot for reference.
     
     
    Thanks
     
    Ravikanth

     

    Perry168 <perrypkk@gmail.com> May 28 04:36AM -0700  

    Hi
     
    This is my fist time to use Licensing Service, so I have some problems
    about the testing result.
     
    The App is already uploaded to Play Store and saved to draft. I had two
    email accounts (Account "A" and Account "B") for testing. Account "A" added
    to "testing gmail account" at developer console. But Account "B" is not
    added.
     
    When using account "A", the App can receive the response as same as
    developer console setup. If changed to account "B", it always returns
    "Licensed" after connected to internet. I had try to re-install the App.
    But the result is the same.
     
    My problem is :
     
    1) the result of account "B" is correct or not? Or I had some key point is
    missing.
     
    2) if not, how to fix it?
     
    Thanks a lot.

     

    psyco <abdallah.medamine@gmail.com> May 28 01:12AM -0700  

    hi every one ,
     
    am working on an Android Project using ADT Bundle and i want to install the
    subclipse plugin but i am having some issues
     
    does any one install it before ?
     
    thanks,

     

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

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

Comments: (0)

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

    Yamusani Vinay <yamusanivinay@gmail.com> May 27 10:39PM -0700  

    Actually i'm trying to implement a music player app in android..so i
    installed android ndk which contains opensl audio libraries..i used it and
    tried to apply environmental reverb effect..but there is no change in the
    song..so anyone pls let me know what is the problem..
     
    note:
    Added permissions in manifest file.

     

    rh <richard_hubbe11@lavabit.com> May 27 11:12AM -0700  

    Seems we are mish mashing words around.
     
    There's code in the modem so there's proprietary code in the device,
    handset, whatever the proper jargon might be.
     
    I'm uninterested in the platform, i.e. developing on a device that I
    can't control completely. The hardware is the platform, whether
    or not that's the correct parlance/jargon here ....
     
    Now you see what I mean.
     
    I guess it's a matter of time before carriers are obsolete or
    consolidated or it goes public and then everyone will have
    equal access to wifi/cell. They've been trying for so long
    to add "value" because they fear becoming a commodity.
    i.e. bandwidth providers. The writing's on the wall for
    carriers and they know it.
     
    On Sun, 26 May 2013 21:46:42 -0400
     
    --

     

    rh <richard_hubbe11@lavabit.com> May 27 12:04PM -0700  

    On Sun, 26 May 2013 21:51:37 -0400
    > that we can run open telephony firmware at this time. Or maybe it is
    > and I'm just being naïve about the politics of handset manufacturing
    > and distribution.)
     
    Did you mean "not feasible"? Or you meant "maybe it isn't"?
     
    The politics is driven by $$, they have to maintain control over
    metering out bandwidth. But their game is over. There's a phone
    service (can't recall the name, it's an MVNO) that will place
    calls via wifi if it's available and only use cell when there's no wifi.
    This can save subscribers lots of money as they bypass the need
    for cell access.
     
    I guess I'm venting on android but I take your point and I understand.
    I think I used the wrong jargon as well.
    I was beginning to think that the android community was suffering
    from the plague of self-censorship.
    Thanks for taking the time to reply.

     

    Kristopher Micinski <krismicinski@gmail.com> May 27 09:43PM -0400  

    >> and I'm just being naïve about the politics of handset manufacturing
    >> and distribution.)
     
    > Did you mean "not feasible"? Or you meant "maybe it isn't"?
     
    I meant to say not feasible, apologies.
     
    The point is that the telephony market is mostly dominated by huge
    conglomerates (at least in the states, where I'm from). This isn't
    really a point I want to argue about (I'm all for open source
    firmware, but just being realistic as to the current market
    situation..), but if you want to get Android in the hands of a bunch
    of people via phones they probably aren't going to let you run your
    own open source firmware at the current time.
     
    > calls via wifi if it's available and only use cell when there's no wifi.
    > This can save subscribers lots of money as they bypass the need
    > for cell access.
     
    Sure, tons of services offer this (even Skype, which I believe was the
    first to offer this). At least my experience in the states is that
    broadband internet access still isn't widely available. Someday this
    may well be where the market goes (microtransactions with lowest
    bidder costs for cell calls, etc...) but that's just not where it's at
    now.
     
    > I was beginning to think that the android community was suffering
    > from the plague of self-censorship.
    > Thanks for taking the time to reply.
     
    AOSP is a pretty good open source platform, but not everything is
    feasible to open source from a business perspective (patents, closed
    code, etc...). It would be nice to move in the direction of more
    open, but that takes time (developers, hardware hackers, etc..) and
    money.
     
    Kris

     

    Xavier Ducrohet <xav@android.com> May 27 06:35PM -0700  

    The new structure allows us a lot more flexibility with tests inside the
    main project, and different code/resources for different variants).
     
    The big thing though is that Gradle will allow you to use whatever
    structure you want in a way that's understood by the IDEs. This was never
    possible. People wanted configuration of it but Ant/Eclipse didn't
    understand the same config files for it.
     
    Ultimately Ant will be deprecated, Eclipse will switch to Gradle. Work is
    already done in NetBeans to support Gradle.
     
    The new structure is the way going forward, while allowing to keep using
    the old one for older projects.
     
    As Tor said, docs will be updated at some point. Right now we are still in
    preview mode.
     
     
     
    --
    Xavier Ducrohet
    Android SDK Tech Lead
    Google Inc.
    http://developer.android.com | http://tools.android.com
     
    Please do not send me questions directly. Thanks!

     

    Brian Vetter <bjvetter@gmail.com> May 27 05:53PM -0500  

    I have a suggestions provider successfully hooked into the search widget showing results from my data that is stored on the network (and pulled to the device). That data includes an icon in addition to some string data. In my search activity, I can show both the label/text information as well as the drawable bitmap that I downloaded and have cached in ram locally in a service instance.
     
    I'd like to show that icon in the suggestions list along side the label text. I tried using SUGGEST_COLUMN_ICON_1 with the drawable passed in the record but that didn't work - the Suggestions code needs either a resource id, a uri to a file, or content ("scheme_content"?). I know I don't have the first two. Is there a way to create a content provider (presumably something that I can hand off to the Suggestion apis) from a bitmap drawable?
     
    Thanks,
     
    Brian

     

    Miha <miha.valencic@gmail.com> May 27 12:23PM -0700  

    Anybody?
     
    Regards,
    Miha.
     
    On Saturday, May 25, 2013 3:08:13 PM UTC+2, Miha wrote:

     

    Etienne <lawloretienne@gmail.com> May 27 10:22AM -0700  

    I am trying to figure out how the emoji (emoticon) selections are
    implemented on the Facebook app and the Google Hangouts app. I looked into
    the SoftKeyboard Demo app in the Android API Samples but the display of
    these emoji views does not look like a SoftKeyboard. It looks and behaves
    more like a custom Dialog view. Does anyone have an idea of how these are
    implemented?
    Facebook App
     
    [image: Facebook]
    Google Hangouts app
     
    [image: Hangouts]

     

    Marina Cuello <marina.eariel@gmail.com> May 27 12:02PM -0300  

    Hi!
    My country Argentina was recently deleted from the list on "Supported
    locations for merchants". I was developing a little game with an in-app
    billing system; some mini-games would come free and some would be optional,
    to be purchased.
     
    There is any way to make it work now that it is out of the question? Does
    the rule against using other paying systems stand when there is no
    availability on my country?
    I would welcome any insight from people from countries that aren't on the
    supported locations list.
     
    Thanks!
     
    Marina
     
    PS: If you think this is not the proper list or there is another list you
    think I could get more input, please let me know.

     

    Rahul Kaushik <rahulkaushik85@gmail.com> May 27 06:23PM +0530  

    i have an webview app ,when i click on attachments in my webview it opens
    an browser saying you are not login please login first
    Now
    1)if i login in browser and go back to my app,and click on any attachment
    it starts download without opening browser instance
    2)if don't login in browser and close my browser download does not start
     
    to be brief ,i have to stay logged in my browser first to start my
    download From WebView
     
    Please suggest
     
    Thanks
    RK

     

    arjunender pabba <arjunender@gmail.com> May 27 04:21AM -0700  

    Hi,
     

     
    i am developing* adobe air *app for ANDROID
     

     
    i am using swfloader to load swf file
     

     
    swf not stopping at the end and it is looping
     

     
    the same swf is working in the android web browser
     

     
    any suggesstions
     

     
    thanks

     

    Rahul Kaushik <rahulkaushik85@gmail.com> May 27 04:47PM +0530  

    Hi,
    i am ablde to download file in browser but not in webview android,
     
    Please suggest
     
    I have used downloadlistner on webview client
     
    Thanks
    RK

     

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