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

Comments: (0)

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

    "Francisco M. Marzoa Alonso" <francisco@marzoa.com> Jul 31 11:48AM +0200  

    Hi there,
     
    I am facing some random hangs without neither stack dump or "force
    close" message. My app is simply closed without no message about. I am
    even using critercism for reporting crashes, but in these situations
    there is even no report.
     
    My guess is that something is crashing below Dalvik, at native level, so
    the VM has no chance to handle it.
     
    I have been able to reproduce these on my SGS2, but could not get any
    valuable information about. It occurs randomly, though I suspect of
    SoundPool. I have been able to run the app for more than an hour with
    sound disabled without crashing. But the problem is that after that, I
    have had it running for more than an hour also with sound enabled... so
    my theory about soundpool is a bit weak.
     
    Anyway it used to crash always when it should make a sound, so I do not
    discard the problem is still on the SoundPool anyway, but given its own
    random nature it is very difficult to determine why and thus find a
    reliable workaround.
     
    I am about to fully remove soundpool from my app and use mediaplayer
    instead to see if there is some improvement, but in any case I rather
    like to know how other developers deals with these random crashes, and
    if there is some way of debug them through Eclipse and ADB tools at
    least to be more closed to the source of the problem.
     
    Best regards,

     

    "Francisco M. Marzoa Alonso" <fmmarzoa@gmail.com> Jul 31 11:57AM +0200  

    Hi there,
     
    I am facing some random hangs without neither stack dump or "force
    close" message. My app is simply closed without no message about. I am
    even using critercism for reporting crashes, but in these situations
    there is even no report.
     
    My guess is that something is crashing below Dalvik, at native level, so
    the VM has no chance to handle it.
     
    I have been able to reproduce these on my SGS2, but could not get any
    valuable information about. It occurs randomly, though I suspect of
    SoundPool. I have been able to run the app for more than an hour with
    sound disabled without crashing. But the problem is that after that, I
    have had it running for more than an hour also with sound enabled... so
    my theory about soundpool is a bit weak.
     
    Anyway it used to crash always when it should make a sound, so I do not
    discard the problem is still on the SoundPool anyway, but given its own
    random nature it is very difficult to determine why and thus find a
    reliable workaround.
     
    I am about to fully remove soundpool from my app and use mediaplayer
    instead to see if there is some improvement, but in any case I rather
    like to know how other developers deals with these random crashes, and
    if there is some way of debug them through Eclipse and ADB tools at
    least to be more closed to the source of the problem.
     
    Best regards,

     

    Justin Anderson <magouyaware@gmail.com> Jul 31 01:52PM -0600  

    Do you get any information out of LogCat?
     
    Thanks,
    Justin Anderson
    MagouyaWare Developer
    http://sites.google.com/site/magouyaware
     
     
    On Tue, Jul 31, 2012 at 3:48 AM, Francisco M. Marzoa Alonso <

     

    Pedro Cortez <pedrao.felipe@gmail.com> Jul 31 04:39PM -0300  

    Hi, i'm a new developer and i cant create a notification with a sound in my
    app.
    I tried this:
    notification.vibrate = new long[]{100, 250, 100, 500};
    notification .defaults = Notification.DEFAULT_SOUND;
    notification .audioStreamType = Notification.STREAM_DEFAULT;
     
    The app vibrate working well, but i cant hear any sound. Anyone could help
    me?
    Sorry for my poor english, but english is not my mother language.
    --
    att,
    Pedro Cortez

     

    AgricultureDeveloper <juliorodriguezvasquez@gmail.com> Jul 31 12:40PM -0700  

    Thank you so much, you saved my life with this simple tip.

     

    "Károly Holczhauser" <holczhauser@gmail.com> Jul 31 08:39AM -0700  

    Hello developers !
     
    I have a huge problem, and I don`t get over it, so please if you are able
    give me some help.:
    we have a microcontroller library in c# which has been converted out into a
    DLL file. It is okay, and nice. I have to write an Android "remote
    controller" applicaiton for the microcontroller, so I have to include the
    DLL into my Eclipse project, to be able call functions in it. It is not
    possible ( i was not able to do :) ) so I`m trying to convert the dll by
    the android NDK, because it is product and .so file.
     
    My first question is it a good way ?
     
    After i have an so file, I woud like to include in to my Eclipse project,
    but I was not able to do it :(
     
    Is anyone have any idea, or do you know any solution ?
    Thank you so much,
    Karoly

     

    Jim Graham <spooky130u@gmail.com> Jul 31 10:50AM -0500  

    On Tue, Jul 31, 2012 at 08:39:18AM -0700, K??roly Holczhauser wrote:
     
    > Is anyone have any idea, or do you know any solution ?
     
    First, I'm 99.999999999999% certain that you can't "convert" a DLL to a
    shared library (.so). You'll have to recompile the library in the NDK.
     
    Second, for NDK questions, the correct group to ask your question in is
    android-ndk@googlegroups.com, NOT this group. This group is for
    developing apps for Android using the SDK (or for a project with both,
    for the SDK side of the app).
     
    Later,
    --jim
     
    --
    THE SCORE: ME: 2 CANCER: 0
    73 DE N5IAL (/4) MiSTie #49997 < Running Mac OS X Lion >
    spooky130u@gmail.com ICBM/Hurricane: 30.44406N 86.59909W
     
    "sigh, once upon a time T-1 was fast...."
    --seen in alt.sysadmin.net-abuse.email
     
    Android Apps Listing at http://www.jstrack.org/barcodes.html

     

    bob <bob@coolfone.comze.com> Jul 31 12:26PM -0700  

    If it's in C#, it probably requires .NET, and you can't do .NET on Android.
     
    On Tuesday, July 31, 2012 10:39:18 AM UTC-5, Károly Holczhauser wrote:

     

    "Károly Holczhauser" <holczhauser@gmail.com> Jul 31 12:31PM -0700  

    @Spooky: Thx, I didn`t know about the ndk group !:)
    @bob: maybe from the another side ? Write some android app in c# ?
    Monodroid ? What do you think about it ?
     
    On Tuesday, 31 July 2012 21:26:07 UTC+2, bob wrote:

     

    Kristopher Micinski <krismicinski@gmail.com> Jul 31 03:35PM -0400  

    On Tue, Jul 31, 2012 at 3:31 PM, Károly Holczhauser
    > @Spooky: Thx, I didn`t know about the ndk group !:)
    > @bob: maybe from the another side ? Write some android app in c# ? Monodroid
    > ? What do you think about it ?
     
    @your second comment: I kind of doubt that if you require a shared
    library it will work on Android without significant munging (read:
    rewriting). So if someone just handed it to you you're probably going
    to have problems.
     
    As for using monodroid, I don't really feel like that's a viable
    option, but even if it is, you'll have to check with another forum,
    this group is exclusively the SDK.
     
    kris

     

    Streets Of Boston <flyingdutchie@gmail.com> Jul 31 07:59AM -0700  

    Hi,
     
    I have a text-view next to a seekbar. The seekbar is accessible and
    announces its current value. The text-view also shows this value.
    For accessibility, I'd like to make the text-view not
    accessibility-focusable, since the seekbar already is (no use in stating
    the same thing twice).
     
    However, when adding *android:accessibilityFocusable="no"* to the layout
    xml, I get this error:
    *No resource identifier found for attribute 'accessibilityFocusable' in
    package 'android' page_slider_layout.xml /KnfbBlio/res/layout line 37 Android
    AAPT Problem*
     
    The project build target is 4.1 (api level 16).
    The targetSdk in the AndroidManifest.xml is set to 16 as well.
     
    Any idea what the problem could be?
     
    Thanks!

     

    Streets Of Boston <flyingdutchie@gmail.com> Jul 31 09:31AM -0700  

    hi Mark,
     
    I found it in the layout editor (using Eclipse). It shows up as a property
    and you can select 'auto', 'yes' or 'no'.
     
    If this is not the way to do it, how would one prevent accessibility focus
    to a particular control?
     
    --- Anton.
     
    On Tuesday, July 31, 2012 11:11:15 AM UTC-4, Mark Murphy (a Commons Guy)
    wrote:

     

    Streets Of Boston <flyingdutchie@gmail.com> Jul 31 10:54AM -0700  

    Thank you Mark.
     
    I've been trying to update our app to the latest and greatest in JellyBean
    accessibility. This is one issue I encountered.
     
    I've also been trying to implement some AccesibilityDelegate
    and AccessibilityNodeProvider implementations of our own custom views to
    establish a virtual view hierarchy, but without any success. Even the
    samples (ApiDemos) for accessibility can't handle the accessibility-focus
    events well (hover events seem to work somewhat better). I wish there were
    some proper examples - that work! - of how to make a fully accessible (also
    on JellyBean) custom view with a custom virtual view hierarchy. Do you
    know of any?
     
     
    On Tuesday, July 31, 2012 12:45:16 PM UTC-4, Mark Murphy (a Commons Guy)
    wrote:

     

    bob <bob@coolfone.comze.com> Jul 31 12:23PM -0700  

    What do you mean "hover events seem to work somewhat better"? What's a
    hover event on a touchscreen?
     
     
    On Tuesday, July 31, 2012 12:54:25 PM UTC-5, Streets Of Boston wrote:

     

    Romain Guy <romainguy@android.com> Jul 31 09:42AM -0700  

    This is a know TextView bug that we fixed internally. The fix will be part
    of an Android update.

     

    bob <bob@coolfone.comze.com> Jul 31 12:17PM -0700  

    Maybe put your license agreement in a WebView instead?
     
     
     
    On Monday, July 30, 2012 11:29:07 PM UTC-5, Shogun wrote:

     

    Faust Nijhuis <faustnijhuis@gmail.com> Jul 31 08:25PM +0200  

    Hello ,
     
    There is a problem when using RotateAnimation in android 4.0.
    On all pre android 4.0 versions it works ok.
     
    The RotateAnimation is good on a android device with a HVGA screen.
     
    The RotateAnimation is not good, the center point is shifted, on devices
    with a other screen size.
     
    This is my code:
     
    *final RotateAnimation animRotate =*
    * new RotateAnimation(0.0f, 360.0f,*
    * RotateAnimation.RELATIVE_TO_SELF , 0.5f,*
    * RotateAnimation.RELATIVE_TO_SELF , 0.5f);*
     
     
    I can make the RotateAnimation working correctly for WVGA, i have to change
    0.5f to 0.3333f:
     
    *final RotateAnimation animRotate =*
    * new RotateAnimation(0.0f, 360.0f,*
    * RotateAnimation.RELATIVE_TO_SELF , 0.3333f,*
    * RotateAnimation.RELATIVE_TO_SELF , 0.3333f);*
     
    I think it has something to do with scaling but can not find anywhere what
    the solution is.
     
    Does anyone know of this problem, is it a bug?
     
    Faust

     

    bob <bob@coolfone.comze.com> Jul 31 12:05PM -0700  

    Sounds more like a "change in dpi" issue.
     
     
    The 4.0 phone is probably xhdpi, and your stuff is in the hdpi folder, so
    it gets scaled.
     
     
     
    On Tuesday, July 31, 2012 1:25:44 PM UTC-5, Fausteric wrote:

     

    CJ <joven.chiew@gmail.com> Jul 31 08:03AM -0700  

    Hi,
     
    I have been googling for a while able the best or right way to
    disable/enable mobile network.
     
    I tried the following code which is all over Stackoverflow and is working
    fine for gingerbread and higher:
     
    private void setMobileDataEnabled(Context context, boolean enabled)
    throws Exception {
    final ConnectivityManager conman = (ConnectivityManager) context
    .getSystemService(Context.CONNECTIVITY_SERVICE);
    final Class<?> conmanClass = Class.forName(conman.getClass().getName());
    final Field iConnectivityManagerField = conmanClass
    .getDeclaredField("mService");
    iConnectivityManagerField.setAccessible(true);
    final Object iConnectivityManager = iConnectivityManagerField
    .get(conman);
    final Class<?> iConnectivityManagerClass = Class
    .forName(iConnectivityManager.getClass().getName());
    final Method setMobileDataEnabledMethod = iConnectivityManagerClass
    .getDeclaredMethod("setMobileDataEnabled", Boolean.TYPE);
    setMobileDataEnabledMethod.setAccessible(true);
     
    setMobileDataEnabledMethod.invoke(iConnectivityManager, enabled);
    }
     
    Somehow I didn't find a way to do the same thing for Android 2.2 and below.
    Many mentioned to change the APN name to something invalid like what app
    APNDroid did but is that the only way?

     

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

