Hi!
I just noticed a very bad example of using dialog fragments:
http://developer.android.com/guide/topics/ui/dialogs.html#PassingEvents
In the code snippet NoticeDialog holds a _static_ reference to
NoticeDialogListener. This interface is implemented by an Activity.
This can cause memory leaks
The input events are queued. So your case is valid. When you disable a
button there can be already multiple events in the event queue. Sad
but true :(
On 14 October 2012 10:09, Greenhand wrote:
> In my project, I has a layout as follows:
> http://schemas.android.com/apk/res/
> android"
> andr
Read and learn the animation system of Android.
http://developer.android.com/guide/topics/graphics/overview.html
On 6 September 2012 07:24, Haris wrote:
>
> Hai all
>
> For my application I need to create growing arrow from centre of the screen.
> For this application which resources
Kedves Tamás,
It's really strange. What are you doing in your view's constructor? I
view's constructor mostly reads's out the given attributes depending
on the given style. Init some members, like Paint objects, but usually
that's all.
Every "hard" work comes after it's attached to the hierarchy (
Remove exported=false from everywhere.
On 30 July 2012 20:44, Ehsan Sadeghi wrote:
> I write this code in manifest file :
> android:minSdkVersion="8"
> android:targetSdkVersion="15" />
>
> android:icon="@drawable/ic_launcher"
> android:label="@string/app_name
sorry, "an"
On 4 July 2012 19:39, Gergely Juhász wrote:
> Here is any example about showing an alert with dialog fragment.
> http://developer.android.com/reference/android/app/DialogFragment.html
> (Alert Dialog section)
>
> On 4 July 2012 19:36, Simon Giddings wrote:
&
Here is any example about showing an alert with dialog fragment.
http://developer.android.com/reference/android/app/DialogFragment.html
(Alert Dialog section)
On 4 July 2012 19:36, Simon Giddings wrote:
> Within my preferences I give the user control over my image cache, including
> the ability t
If you really what to modify the source code of the ListView (I dont
known why you want) grab the source code and copy to your project. For
instance here is the latest public version of the class:
https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ListView.java
Contact ids are not stable. To address a contact you need a contact
lookup uri. Your can build one or example with this function:
http://developer.android.com/reference/android/provider/ContactsContract.Contacts.html#getLookupUri(long,
java.lang.String)
After you can pass it to the contacts app.
B
Check out this example:
http://developer.android.com/resources/samples/Support4Demos/src/com/example/android/supportv4/app/FragmentTabsPager.html
It is easy to use it the same way with Sherlock Actionbar.
On 18 May 2012 10:37, Live Happy wrote:
> i using the Sherlock_ActionBar in my application a
sorry your = use
On 9 April 2012 01:58, Gergely Juhász wrote:
> Don't do this anyway. Creating global variable? For me it looks to a bad
> and ugly solution.
> If you want persistent data your SharedPreferences.
>
>
> On 9 April 2012 00:28, TreKing wrote:
>
>> H
Don't do this anyway. Creating global variable? For me it looks to a bad
and ugly solution.
If you want persistent data your SharedPreferences.
On 9 April 2012 00:28, TreKing wrote:
> Have you stepped through the code? Is the HahMap valid when you put it in
> the Intent? When you get it back, is
0. Read the docs:
http://developer.android.com/reference/android/telephony/gsm/SmsManager.html
1. Check the official example:
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/os/index.html
2.Set the second argument to null in
sms.sendTextMessage(phoneNumber, "
bytes
On 12 November 2011 14:17, Ólafur Egilsson wrote:
> Does anyone know what the number that AudioTrack.getMinBufferSize()
> returns represents ?
> Is it bytes, shorts, frames, samples, ... ?
>
> see:
> http://developer.android.com/reference/android/media/AudioTrack.html#getMinBufferSize(int,
try commitAllowingStateLoss instead of commit. But read the
documentation carefully.
http://developer.android.com/reference/android/app/FragmentTransaction.html#commitAllowingStateLoss()
On 27 September 2011 23:51, Niek wrote:
>
> I'm getting user reports from my app in the market, delivering the
You mean that this line:
Socket socket = new Socket(serverAddr, SERVERPORT);
throws an io exception?
Did you set INTERNET permission in your manifest file?
Maybe your pc's firewall blocks the connection.
On 10 August 2011 09:34, N K Shrivastva wrote:
> Hi i want tcp-socket connection for connec
http://developer.android.com/resources/articles/contacts.html
On 26 May 2011 23:35, Hitendrasinh Gohil wrote:
> hi,
>
> can anybody provide me good link to read a phonebook entries?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
>
Use the PhoneLookup table for this.
http://developer.android.com/reference/android/provider/ContactsContract.PhoneLookup.html
String phoneNumber = // the given number
1. Make the URI to the contact:
Uri uri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI,
Uri.encode(phoneNumber));
2. Get y
First: these (sms, calendar, email) are not supported by the public API.
What is you problem exactly? (for instance: you got an exeption with some
error msg)
Did you set the read sms permission?
Another tip: you can dump your cursor with the DatabaseUtils dump functions
very easily.
For example yo
You can increase the performance if you reuse the same HttpClient object.
On 18 May 2011 17:48, singalashok wrote:
> Hi Guys,
>
> I am able to post data on the server using HTTPUrlConnection but found
> that it takes almost the same time when i used HTTPClient Class.
>
> Thing is i am not sendi
You could try to use some memory analyzer tool. I use MAT for my project:
http://www.eclipse.org/mat/
Search for google how can you use it with android but here is a good start:
http://biowallet.blogspot.com/2009/04/analyze-android-15-memory-dump.html
On 5 May 2011 14:07, Adam Ratana wrote:
> U
You dont have to create an activity at realtime.
You have to create the view elements of your activity at real time.
Check out for example this:
http://www.brighthub.com/mobile/google-android/articles/48845.aspx
On 28 April 2011 12:51, Mark Murphy wrote:
> On Thu, Apr 28, 2011 at 1:02 AM, Mohit
you can use the fragments with compatibility package.
http://android-developers.blogspot.com/2011/03/fragments-for-all.html
On 6 April 2011 14:08, Laxmi Verma wrote:
> Hi,
>
> I am still facing this issue. Please can somebody help on this.
> The fragment is the feature of Android 3.0 and I am de
Please read first the documentation:
http://developer.android.com/guide/topics/fundamentals/tasks-and-back-stack.html
http://developer.android.com/guide/practices/ui_guidelines/activity_task_design.html
There are more solutions for your problem.
For example when the user presses the "Back A button
I detect the same problem.
It is a bug in the android :(
On 15 March 2011 10:00, Zeljko Devcic wrote:
> I use Nexus 1, and observed that also on other 2.2 device. No other
> app is started when I test it.
>
> On 14 ožu, 20:25, Gergely Juhász wrote:
>> What device do you use
What API did you used than previously worked?
On 14 March 2011 11:14, zameer wrote:
> I am working on app that will auto answer the call programatically,
> but the API for this is not working in Android2.3, by some initial
> investigation came to know that it was removed due to some security
> i
What device do you use exactly?
It can be a device issue, or some king of third party application
messes up something.
On 14 March 2011 08:42, Zeljko Devcic wrote:
> I have observed issue with setting up discoverable time. Namely, I am
> using following intent to start Bluetooth and request obser
sorry for the syntax:
What if you use TextViews instead of using ImageViews?
On 1 March 2011 11:28, Gergely Juhász wrote:
> What is you use TextView instead of using image views.
> TexView has an attribute android:drawableTop. With that you can simple
> draw an image above the text.
ave checked that code.But here he is not displaying any text
> when the Gallery is scrolled.So any solution?Am i missing some API or
> something in the code i sent you.?
>
> On Mar 1, 2:59 pm, Gergely Juhász wrote:
>> what do you think about
>> this:http://www.inter-fuser.co
what do you think about this:
http://www.inter-fuser.com/2010/02/android-coverflow-widget-v2.html
it's a nice cover flow using the gallery
On 1 March 2011 10:41, monty wrote:
> Yes the data displaying is correct.The parsing is fine.The only issue
> is its not working like your app where you are
http://source.android.com/community/index.html
Choose the porting or the platform list maybe.
On 25 February 2011 10:38, Suresh Chandra Pal
wrote:
> Can you share that forum's link.
>
> On Fri, Feb 25, 2011 at 6:34 PM, Zsolt Vasvari wrote:
>>
>> > So please suggest me what should I return from h
As i know you can not create Dialogs from a Service. The Service is
for running in the backgound, not for interact with the user. But you
can create Toaster and Notification from the service. Another solution
is to start an Activity from you Service (you can use a Dialog like
team on the Activity,
g network in the UI thread
> is the infamous ANR. But that is not what he is getting. He is getting
> missing stuff in the uploaded files.
>
> On Feb 11, 3:41 pm, Gergely Juhász wrote:
>> It is a realy bad idea to make network communication in the ui thread.
>> You should
It is a realy bad idea to make network communication in the ui thread.
You should always make net io in a worker thread.
On 8 February 2011 15:45, alex c wrote:
> ello.
> i'm experiencing a problem when uploading images from my android
> application to remote server (apache with php).
>
> devices
http://www.androidspy.com/android-spy-features
http://www.mobile-spy.com/spy_features.html
There are no such features like audio recording in these apps as I see.
On 2 February 2011 19:58, Christian Chabtini wrote:
> so how come mobistealth, androidspy and mobile spy and similar apps
> that work
I think you need root permission for that.
On 14 December 2010 09:54, 袁堂夫 wrote:
> I use jni to open the Framebuffer,but it failed,logcat showed that
> permisson denied.
> how to fix this question? thank you~
>
> --
> You received this message because you are subscribed to the Google
> Groups "A
maybe try to send a startActivity intent for your acitivty
On 10 December 2010 14:14, Colin W wrote:
> I don't believe that android allows this.
> It is rather naughty of an app to force itself to the front.
> It should put a notification into the status bar and let the user decide -
> he/she ma
yeah, it is a known bug:
http://code.google.com/p/android/issues/detail?id=4611
On 3 December 2010 23:59, Douglas Fonseca wrote:
> Hi,
> I'm working on a preference screen to my app. The main preference screen is
> described in a .xml file and in this XML code I declared another
> PreferenceScre
#ACTION_SCAN_MODE_CHANGED
There isn't any EXTRA_PREVIOUS_SCAN_MODE related source code in the
"frameworks/base/core/java/android/server/*.java" files.
Maybe it is a known bug, but i didn't find it in the open issues.
BR
Gergely Juhász
--
You received this message because you are subs
as is remember i use these:
http://forum.xda-developers.com/showthread.php?t=728929
2010/11/13 Kostya Vasilyev :
> Probably need to either download Samsung's drivers for the Tab (is there
> Kies for it?) or hack upnp device id's in the standard driver's inf file.
>
> --
> Kostya Vasilyev -- http:
Just for clarify.
As i understand you want the activity stack to be like this: (The
first is the top of the stack.)
1. Cover activity- Your application
2. Incall activity - Another application
3. Another Activity - Your application
I dont know. It is even possible to do?
On 13 November 2
I think localized error messages are not supported on Android:
http://developer.android.com/reference/java/lang/Throwable.html#getLocalizedMessage%28%29
But your custom formatted error messages could be a good idea.
On 12 November 2010 19:21, Rutton wrote:
> Thanks for your kind explanation.
> T
You should create a broadcast receiver that receives the
NEW_OUTGOING_CALL intent.
You can find the documentation here:
http://developer.android.com/reference/android/content/Intent.html#ACTION_NEW_OUTGOING_CALL
On 11 November 2010 07:38, asadukhan wrote:
> I have to made call in background mean
It's not a bug, but the documentation is a bit short.
Incoming number is provided only at CALL_STATE_RINGING state.
ACTION_PHONE_STATE_CHANGED intent works in the same way:
http://developer.android.com/reference/android/telephony/TelephonyManager.html#ACTION_PHONE_STATE_CHANGED
On 9 November 20
You can register a boradcast receiver for the
android.provider.Telephony.SMS_RECEIVED intent.
Please see this example:
http://davanum.wordpress.com/2007/12/15/android-listen-for-incoming-sms-messages/
On 16 October 2010 14:53, Alex Xin wrote:
> Hi,
> I'd like to implement a feature that monitors
Hi!
As far as i know there is no way to detect when an outgoing call is accepted
at public API level.
I can detect incoming calls (with PhoneStateListener), outgoing calls by
NEW_OUTGOING_CALL intent,
but i can not find a way to distinguish the dialing and connected phone
states.
Am i correct?
B
Pls see the documentation for the solution:
http://developer.android.com/resources/faq/commontasks.html#threading
On 16 October 2010 18:58, chcat wrote:
> I have an Activity with TextView that I am trying to update from
> different thread. To do that i pass TextView to the "updater" thread
> onC
47 matches
Mail list logo