Comments: (0)

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

    TreKing <trekingapp@gmail.com> Jul 31 04:12AM -0500  


    > I want to open the android built-in messaging service from my activity
     
     
    What is "built-in messaging service"?
     
     
    > and i want the mb no to be embedded
     
     
    What is "mb no"?
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    MalancheK <carlos_malanche@ciencias.unam.mx> Jul 29 01:23PM -0700  

    Hello,
     
    I don't know if it's a real problem or just a configuration issue. Whenever
    I create an application from scratch, as I load it to a real device or run
    it on the emulator, Eclipse (which I use) loads the activities as separate
    applications, even though, they still communicate between them as if they
    were one appplication. In the "Application Management", the name I gave to
    the application appears, but it's in the "menu" where all activities behave
    like they were different applications.
    If I delete one of the activities from the device, all are gone, which
    behaves like an App (the name below the activities is the activity name).
    Same thing occurs if I run the app on the emulator.
    If I open one of the samples that came with the ADT Plugin/Android SDK,
    they will install just normaly.
    I don't know what am I doing wrong.
     
    Thanks!

     

    TreKing <trekingapp@gmail.com> Jul 31 04:09AM -0500  

    On Sun, Jul 29, 2012 at 3:23 PM, MalancheK <carlos_malanche@ciencias.unam.mx
    > If I delete one of the activities from the device, all are gone, which
    > behaves like an App (the name below the activities is the activity name).
    > Same thing occurs if I run the app on the emulator.
     
    I found this very hard to follow and understand, but I would ask if you
    have the LAUNCHER category on each of your Activities?
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    srikanth <srikanthandroidgroups@gmail.com> Jul 31 02:09AM -0700  

    Thank you so much i got the answer..............
     
    On Friday, July 20, 2012 2:49:19 AM UTC+5:30, bob wrote:

     

    Alessandro Bugliarelli <a.bugliarelli@gmail.com> Jul 30 06:30AM -0700  

    hello,
    i'm trying to compile android 4.1 for my device, but i get this error and
    the compilation stops. i don't know how to fix it and i need help. That's
    what happens:
     
    target thumb C++: audio.primary.goldfish <=
    device/generic/goldfish/audio/AudioHardwareGeneric.cpp
    target thumb C++: audio.primary.omap3 <=
    device/samsung/galaxysl/libaudio/AudioHardware.cpp
    target StaticLib: libaudiohw_legacy
    (out/target/product/galaxysl/obj/STATIC_LIBRARIES/libaudiohw_legacy_intermediates/libaudiohw_legacy.a)
    target thumb C++: audio_policy.default <=
    hardware/libhardware_legacy/audio/AudioPolicyManagerDefault.cpp
    target StaticLib: libaudiopolicy_legacy
    (out/target/product/galaxysl/obj/STATIC_LIBRARIES/libaudiopolicy_legacy_intermediates/libaudiopolicy_legacy.a)
    target thumb C++: audio_policy.latona <=
    device/samsung/galaxysl/libaudio/AudioPolicyManager.cpp
    target thumb C++: camera.latona <=
    device/samsung/galaxysl/libcamera/CameraHal_Module.cpp
    In file included from
    device/samsung/galaxysl/libcamera/CameraHal_Module.cpp:37:0:
    device/samsung/galaxysl/libcamera/../include/videodev2.h:1054:0: warning:
    "V4L2_CID_LASTP1" redefined [enabled by default]
    device/samsung/galaxysl/libcamera/../include/videodev2.h:928:0: note: this
    is the location of the previous definition
    In file included from
    device/samsung/galaxysl/libcamera/CameraHardware.h:49:0,
    from
    device/samsung/galaxysl/libcamera/CameraHal_Module.cpp:43:
    *system/core/include/cutils/tztime.h:34:25: fatal error: bionic_time.h: No
    such file or directory*
    *compilation terminated.*
    make: ***
    [out/target/product/galaxysl/obj/SHARED_LIBRARIES/camera.latona_intermediates/CameraHal_Module.o]
    Errore 1
    make: *** Attesa per i processi non terminati....
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In destructor 'virtual
    android_audio_legacy::AudioHardware::~AudioHardware()':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:135:43: error: 'LOGE'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:138:44: error: 'LOGE'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'void android_audio_legacy::AudioHardware::loadRILD()':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:159:45: error: 'LOGV'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:181:69: error: 'LOGE'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:188:47: error: 'LOGE'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:195:46: error: 'LOGE'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'android::status_t
    android_audio_legacy::AudioHardware::connectRILDIfRequired()':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:202:53: error: 'LOGE'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:211:36: error: 'LOGE'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'virtual void
    android_audio_legacy::AudioHardware::closeOutputStream(android_audio_legacy::AudioStreamOut*)':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:262:58: error: 'LOGW'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'virtual android_audio_legacy::AudioStreamIn*
    android_audio_legacy::AudioHardware::openInputStream(uint32_t, int*,
    uint32_t*, uint32_t*, android::status_t*,
    android_audio_legacy::AudioSystem::audio_in_acoustics)':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:315:56: error: 'LOGV'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'virtual void
    android_audio_legacy::AudioHardware::closeInputStream(android_audio_legacy::AudioStreamIn*)':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:327:57: error: 'LOGW'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:333:51: error: 'LOGV'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'virtual android::status_t
    android_audio_legacy::AudioHardware::setMode(int)':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:385:55: error: 'LOGV'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'virtual android::status_t
    android_audio_legacy::AudioHardware::setMicMute(bool)':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:469:55: error: 'LOGV'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'virtual android::status_t
    android_audio_legacy::AudioHardware::setParameters(const
    android::String8&)':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:521:27: error: 'LOGD'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:542:44: error: 'LOGV'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'virtual android::String8
    android_audio_legacy::AudioHardware::getParameters(const
    android::String8&)':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:575:45: error: 'LOGV'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'virtual size_t
    android_audio_legacy::AudioHardware::getInputBufferSize(uint32_t, int,
    int)':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:583:57: error: 'LOGW'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:587:70: error: 'LOGW'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:592:66: error: 'LOGW'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'void android_audio_legacy::AudioHardware::setVoiceVolume_l(float)':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:610:32: error: 'LOGD'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:650:73: error: 'LOGW'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'virtual android::status_t
    android_audio_legacy::AudioHardware::setMasterVolume(float)':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:661:46: error: 'LOGV'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'android::status_t
    android_audio_legacy::AudioHardware::setIncallPath_l(uint32_t)':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:760:46: error: 'LOGV'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:767:54: error: 'LOGD'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:800:72: error: 'LOGW'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:811:81: error: 'LOGE_IF'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'pcm* android_audio_legacy::AudioHardware::openPcmOut_l()':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:992:55: error: 'LOGD'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:995:74: error: 'LOGE'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1010:9: warning: missing
    initializer for member 'pcm_config::avail_min'
    [-Wmissing-field-initializers]
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1016:88: error: 'LOGE'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'void android_audio_legacy::AudioHardware::closePcmOut_l()':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1029:56: error: 'LOGD'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1031:48: error: 'LOGE'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'mixer* android_audio_legacy::AudioHardware::openMixer_l()':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1063:58: error: 'LOGV'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1066:79: error: 'LOGE'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1074:51: error: 'LOGE'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'void android_audio_legacy::AudioHardware::closeMixer_l()':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1084:59: error: 'LOGV'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1086:49: error: 'LOGE'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'android::status_t
    android_audio_legacy::AudioHardware::setInputSource_l(android_audio_legacy::audio_source)':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1211:41: error: 'LOGV'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'echo_reference_itfe*
    android_audio_legacy::AudioHardware::getEchoReference(audio_format_t,
    uint32_t, uint32_t)':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1246:62: error: 'LOGV'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'void
    android_audio_legacy::AudioHardware::releaseEchoReference(echo_reference_itfe*)':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1268:66: error: 'LOGV'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function 'int
    android_audio_legacy::AudioHardware::AudioStreamOutALSA::getPlaybackDelay(size_t,
    echo_reference_buffer*)':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1343:92: error: 'LOGV'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1357:69: error: 'LOGV'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'virtual ssize_t
    android_audio_legacy::AudioHardware::AudioStreamOutALSA::write(void const*,
    size_t)':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1386:66: error: 'LOGD'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1400:75: error: 'LOGV'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1443:38: error: 'LOGW'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1451:85: error: 'LOGE'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'void
    android_audio_legacy::AudioHardware::AudioStreamOutALSA::doStandby_l()':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1479:63: error: 'LOGD'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'android::status_t
    android_audio_legacy::AudioHardware::AudioStreamOutALSA::open_l()':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1506:31: error: 'LOGV'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'virtual android::status_t
    android_audio_legacy::AudioHardware::AudioStreamOutALSA::setParameters(const
    android::String8&)':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1601:74: error: 'LOGD'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'virtual android::String8
    android_audio_legacy::AudioHardware::AudioStreamOutALSA::getParameters(const
    android::String8&)':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1647:77: error: 'LOGV'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'void
    android_audio_legacy::AudioHardware::AudioStreamOutALSA::addEchoReference(echo_reference_itfe*)':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1677:67: error: 'LOGV'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'void
    android_audio_legacy::AudioHardware::AudioStreamOutALSA::removeEchoReference(echo_reference_itfe*)':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1685:70: error: 'LOGV'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'android::status_t
    android_audio_legacy::AudioHardware::AudioStreamInALSA::set(android_audio_legacy::AudioHardware*,
    uint32_t, int*, uint32_t*, uint32_t*,
    android_audio_legacy::AudioSystem::audio_in_acoustics)':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1730:76: error: 'LOGD'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1749:80: error: 'LOGW'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'ssize_t
    android_audio_legacy::AudioHardware::AudioStreamInALSA::processFrames(void*,
    ssize_t)':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1819:44: error: 'LOGV'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'int32_t
    android_audio_legacy::AudioHardware::AudioStreamInALSA::updateEchoReference(size_t)':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1876:53: error: 'LOGV'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'void
    android_audio_legacy::AudioHardware::AudioStreamInALSA::pushEchoReference(size_t)':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1929:82: error: 'LOGV'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'android::status_t
    android_audio_legacy::AudioHardware::AudioStreamInALSA::setPreProcessorEchoDelay(effect_handle_t,
    int32_t)':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1947:52: error: 'LOGV'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'void
    android_audio_legacy::AudioHardware::AudioStreamInALSA::getCaptureDelay(size_t,
    echo_reference_buffer*)':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:1982:60: error: 'LOGW'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:2008:91: error: 'LOGV'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'virtual ssize_t
    android_audio_legacy::AudioHardware::AudioStreamInALSA::read(void*,
    ssize_t)':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:2031:65: error: 'LOGD'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:2052:74: error: 'LOGV'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:2059:56: error: 'LOGV'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:2090:45: error: 'LOGW'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:2100:78: error: 'LOGE'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'void
    android_audio_legacy::AudioHardware::AudioStreamInALSA::doStandby_l()':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:2127:62: error: 'LOGD'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp: In member function
    'android::status_t
    android_audio_legacy::AudioHardware::AudioStreamInALSA::open_l()':
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:2189:5: warning: missing
    initializer for member 'pcm_config::avail_min'
    [-Wmissing-field-initializers]
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:2191:30: error: 'LOGV'
    was not declared in this scope
    device/samsung/galaxysl/libaudio/AudioHardware.cpp:2196:68: error:

     

    TreKing <trekingapp@gmail.com> Jul 31 04:07AM -0500  

    On Mon, Jul 30, 2012 at 8:30 AM, Alessandro Bugliarelli <
     
    > i'm trying to compile android 4.1 for my device
     
     
    You need to ask your question on one of the groups dedicated to building
    the source. Like "platform" or "porting" or whatever they're called.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    Decibel <grumpygranny411@gmail.com> Jul 29 06:20PM -0700  

    Hello
     
    Is the Android Developer Guide available in *PDF* format?
     
    This guide: (http://developer.android.com/guide/)
     
    If not, I think it would be beneficial to create one.
     
    A paper copy would make learning easier as you are not restricted to
    reading just on the computer.
     
    Please advice,
     
    Sincerely.

     

    TreKing <trekingapp@gmail.com> Jul 31 04:06AM -0500  


    > Is the Android Developer Guide available in *PDF* format?
     
    I don't think so.
     
     
    > This guide: (http://developer.android.com/guide/)
    > If not, I think it would be beneficial to create one.
     
    A paper copy would make learning easier as you are not restricted to
    > reading just on the computer.
     
    A paper copy would be outdated by the time it was finished printing.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    TreKing <trekingapp@gmail.com> Jul 31 03:53AM -0500  

    On Sat, Jul 28, 2012 at 3:01 PM, Albrecht Frick <albrechtidis@googlemail.com
    > wrote:
     
    > Any Ideas?
     
     
    About what? You didn't ask a question.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    fahad mullaji <fahadmullaji@gmail.com> Jul 31 02:34PM +0530  

    *Albrecht*,
     
    In early days when i used to create android application it by default used
    to create Linear Layout.
    But in recent it drops Relative Layout.
    You can any time change the layout no issues with that.
     
    *Thanks*
    Fahad Mullaji
     
    On Sun, Jul 29, 2012 at 1:31 AM, Albrecht Frick <albrechtidis@googlemail.com
     
    --
    Regards
    Fahad Mullaji

     

    Rocky <rkjhaw1983@gmail.com> Jul 31 02:25PM +0530  

    Larry,
     
    NP, i'm trying to make tab on both the place (header & footer), let me know
    if you can do it
     
    It will great R&D for develper.
     
     
    --
    Thanks & Regards
     
    Rakesh Kumar Jha
    Android Developer, Trainer and Mentor
    Bangalore
    Skype - rkjhaw
    (O) +918050753516
    (R) +919886336619

     

    TreKing <trekingapp@gmail.com> Jul 31 03:43AM -0500  


    > will it work well on android devices with versions 2.3 or superior or it
    > will present crashes?
     
     
    That really depends on what your code does. The only way to know this for
    sure is to test it. That's what the emulator is for.
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    fahad mullaji <fahadmullaji@gmail.com> Jul 31 02:26PM +0530  

    *Oscar*,
     
    You can download android APIs till version 16 that is Jelly Beans android
    4.1.
    Switch to these APIs and find out that you are getting any compile errors
    or not.
    If you are good there then create emulators for all the versions or APIs
    that you want to check your code on.
     
    *Thanks*
    Fahad Mullaji
     
     
    --
    Regards
    Fahad Mullaji

     

    Raghav Sood <raghavsood@gmail.com> Jul 31 01:12PM +0530  


    > Dude can you mail me the source code to capture images and to store in SD
    > card plz
     
    How much are you paying me?
     
    Thanks
     
    --
    Raghav Sood
    Please do not email private questions to me as I do not have time to answer
    them. Instead, post them to public forums where others and I can answer and
    benefit from them.
    http://www.appaholics.in/ - Founder
    http://www.apress.com/9781430239451 - Author
    +91 81 303 77248

     

    Asheesh Arya <asheesharya.cs@gmail.com> Jul 31 02:20PM +0530  

    please find the enclosed attachment containing source code of image and
    save it to sd card

     

    fahad mullaji <fahadmullaji@gmail.com> Jul 31 02:20PM +0530  

    *marcelopalmadenoronha*,
     
    Check below code and also check manifest settings whatever asheesh was
    asking you to check
     
    Intent i = new Intent(getApplicationContext(), NewActivity.class);
    i.putExtra("new_variable_name","value");
    startActivity(i);
     
    Then in the new Activity, retrieve those values:
     
    *Bundle extras = getIntent().getExtras();*
    if (extras != null) {
    String value = extras.getString("new_variable_name");
    }
     
     
    *Thanks*
    Fahad Mullaji
     
     
    --
    Regards
    Fahad Mullaji

     

    TreKing <trekingapp@gmail.com> Jul 31 03:47AM -0500  

    > of it. How do I set this so it loads up the widget after I set the details
    > (I think this might be where the issue is coming from.). Its kinda like
    > burner on a stove. One ring goes out the whole burner is shot.
     
     
    I, for one, am unable to make any sense of this whatsoever. Care to clarify?
     
    -------------------------------------------------------------------------------------------------
    TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
    transit tracking app for Android-powered devices

     

    skink <pskink@gmail.com> Jul 31 01:18AM -0700  


    > --
    > Dianne Hackborn
    > Android framework engineer
     
    Dianne I agree but it should be somehow documented in LayerDrawable
    docs: i saw similar notes in other android javadocs.
     
    Anyway i think the OP could solve his problem using InsetDrawable but
    in another post you said it's impossible to achieve what they wanted
    without creating custom Drawable, is it really right?
     
    pskink

     

    Ethan Gao <ethangao.studio@gmail.com> Jul 31 01:08AM -0700  

    hi all:

    I am attempting to create an android Widget application which display
    more than 10 images in ListView. The image size depends on screen
    resolution, so the image might be 300*300 pixel on some high resolution
    devices. When scrolling the listview Widget, the widget looks laggy and
    choppy. However, this laggy problem only happens on some high resolution
    device. I looked into android source code, and find out that there is a
    cache in RemoteViewsAdapter whose size is fixed to 2MB. 2MB is enough in
    most device, but not in high resolution devices.
    Is there anyone see this problem as well? Any help would be
    appreciated. thanks

     

    kefong <malli.purna03@gmail.com> Jul 29 10:26PM -0700  

    I am working on android youtube application. We can fetch data and all the
    other things perfectly. By using openyoutubeplayer to play the youtube
    videos. We are passing videoid to play the videos in openyoutubeplayer.
    While video is playing we encounted with "*Consumer closed input channel or
    an error occurred. events=0x8*" after some time[Its random].It will be
    occured after some time.Its random some videos playing 10mins and some
    videos playing 20mins...etc. Please see the following logs.
     
    I/NuCachedSource2( 1146): Keep alive
    I/NuCachedSource2( 1146): Keep alive
    I/NuCachedSource2( 1146): Keep alive
    I/NuCachedSource2( 1146): Keep alive
    I/NuCachedSource2( 1146): Keep alive
    E/InputDispatcher( 1153):* channel '4080cb58
    com.android.launcher/com.android.launcher2.Launcher (server)' ~ Consumer
    closed input channel or an error occurred. events=0x8*
    E/InputDispatcher( 1153): *channel '4080cb58
    com.android.launcher/com.android.launcher2.Launcher (server)' ~ Channel is
    unrecoverably broken and will be disposed!*
    W/IMediaDeathNotifier( 2431): *media server died*
    W/MediaMetadataRetriever( 1243): MediaMetadataRetriever server died!
    E/MediaPlayer( 2431): error (100, 0)
    I/ServiceManager( 1077): service 'media.audio_flinger' died
    I/ServiceManager( 1077): service 'media.player' died
    I/ServiceManager( 1077): service 'media.camera' died
    I/ServiceManager( 1077): service 'media.audio_policy' died
    W/AudioSystem( 2431): AudioFlinger server died!
    W/AudioSystem( 1153): AudioFlinger server died!
    I/WindowManager( 1153): WINDOW DIED Window{4080cb58
    com.android.launcher/com.android.launcher2.Launcher paused=false}
    W/AudioSystem( 1153): AudioPolicyService server died!
    I/ActivityManager( 1153): Process com.android.launcher (pid 1592) has died.
    E/MediaPlayer( 2431): Error (100,0)
    D/VideoView( 2431): Error: 100,0
    W/WindowManager( 1153): Failed looking up window
    W/WindowManager( 1153): java.lang.IllegalArgumentException: Requested
    window android.os.BinderProxy@4080c968 does not exist
    W/WindowManager( 1153): at
    com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java:8181)
    W/WindowManager( 1153): at
    com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java:8172)
    W/WindowManager( 1153): at
    com.android.server.WindowManagerService$WindowState$DeathRecipient.binderDied(WindowManagerService.java:7031)
    W/WindowManager( 1153): at
    android.os.BinderProxy.sendDeathNotice(Binder.java:381)
    W/WindowManager( 1153): at dalvik.system.NativeStart.run(Native
    Method)
    I/WindowManager( 1153): WIN DEATH: null
    I/ ( 2857): ServiceManager: 0xad50
    I/CameraService( 2857): CameraService started (pid=2857)
    D/AudioHardwareALSA( 2857): openOutputStream called for devices: 0x00000002
    I/ALSAModule( 2857): Initialized ALSA PLAYBACK device
    AndroidPlayback_Speaker_normal
    I/AudioFlinger( 2857): AudioFlinger's thread 0x16c00 ready to run
    D/ALSAModule( 2857): route called for devices 00000002 in mode 0...
    E/AudioService( 1153): Media server died.
    E/AudioService( 1153): Media server started.
    W/AudioPolicyManagerBase( 2857): setPhoneState() setting same state 0
     
    i dont know exactly what happend.can you see this post suggest me what i
    want to do.thanks in advance

     

    Domino_Android <hongwoo.jin@gmail.com> Jul 30 05:57PM -0700  

    Hi,
    I'm developing Android Framework with Drag and Drop and Click function for
    intent.
    I've references by
    http://blahti.wordpress.com/2012/03/03/improved-drag-drop-for-gridview/ drag
    and drop function.

    I understood his source a little and try to adapt some more functions, but
    there are many problems, ImageCellAdapter have set listener
    "v.setOnTouchListener ((View.OnTouchListener) mContext);
    v.setOnClickListener ((View.OnClickListener) mContext);
    v.setOnLongClickListener ((View.OnLongClickListener) mContext);"
    and activity have set listener as "gridView.setOnItemClickListener(this);"

    Even If I subtract those listeners from ImageCellAdapter, it works
    OnItemClickListener on activity , but it cannot work drag and drop
    and If there have those listeners from ImageCellAdatper,
    onItemClickListener does not work

    How can I work onItemClick with Drag and Drop of this functions

     

    Andros <awmiller.andros@gmail.com> Jul 30 10:29AM -0700  

    Actually guys there is a much easier way. Amaan has the idea.
     
    The problem is this: you are currently in your xml files and you try to
    run/debug your program.
    Because the way eclipse behaves, it will try to execute that file which you
    are currently "focused" on.
    simple navigate to the root folder (in your package explorer where your
    main file is) and either:
    1: right click and run/debug
    2: left click and run/debug from the toolbar
     
    the main.out.xml is the java compiler trying to link your xml... lol
     
    On Monday, February 13, 2012 12:42:56 AM UTC-8, Kirupa wrote:

     

    Manish Jalan <jalanmanish@gmail.com> Jul 30 05:35AM -0700  

    Testing the functionality of the push service (GCM as well as C2DM) has
    been very nicely explained in the documentation.
    We want to test beyond the functionality. We want to test our server
    component responsible for pushing notifications to our application on the
    android devices for
    1. Its throughput and
    2. Its performance when it is loaded
     
    To do this kind of load testing the challenge we have in front of us is,
    how do we test for 100s of endpoints? We will certainly not have these many
    real devices available for load testing. In absence of real endpoints, can
    we carry out the load testing for our server component? Any ideas will be
    very much appreciated.
     
    Can we try with dummy endpoints? Will Google servers be ok to receive kind
    of junk traffic when we are doing load testing? Can we request Google for
    some arrangement?
     
    I believe such testing might be a routine requirement for apps in banking
    or financial domain where they have very high number of users. How do they
    test their notification modules for its performance and throughput?
     
    Any inputs and guidance will be highly appreciated.
     
    Best Regards,
    -Manish Jalan

     

    Benny Chan <bennychanfangway@gmail.com> Jul 29 09:55PM -0700  

    Hi,
     
    As mentioned in the subject line, can you please advice how I can achieve
    that?
     
    Thank you.
     
    Regards,
     
    Benny

     

    kefong <malli.purna03@gmail.com> Jul 30 12:39AM -0700  

    Hi,
     
    I am working on youtube application.In this i am fetching the data from
    youtube gdata api.
    i am using the openyoutubeplayer to play the videos.
    i am passing the videoid to play the videos in openyoutubeplayer.
    it playing upto some time and getting the error like media server died.
    some videos are playing some time and some videos are playing some time.
    we cannot assume the playing time its random for every video.
     
    so,anybody facing this issue.reply to me.thanks in advance.

     

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

Comments: (0)

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

    yakobom <yakobom@gmail.com> Jul 31 12:32AM -0700  

    Hi,
    Did any of you find a solution for this?
     
    Thanks,
    yakobom
     
    On Monday, March 8, 2010 4:43:06 AM UTC+2, tnkirk wrote:

     

    Rajen Raiyarela <rajen.raiyarela@gmail.com> Jul 31 12:28AM -0700  

    I m too facing the same issue for my apps developed for my client, in italy.
     
    Earlier geocoder.getfromlocation(lat,lng) used to successfully return city
    from address.getlocation(), but now for all the locations in italy we are
    getting null for address.getlocation().
     
    But for India that is my location i m getting citynames from
    address.getlocation() properly.
     
     
    On Friday, December 30, 2011 1:02:08 PM UTC+5:30, Tero Kinnunen wrote:

     

    Rahul Kaushik <rahulkaushik85@gmail.com> Jul 31 12:55PM +0530  

    Hi,
     
    I want to open the android built-in messaging service from my activity and
    i want the mb no to be embedded which i pass thru my activity, like when i
    send an email on click in site it open ms outllook and To is already filled
    with an email id.
     
    Thanks
    RK

     

    gjs <garyjamessilva@gmail.com> Jul 31 12:16AM -0700  

    Hi,
     
    I saw recently I could take out an insurance policy that had unlimited
    cover amount, I guess the premium has unlimited cost as well ;-)
     
    Regards
     
    On Tuesday, July 31, 2012 10:51:11 AM UTC+10, Dianne Hackborn wrote:

     

    skink <pskink@gmail.com> Jul 30 11:34PM -0700  

    W dniu poniedziałek, 30 lipca 2012 18:44:34 UTC+2 użytkownik Jonathan Koren
    napisał:
    > d.setBounds(left, top, right, bottom);
     
    > Can I set bounds for an individual layer without affecting the other
    > layers? If not, what can I do to get around this issue?
     
    as far i know this is not true: you can change the bounds of one layer
    without affecting the other layers. try to:
    d.setBounds(left, top, right, bottom);
    d.invalidateSelf();
     
    in some callback method e.g. onClick(View v) and you will see it works as
    expected
     
    pskink

     

    Dianne Hackborn <hackbod@android.com> Jul 30 11:42PM -0700  

    > d.invalidateSelf();
    > in some callback method e.g. onClick(View v) and you will see it works as
    > expected
     
    If you are suggesting to do this on one of the child drawables that you
    have placed in the LayerDrawable, then you are relying on the framework
    never calling setBounds() again on that Drawable itself. This is a very
    dangerous thing to rely on. This is very very far into the realm of
    relying on implementation details that there will be no guarantee remain
    that way.
     
    When you put a drawable into a parent drawable, the parent owns the state
    management of the child drawable. Don't try to play games whacking on its
    state yourself in the hope you can get lucky and not conflict with it.
    (And this is a good rule to assume for any situation where you are placing
    a child object into a parent container.)
     
    --
    Dianne Hackborn
    Android framework engineer
    hackbod@android.com
     
    Note: please don't send private questions to me, as I don't have time to
    provide private support, and so won't reply to such e-mails. All such
    questions should be posted on public forums, where I and others can see and
    answer them.

     

    Meena Rengarajan <meenasoftech@gmail.com> Jul 30 11:31PM -0700  

    I have created a file name "music_1.amr".. When i recording audio it will
    capture and stored in "music_1.amr" . So i can do play, stop or save.. Now
    i wanna do is, whenever i create a new audio recording that previous
    recorded audio should be deleted automatically and this new audio capture
    must store it in same file name "music_1.amr". What do i wanna do here .
    Can anyone suggest me?

     

    Asheesh Arya <asheesharya.cs@gmail.com> Jul 31 12:09PM +0530  

    create a file with the same name in your source code!!

     

    zep <marcelopalmadenoronha@hotmail.com> Jul 30 02:05PM -0700  

    Hi.
     
    For the main acitivity I have this code:
     
    package com.example.myapp_0;
     
    import android.app.Activity;
    import android.content.Intent;
    import android.os.Bundle;
    import android.view.Menu;
    import android.view.View;
    import android.widget.EditText;
     
    public class MainActivity extends Activity {
     
    public final static String EXTRA_MESSAGE = "com.example.myapp.MESSAGE";
    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    }
     
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
    getMenuInflater().inflate(R.menu.activity_main, menu);
    return true;
    }

    public void send(View view){
    Intent intent = new Intent(this, MessageActivity.class);
    EditText editText = (EditText) findViewById(R.id.edit_message);
    String message = editText.getText().toString();
    intent.putExtra(EXTRA_MESSAGE, message);
    startActivity(intent);

    }

    }
     
    For the second activity I have this code:
     
    package com.example.myapp_0;
     
    import android.app.Activity;
    import android.content.Intent;
    import android.os.Bundle;
    import android.widget.TextView;
     
    public class MessageActivity extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
     
    // Get the message from the intent
    Intent intent = getIntent();
    String message = intent.getStringExtra(MainActivity.EXTRA_MESSAGE);
     



    TextView textView = (TextView) findViewById(R.id.textView2);

    textView.setText(message);
     
    // Set the text view as the activity layout
    setContentView(R.layout.activity_message);
    }
     
     
    The id textView2 is correct. Also the layout names.
     
    But when I try to emulate it.. it crashes.
     
    What I´m doing wrong?
     
    Thanks.

     

    Asheesh Arya <asheesharya.cs@gmail.com> Jul 31 11:59AM +0530  

    have you declared your second activity in manifest file!! check it out!!

     

    Winnie Zhang <sunwiny@gmail.com> Jul 30 02:53AM -0700  

    *Hi Nick,*
    *
    *
    *Your code only work for tag. What about the phone detection? Is there a
    way to detect the NFC phone in or lost the field?*
     
    在 2011年8月3日星期三UTC+8上午12时46分33秒,android user写道:

     

    Stefan <stefan.brantweiner@gmail.com> Jul 30 02:46PM -0700  

    Is there a possibility to see if boot loader unlock was successful?
    Mobile: Neo V with Icecream Sandwhich
    Bootloader unlocked due to http://unlockbootloader.sonymobile.com/

     

    Shogun <sshogunn@gmail.com> Jul 30 09:29PM -0700  

    Hello.
    I have worked with Android 4.0 and my application has worked very well. But
    after updating to 4.1 I found that an activity in my application not
    working.
    LogCat shows exception:
    "07-31 09:54:41.008: E/AndroidRuntime(11886):
    java.lang.ArrayIndexOutOfBoundsException: length=244; index=339
    07-31 09:54:41.008: E/AndroidRuntime(11886): at
    android.text.MeasuredText.addStyleRun(MeasuredText.java:168)
    07-31 09:54:41.008: E/AndroidRuntime(11886): at
    android.text.MeasuredText.addStyleRun(MeasuredText.java:204)
    07-31 09:54:41.008: E/AndroidRuntime(11886): at
    android.text.StaticLayout.generate(StaticLayout.java:281)
    07-31 09:54:41.008: E/AndroidRuntime(11886): at
    android.text.StaticLayout.<init>(StaticLayout.java:140)
    07-31 09:54:41.008: E/AndroidRuntime(11886): at
    android.text.StaticLayout.<init>(StaticLayout.java:80)
    07-31 09:54:41.008: E/AndroidRuntime(11886): at
    android.text.StaticLayout.<init>(StaticLayout.java:59)"
     
    My activity contains ScrollView component and I think, that problem in it:
    "<?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >
     
    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal" >
     
    <Button
    android:id="@+id/agreementRejectButton"
    android:layout_width="149dp"
    android:layout_height="wrap_content"
    android:onClick="onRejectButtonClick"
    android:text="@string/agreement_decline" />
     
    <Button
    android:id="@+id/agreementAcceptButton"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:onClick="onAcceptButtonClick"
    android:text="@string/agreement_accept" />
    </LinearLayout>
     
    <ScrollView
    android:id="@+id/scrollView"
    android:layout_width="match_parent"
    android:layout_height="fill_parent" >
     
     
     
    <TextView
    android:id="@+id/agreementTextView"
    android:layout_width="fill_parent"
    android:layout_height="match_parent"
    android:text="" />
     
    </ScrollView>
     
    </LinearLayout>"
     
    Note, that all working in Android 2.3, 3.2 and 4.0. This problem occurs
    only in Android 4.1.

     

    sham gowda <shamkotegowda@gmail.com> Jul 29 11:27PM -0700  

    Dude can you mail me the source code to capture images and to store in SD
    card plz
     
    On Friday, 12 June 2009 20:11:17 UTC+5:30, hanged_man wrote:

     

    android web app <sptabuser@gmail.com> Jul 30 02:00PM -0700  

    I am trying to capture an image using Android Camera Intent. Camera intent
    returns Byte Array and when I saved the byte array as a Bitmap, I am
    getting a very small image instead of getting an Image based on current
    camera settings (1600 Pixels currently set in the android mobile camera).

    Usally i will get the file path from the camera intent after i saved the
    image but somehow the device i currently working is not giving the path so
    i used the below method to create a bitmap from bytes returned from camera
    intent.

    app_camera_intent.jpg --> saved using custome build android application.
    IMG_20120730_143600.jpg --> saved using camera software available in the
    mobile.

    Anybody knows why is this and how to solve this issue. Thanks.
     

     
    The below is the java code block I am using.
     

     
    *private* Intent cameraIntent = *null*;
     

     
    *public* *void* onCreate(Bundle savedInstanceState) {
     
    *super*.onCreate(savedInstanceState);
     

     
    cameraIntent = *new* Intent(android.provider.MediaStore.*
    ACTION_IMAGE_CAPTURE*);
     
    startActivityForResult(cameraIntent, *CAMERA_PIC_REQUEST*);
     

     
    }
     

     
    protected void onActivityResult(int requestCode, int resultCode, Intent
    data) {
     
    super.onActivityResult(requestCode,
    resultCode, data);
     

     
    if (requestCode == CAMERA_PIC_REQUEST) {
     
    if (resultCode == RESULT_OK) {
     
    if ( data != null)
     
    {
     
    Bitmap myImage = null;
     
    Bitmap imageBitmap = (Bitmap) data.getExtras().get("data");
     
    ByteArrayOutputStream stream = new ByteArrayOutputStream();
     
    imageBitmap.compress(Bitmap.CompressFormat.JPEG, 100,stream);
     
    byte[] byteArray = stream.toByteArray();
     
    BitmapFactory.Options options = new BitmapFactory.Options();
     
    myImage = BitmapFactory.decodeByteArray(byteArray,
    0,byteArray.length, options);
     
    fileOutputStream = new FileOutputStream(sPath);
     
    BufferedOutputStream bos = new
    BufferedOutputStream(fileOutputStream);
     
    myImage.compress(CompressFormat.JPEG, 100, bos);
     
    bos.flush();
     
    bos.close();
     
    }
     
    }
     
    }
     
    }

     

    Monty Python <pythonexperiment@gmail.com> Jul 30 02:56AM -0700  

    Greetings everyone!
     
    I'm trying to crosscompile a Native-C application, using only the
    crosscompilers and linkers without ndk-build. After the crosscompilation is
    done, my application seems to launch the following signal (using android
    emulator's strace):
     
    > sigaction(48472, {0xb00144c4, [], SA_RESTART}, {0xb00144c4, [],
    SA_RESTART}, 0) = -1 EINVAL (Invalid argument)
     
    By the way, I haven't found the signal 48472 anywhere, neither in pjsip,
    neither in android-ndk!! Could you please give me an advice? Thanks in
    advance.
     
    M.P.

     

    Nivas Varma <nivasvarma@gmail.com> Jul 30 04:22AM -0700  

    Dear Friends,
     
    I am working in the device management part of the mobile industry. I could
    set up Internet[APN], WAP, MMS, Bookmarks etc over the air
    on to my Android devices [where ever the OMA CP client is developed by the
    OEM]. Now I have new requirement where I need to set up the
    WiFi parameters also over the air from my device management server. As of
    now I am working on Samsung Galaxy S3 and SonyEricsson Neo. I did not see
    any success with the
    XML I have been trying so far.
     
    Can some one provide me the working OMA CP XML for WiFi setup on Android? I
    have tried below 2 XMLs
     
    <wap-provisioningdoc>
    <characteristic type="WIFI">
    <parm name="SSID" value="MFORM"/>
    <parm name="NETMODE" value="INFRA"/>
    <parm name="SECMODE" value="WEP"/>
    <parm name="WEPAUTHMODE" value="OPEN"/>
    <parm name="WEPKEYIND" value="0"/>
    <characteristic type="WEPKEY">
    <parm name="LENGTH" value="128"/>
    <parm name="INDEX" value="0"/>
    <parm name="DATA" value="5F89AE0A3B9D5C1123F81F0A41"/>
    </characteristic>
    </characteristic>
    </wap-provisioningdoc>
     
     
    <wap-provisioningdoc>
    <characteristic type="WIFI">
    <parm name="SSID" value="MFORM"/>
    <parm name="AUTH_ALG" value="OPEN"/>
    <parm name="GROUP" value="TKIP"/>
    <parm name="KEY_MGMT" value="NONE"/>
    <parm name="PAIRWISE" value="NONE"/>
    <parm name="PROTO" value="WPA"/>
    </characteristic>
    </wap-provisioningdoc>
     
    Many Thanks,
    Nivas

     

    Valentin Taranenko <n1n3b1t@gmail.com> Jul 30 02:43AM -0700  

    I'm developing an app, which uses REST api to get data.
    Basically it is something like online cinema app.
    So i have a list of various films,cartoons, tvseries.(json with their
    description, actors and so on)
     
    Now persistence is made with the help of caching json files of each request
    in disc cache for 10 mins. But each time I need to deserialise, parse to
    objects, then send from service to fragment using parcelable.
    So I'm thinking about sqlite. I have some experience using it. But I need
    to store each response only for 10 mins. I dont think that cleaning
    database each 10 mins is a good idea.
    And the second part is an order of films. There are 4 types of sorting,
    which are sorted on the server side, and I cant sort it on mobile, cause I
    dont have these fields if json.
     
    I'm thinking about storing films in sqlite, And storing some files with an
    order of films. Maybe just in some table.
     
    But I think there is some easier solution.
    p.s. sry for my bad english.

     

    mcconnma <mcconnma@gmail.com> Jul 30 10:28AM -0700  

    In the toyvpn example, if i install/run, it prompts the user to accept the
    vpn usage. If I uninstall, and reinstall, the prompt no longer appears. I'd
    like for the prompt to reappear after re-install. What is preventing it
    from reprompting?
    Thanks,

     

    Tai Pham <phvtai@gmail.com> Jul 30 08:26PM -0700  

    I want to use slidingDrawer, when closed, it displays half screen, when open
    it full screen as shown attached. Please help me.
    Thanks!

     

    Trevor Sullivan <pcgeek86@gmail.com> Jul 30 08:22AM -0700  

    Hello Rithanya,
     
    You'll probably want to learn the Java language also. Oracle (formerly Sun
    Microsystems) has some great tutorials on the Java language.
     
    http://docs.oracle.com/javase/tutorial/essential/index.html
     
    http://docs.oracle.com/javase/tutorial/java/index.html
     
    The Android documentation linked by Luiz should also be of great use, once
    you learn the Java language basics. Be prepared to spend a lot of time
    reading and testing!
     
    Hope this helps,
    Trevor Sullivan
     
    On Sunday, 29 July 2012 13:14:29 UTC-5, Rithanya wrote:

     

    MarciAndro <marciandro@schmaili.com> Jul 30 08:26AM -0700  

    Hello!

    I researched for hours but could not find out a serious answer. I want to
    stream audio from a web or streaming server to my Android application. Very
    important point here: It must be a realtime streaming with a minimum of
    latency. Latency must be < 1 second. Sure, Flash streaming is working but a
    lot of Android mobiles do not support Flash. And since Android 4.0 Flash
    isn't supported. I read in another forum that Apple's HLS streaming format
    can be used since Android 2.3 although officially it is only supported
    since 4.0. Can anyone give me some informations about realtime streaming
    for Androids, please?

    Best regards
    Marc

     

    Miky Papa <papamide@gmail.com> Jul 30 05:13AM -0700  

    Hi!
     
    I'm very upset as I am a new Android developer and i've installed Eclipse,
    ADT SDK several times.
    I've been using Eclipse Indigo for a while on a Mac. As the emulater got
    slower and slower every day I've decided to cancel the device and update
    the tools. Then I've updated Eclipse too. Me stupid!
    Eclipse blowed up with an error (something about an incompatibility or
    something). It wasn't possible to start it.
    Well I've cancelled Eclipse and SDK directory and installed everythig from
    the beginning. No errors. Eclipse restarted itself but I cannot find
    Android in the Preference Panel. There is no icon for Andoid on the Tool
    bar also.
     
    Can anyone help me? Maybe I should install a previous version. I've
    installed the very last SDK (20) and Eclipse Classic Juno (maybe 4). I've
    tried even Eclipse for mobile.
    Is there an Eclipse error log to check why it's not loading the plugin?
     
    Thanks,
    Miky

     

    Oscar <oscar.al.mun@gmail.com> Jul 29 11:53PM -0700  

    I developed a native android aplication with Android 2.2 - Level 8, my
    question is: will it work well on android devices with versions 2.3 or
    superior or it will present crashes?

     

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