[android-developers] Re: custom attributes in library projects

2012-10-03 Thread joebowbeer
This was fixed in r17. See: http://code.google.com/p/android/issues/detail?id=9656 A new namespace was introduced for use in library projects: http://schemas.android.com/apk/res-auto --Joe On Monday, October 1, 2012 8:03:29 AM UTC-7, Andrew Mackenzie wrote: So, having read the entire

[android-developers] Re: Can I install our app from an APK and then update it with Google Play?

2012-09-15 Thread joebowbeer
Agreed. Pre-installed apps are updated from Google Play all the time, and many rely on this capability. On Saturday, September 15, 2012 7:30:54 AM UTC-7, b0b wrote: On Saturday, 15 September 2012 16:23:21 UTC+2, scadaguru wrote: Yes, if you use same signed package. No, if you use

Re: [android-developers] Issues with SpeechRecognizer on Jelly Bean

2012-08-31 Thread joebowbeer
, joebowbeer wrote: There seems to be a major issue affecting programmatic users of the speech recognition service on Jelly Bean handsets: In particular, users of the RecognitionListener are not receiving results. Seems to me like that'd be a problem in the developer's code... -- You

[android-developers] Issues with SpeechRecognizer on Jelly Bean

2012-08-30 Thread joebowbeer
There seems to be a major issue affecting programmatic users of the speech recognition service on Jelly Bean handsets: http://code.google.com/p/android/issues/detail?id=36679 In particular, users of the RecognitionListener are not receiving results. If anyone is interested, please star this

Re: [android-developers] Re: static vs non-static inner classes

2012-07-20 Thread joebowbeer
Note that there is now an Android Lint check for non-static inner classes that extend Handler. See HandlerLeak: http://tools.android.com/tips/lint-checks I've implemented a Handler.Callback wrapper that wraps the Callback (usually an inner class) in a WeakReference, and I construct the

[android-developers] Re: Activity stack.

2012-04-22 Thread joebowbeer
What happens depends as much on how the post to wall activity is declared in its AndroidManifest, and how it is intended to be used. I suggest you use the documented methods, for example, see Hackbook for Android: http://developers.facebook.com/docs/mobile/android/hackbook/ On Saturday,

[android-developers] Re: Need example on how to use MonkeyRunner from java

2012-04-19 Thread joebowbeer
A similar question was discussed here last year: https://groups.google.com/d/topic/android-developers/rwXy22QBxOs/discussion Also see the more recent blog post by Diego Torres Milano: http://dtmilano.blogspot.com/2012/02/monkeyrunner-interacting-with-views.html On Wednesday, April 18, 2012

[android-developers] Re: Is there any alter native to download internal source code I am need mms source code ..

2012-04-19 Thread joebowbeer
http://androidxref.com/source/xref/packages/apps/Mms/ ? On Friday, April 13, 2012 3:44:47 AM UTC-7, ADB wrote: Hi every one.. Thanks to be here. I am developing MMS application i know there is no official documentation available.but my problem is how can i download internal application of

[android-developers] Re: android.os.StrictMode$InstanceCountViolation

2012-03-04 Thread joebowbeer
The StrictMode source code is available as a download via SDK Manager. Note that the setClassInstanceLimit message you see in the log is faked: // Dummy throwable, for now, since we don't know when or where the // leaked instances came from.  We might in the future, but for // now we suppress

[android-developers] Re: DLL equivalent in android

2012-02-13 Thread joebowbeer
Something more recent posted by Fred Chung, Android Developer Advocate: http://android-developers.blogspot.com/2011/07/custom-class-loading-in-dalvik.html On Feb 13, 5:48 am, Kostya Vasilyev kmans...@gmail.com wrote: Oh, I agree that using those is most likely a bad idea. But, for the

[android-developers] Re: how to distribute a Library Project WITHOUT source code (as jar file) as some sort of SDK?

2012-01-26 Thread joebowbeer
Mark Murphy writes: You have to rewrite your [library] code to avoid using R. values, as they will be wrong. The resource compiler was changed in r14 so that the identifiers in a library project's R.java are no longer declared final. This prevents the constants from being inlined into library

[android-developers] Android codesearch replacement?

2012-01-19 Thread joebowbeer
Now that Google code search is shut down, how are Android developers compensating for their loss of queries like the following? http://www.google.com/codesearch#/exact_package=android http://www.google.com/codesearch#cZwlSNS7aEw/ The announcement(*) says: If ChromiumOS or Android are

[android-developers] Re: Android codesearch replacement?

2012-01-19 Thread joebowbeer
, Morrison Chang morrison.ch...@gmail.com wrote: Using the Android SDK Reference Search Chrome plug-in https://chrome.google.com/webstore/detail/hgcbffeicehlpmgmnhnkjbjoldk... Morrison On Jan 19, 2:36 pm, joebowbeer joe.bowb...@gmail.com wrote: Now that Google code search is shut down

[android-developers] Re: Adding Apache Commons To Android using the Netbeans IDE

2011-12-28 Thread joebowbeer
The relevant SO response is: if ... you are building with ant - just put the jar in your libs folder of your project. Done! The NetBeans Android plugin delegates to the Ant build script when possible. (This is a feature.) On Nov 26, 7:28 am, Sam sam.mclar...@gmail.com wrote: Hi there. I'm

[android-developers] Re: Problems when signing APKs with Java 7.

2011-12-16 Thread joebowbeer
Here is a bug report and patch to Ant's signjar task: https://issues.apache.org/bugzilla/show_bug.cgi?id=52344 More related discussion and proposed workarounds at: http://stackoverflow.com/questions/8036422/android-signing-with-ant Joe On Nov 17, 8:27 pm, Nikolay Elenkov

[android-developers] Re: Android Development Environment?

2011-11-15 Thread joebowbeer
The NetBeans plugin (nbandroid.org) has the most stable support for the new Android SDK Tools (r14+). The support is a fairly thin wrapper on the Ant build script and properties files, but it seems to work, which is more than I can say for the current state of Eclipse with ADT 15. IntelliJ IDEA

[android-developers] Re: Library Projects with Resources to Jar using r14

2011-11-08 Thread joebowbeer
I'm also wondering about this. What is temporary about the jar that is currently created by the r15 tools? Are there any snags involved in just zipping the bin folder of the lib project and distributing that?

[android-developers] FindBugs detector for Android

2011-10-28 Thread joebowbeer
I've shared the beginnings of a FindBugs plugin for Android: https://bitbucket.org/joebowbeer/findbugsandroidplugin To use: hg clone, mvn package, and copy the .jar to your FindBugs plugin folder. Currently, the plugin contains a single detector, which finds (non- static) android.os.Handler

[android-developers] Re: Getting GlobalTime App to run.

2011-10-22 Thread joebowbeer
AndroidGlobalTime was the subject of an early android-developers blog entry, where it was described as a 3D world clock developed by an engineer at Google and may serve as an illustrative example of how to use the OpenGL ES APIs in your Android applications.

[android-developers] Re: Tracking issues in r14

2011-10-22 Thread joebowbeer
I created an issue for the problem I encountered with unit testing library projects: http://code.google.com/p/android/issues/detail?id=21108 A possibly related issue: Unit testing with sdk tools r14? http://groups.google.com/group/android-developers/browse_thread/thread/43380b35b0429b0d Can

[android-developers] Re: Testing a Library Project with SDK Tools r14

2011-10-22 Thread joebowbeer
Reported as: http://code.google.com/p/android/issues/detail?id=21108 On Oct 21, 12:30 am, joebowbeer joe.bowb...@gmail.com wrote: I can't figure out how to test my library project using the r14 tools. I'm using the self-contained project method described at the bottom of Managing Projects

[android-developers] Testing a Library Project with SDK Tools r14

2011-10-21 Thread joebowbeer
I can't figure out how to test my library project using the r14 tools. I'm using the self-contained project method described at the bottom of Managing Projects page: http://developer.android.com/guide/developing/projects/index.html Testing a Library Project [...] You can set up a set up a

[android-developers] Re: how to implement sync using Funambol

2011-10-05 Thread joebowbeer
http://funambol.com/solutions/android.php https://android-client.forge.funambol.org/ On Oct 4, 4:53 am, aparna rani indela@gmail.com wrote: hiii i am implementing android application. In that i nee ti sync the mobile database and online server. i searched in google but i found using

[android-developers] Re: ViewHolder Pattern leaking a Context on retained Fragments

2011-10-05 Thread joebowbeer
As a temporary fix, you can use WeakReference to hold the references to your views without leaking/retaining them. This is similar to the GC-wary use of WeakReference in callbacks and listeners: use WeakReferenceYourObject when you pass your object's reference to another object whose lifetime may

[android-developers] Re: suspend a Thread

2011-10-04 Thread joebowbeer
There is a sample implementation of a PausableThreadPoolExecutor in the ThreadPoolExecutor javadoc. http://developer.android.com/reference/java/util/concurrent/ThreadPoolExecutor.html On Oct 1, 8:42 pm, bob b...@coolgroups.com wrote: How do you suspend a Thread on Android?  I have a background

[android-developers] Re: Getting the actual size of a FrameLayout

2011-09-28 Thread joebowbeer
Acticvity.onWindowFocusChanged( hasFocus == true ) is what I use in the rare cases where I need it. On Sep 28, 6:21 am, Philipp Comans philipp.com...@googlemail.com wrote: Hi, I have a FrameLayout in my Activity of which I need to know the size in pixels at runtime. Although getWidth() and

[android-developers] Re: Activity has leaked IntentReceiver - Are you missing a call to unregisterReceiver() - Sprint Samsung Galaxy s2 (Android 2.3.4)

2011-09-27 Thread joebowbeer
In onCreateOptionsMenu, try returning true instead of calling super and see if that is a workaround. On Sep 24, 5:05 pm, Glorious Red Leader arturothebur...@gmail.com wrote: I have not seen this error on the Droid Bionic, Motorola Photon 4g, HTC Evo 3d, or the Thunderbolt - only on the Sprint

[android-developers] Re: Async Task, rotation and indeterminate progressbar in custom header.

2011-09-26 Thread joebowbeer
I've also solved this problem in the way you've described: by managing the task instance in the application object. This does burden your application implementation with task details that logically are the responsibility of an activity or fragment. In the interest of robustness, though, I do

[android-developers] Re: Async Task, rotation and indeterminate progressbar in custom header.

2011-09-26 Thread joebowbeer
/process instances, you'll need to persist progress in shared preferences or another persistent store. On Sep 26, 2:14 pm, joebowbeer joe.bowb...@gmail.com wrote: I've also solved this problem in the way you've described: by managing the task instance in the application object.  This does burden your

[android-developers] Re: Download and attach andriod source to eclipse

2011-09-12 Thread joebowbeer
You can add Android sources to your Android projects in Eclipse by installing the (unofficial) Android source feature from update site: http://adt-addons.googlecode.com/svn/trunk/source/com.android.ide.eclipse.source.update/ After installing the Android source feature all your existing projects

[android-developers] View.post* methods are not thread-safe

2011-08-09 Thread joebowbeer
I filed a bug regarding inconsistent documentation of the Thread.post* methods: http://code.google.com/p/android/issues/detail?id=19143 I'm fine with always using a Handler, as the View documentation stipulates, but the rest of the View documentation is scattered with error-prone advise to call

[android-developers] Re: View.post* methods are not thread-safe

2011-08-09 Thread joebowbeer
Correction: As the title indicates, I meant to write View.post* methods... On Aug 9, 4:48 pm, joebowbeer joe.bowb...@gmail.com wrote: I filed a bug regarding inconsistent documentation of the Thread.post* methods: http://code.google.com/p/android/issues/detail?id=19143 I'm fine with always

[android-developers] Re: View.post* methods are not thread-safe

2011-08-09 Thread joebowbeer
On Aug 9, 5:00 pm, joebowbeer joe.bowb...@gmail.com wrote: Correction: As the title indicates, I meant to write View.post* methods... On Aug 9, 4:48 pm, joebowbeer joe.bowb...@gmail.com wrote: I filed a bug regarding inconsistent documentation of the Thread.post* methods: http

[android-developers] Re: hprof-conv error

2011-06-22 Thread joebowbeer
Could the hprof you grabbed already have been converted? If the hprof file begins JAVA PROFILE 1.0.3 then it uses the Android extended format, and then you may need to use hprof-conv to convert it to a more standard format before you can analyze it. If it begins JAVA PROFILE 1.0.2 or something

[android-developers] Re: Abrir un fichero html desde aplicación android

2011-05-02 Thread joebowbeer
Es posible hacer lo que quiero Si se puede I found this snippet on stackoverflow: public class ViewWeb extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.webview);

[android-developers] Re: missing last 7 or 8 bytes while writing to file from inputstream?

2011-04-13 Thread joebowbeer
You need to call os.close(), at least. os.close() should call os.flush(). If you don't close or flush, then some of the last bytes written may remain in the output stream's buffer. OutputStream.flush() doesn't do anything because it doesn't buffer anything. On Apr 13, 12:25 am, Hitendrasinh

[android-developers] Re: Preprocess AndroidManifest.xml ?

2011-03-31 Thread joebowbeer
Preprocessing is doable. The downside is that preprocessing is not supported directly by the Eclipse ADT. (Btw, I like the NetBeans preprocessor and its support for configurations, and it would be great to have first-class Android support in NetBeans as well.) But I digress. An option that is

[android-developers] Re: uses-feature glEsVersion

2011-03-30 Thread joebowbeer
I think your uses-feature element is missing the android:name attribute. On Mar 28, 3:54 pm, brian7t7 br...@7twenty7.com wrote: Hi all-- Sorry if this has been addressed--I couldn't easily find anyone else with this issue. Anyway, I'm about to publish my first app.  In the manifest XML,

[android-developers] Re: custom attributes in library projects

2011-03-16 Thread joebowbeer
that is declared in a library projet in multiple applications, I can't answer. Have you tried? What happens when you do it? On Mar 16, 6:26 am, joebowbeer joe.bowb...@gmail.com wrote: What has been fixed and tested? Issue 9656? http://code.google.com/p/android/issues/detail?id=9656 Is it now

[android-developers] Re: custom attributes in library projects

2011-03-16 Thread joebowbeer
, 2011 3:42:58 PM UTC-4, joebowbeer wrote: In my tests with the latest tools, the custom attribute's namespace declaration in the library project needs to match the package declaration of the including project.  Correct? It has to match the package declaration in AndroidManifest.xml

[android-developers] Re: custom attributes in library projects

2011-03-15 Thread joebowbeer
What has been fixed and tested? Issue 9656? http://code.google.com/p/android/issues/detail?id=9656 Is it now possible to declare a custom attribute in a library project and reuse it in multiple apps? If so, what xmlns does one use when declaring this attribute? The namespace of the library,

[android-developers] Re: Error in build.xml using hudson

2011-03-01 Thread joebowbeer
local.properties On Mar 1, 11:26 am, Sunil Lakhiyani slakhiyaniandr...@gmail.com wrote: Hello all, I am building app using hudson, but it throws me an error : *Smartphone/Project1/android/project1/build.xml:49: taskdef class com.android.ant.SetupTask cannot be found* * * Can any one

[android-developers] Re: RecognizerIntent not working; “missing extra calling_package”

2011-01-18 Thread joebowbeer
From what you describe this seems like a doc bug, at least. FWIW, the AOSP implementation sets this as: private static final String EXTRA_CALLING_PACKAGE = calling_package; // ... intent.putExtra(EXTRA_CALLING_PACKAGE, VoiceIME);

[android-developers] Re: APK file package name

2010-12-03 Thread joebowbeer
If you need more information than aapt currently provides, check out Google Code projects android-apktool and dedexer and/or dex2jar. On Dec 1, 5:06 am, Bob Kerns r...@acm.org wrote: Ah, you beat me to the answer, excellent. But when checking my answer, I realized that there's no way that I

[android-developers] Re: IllegalStateException in MediaPlayer (Redux)

2010-11-26 Thread joebowbeer
Do you have an error listener registered? Does it give you more information? According to the state diagram, stop() is not available in all states. Perhaps you're calling stop() in an invalid state, causing the player to transition to the Error state, at which point prepareAsync would fail:

[android-developers] Re: Comping Android APK from commandline (Win32)

2010-11-18 Thread joebowbeer
android create project will generate an ant build script for your project. It's all covered here: http://developer.android.com/guide/developing/other-ide.html I'm currently using Ant and Hudson CI in my automated builder, and Hudson's Android Emulator plugin for automated unit tests. (I'm also

[android-developers] Re: Using onCreateDrawableState

2010-11-17 Thread joebowbeer
Could you achieve the same result extending CompoundButton instead of ImageView? If so, it might be easier to do that. Though I'm not at all sure what you're trying to do. On Nov 16, 9:28 am, Bret Foreman bret.fore...@gmail.com wrote: Leaving aside the lamentable wording of the documentation

[android-developers] Re: Mistake in official Sample ?

2010-11-08 Thread joebowbeer
Reported in March 2008, reviewed and accepted in May 2008, and still in the queue? http://code.google.com/p/android/issues/detail?id=580 Would it help if someone submitted a patch? On Nov 8, 5:29 am, Omie intelom...@gmail.com wrote:

[android-developers] Re: Extending Application class and broadcast receivers

2010-11-08 Thread joebowbeer
Is there any difference in lifetime/scope between a custom Application and a singleton class? My understanding, based on previous postings in this group, is that the class loader (singleton) has the same lifetime as its process, and that a single process may be reused by subsequent instances of

[android-developers] Re: Releasing Updates To My App - Is It Patching Or Replacing?

2010-10-28 Thread joebowbeer
The update replaces the .apk (including assets and resources) but preserves the existing SharedPreferences and database. If you want the updated app to upgrade the existing database, check out the onUpgrade method in SQLiteOpenHelper.

[android-developers] Re: mediaplayer's onCompletionListener never called on playing 3gpp/amr audio files

2010-10-25 Thread joebowbeer
I have observed this and other problems in older versions of the media player (see Issue 398). FWIW, at that time an effective workaround was to create another thread to poll the progress. If the media clip failed to progress during the polling period, then you can assume it completed. Joe On

[android-developers] Re: Accessing Shared Preferences of another Application

2010-10-25 Thread joebowbeer
You can do this if the other application created the shared preferences to be world_readable: SharedPreferences prefs = createPackageContext(com.acme.app, 0).getSharedPreferences(myprefs, 0);

[android-developers] Re: Uploading an app to the Market for testing

2010-10-22 Thread joebowbeer
It would be nice if there were a way to use market filters for this purpose: http://developer.android.com/guide/appendix/market-filters.html The idea being to publish an app that is filtered-out by every handset but your own. The uses-permission filter seems like a potential candidate. I've

[android-developers] Re: Get all images taken by the camera?

2010-10-18 Thread joebowbeer
The native camera app generally behaves like a, well, digital camera, and saves its images to a child folder of the DCIM directory. (DCIM stands for Digital Camera IMages.) You can filter for these images by adding a selector to your query. Something along these lines: MediaColumns.DATA +

[android-developers] Re: isUserAMonkey throws exception

2010-10-18 Thread joebowbeer
DeviceAdminSample in the Android-8 ApiDemos calls this method in some cases. Does this sample work in your installation? On Oct 18, 10:10 am, Bret Foreman bret.fore...@gmail.com wrote: By the way, the isUserAMonkey method is missing from the ActivityManager in the SDK version 8 install I have.

[android-developers] Re: Keeping the monkey out of the preferences

2010-10-12 Thread joebowbeer
The DeviceAdminSample tests if the user is a monkey: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/DeviceAdminSample.html http://developer.android.com/reference/android/app/ActivityManager.html#isUserAMonkey() I'd override onPreferenceTreeClick and/or

[android-developers] Re: Problem with Android WebView-based browsers accessing protected resources through Oracle Access Manager (OAM)

2010-10-06 Thread joebowbeer
Data point: In my experience, embedded WebView browsers are able to SSO successfully using the Higgins SAML IdP. In case you haven't noticed, there's a new method in Froyo for injecting initial headers: loadUrl(url, extraHeaders) Might this help? On Oct 5, 8:45 am, Tim tfland...@gmail.com

[android-developers] Re: Uri from FilePath?

2010-09-26 Thread joebowbeer
start with a simpler example. Gallery3D is not easily modified in this way. On Sep 25, 1:40 am, joebowbeer joe.bowb...@gmail.com wrote: The cooliris Gallery3D code? http://android.git.kernel.org/?p=platform/packages/apps/Gallery3D.git How is the image cursor created? I assume it's obtained from

[android-developers] Re: Uri from FilePath?

2010-09-25 Thread joebowbeer
The cooliris Gallery3D code? http://android.git.kernel.org/?p=platform/packages/apps/Gallery3D.git How is the image cursor created? I assume it's obtained from a MediaStore query. But if you change to a file uri, the MediaStore will no longer handle the query... I think you can obtain the

[android-developers] Re: Android search dialog - SingleTop

2010-09-24 Thread joebowbeer
I see a declaration for .Search but not .MySearchableActivity, so shouldn't your meta-data reference .Search instead? On Sep 23, 3:30 pm, RayMan raysmi...@gmail.com wrote: I'm adding search to my app following the instructions found

[android-developers] Re: Proguard, Android, and the Licensing Server, or...

2010-09-23 Thread joebowbeer
At face value, the blog entry is responding to those on this list who have been asking for help adding Proguard to their build process. Whether Proguard is worth the effort and expense (e.g, maintaining symbol maps for decoding stack dumps) is another matter. Proguard can significantly compact

[android-developers] Re: projecting the Android screen

2010-09-20 Thread joebowbeer
I don't think the Moto Droid does this, but if you have one of the Samsung Galaxy S handsets (Vibrant, Captivate, etc) you can get composite video out (and stereo audio) using a camcorder cable. The HTC Evo has HDMI out. On Sep 20, 10:32 am, DanH danhi...@ieee.org wrote: Some Nokia phones let

[android-developers] Re: Apkbuilder problems with new android SDK tools revision 7

2010-09-17 Thread joebowbeer
I recommend you use the 'android' tool in r7 to generate a new build.xml and then carefully incorporate any pieces from the old script that are needed. Alternatively, the android tool has an option to update an old project. Let us know if that works. On Sep 17, 8:06 am, Claudio Veas

[android-developers] Re: After onActivityResult event State Is Gone (Droid Phones)

2010-09-17 Thread joebowbeer
Using the Application should work in this instance, however, why not use setResult(resultCode, data) to return a result from the child activity? http://developer.android.com/reference/android/app/Activity.html#setResult(int, android.content.Intent) You can add the url to the data (Intent) that

[android-developers] Re: Application-wide resources.. how to achieve?

2010-09-17 Thread joebowbeer
Your singleton's lifetime is that of the process (via its class loader), but a process can be reused, right? That is, can't the same process may be reused for subsequent instances of an application? On Sep 17, 9:28 am, Dianne Hackborn hack...@android.com wrote: A little other perspective:

[android-developers] Re: Mechanism to ensure request comes from my app

2010-09-17 Thread joebowbeer
Keep in mind that other apps can access your app's resources and assets, and in fact anyone can access your apk and obtain anything hidden therein. I wish Android provided a way that a server could determine if a request was generated by some app 'package id' signed by a given key -- but this is

[android-developers] Re: Child activity lifetime in background

2010-09-15 Thread joebowbeer
Have you tried adding alwaysRetainTaskState to your Activity declaration? http://developer.android.com/guide/topics/manifest/activity-element.html#always When this attribute is 'true', users will always return to the task in its last state, regardless of how they get there. On Sep 14, 11:40 pm,

[android-developers] Re: Custom Account / Sync adapter: inability to edit contacts?

2010-09-14 Thread joebowbeer
See http://code.google.com/p/android/issues/detail?id=5988 On Sep 14, 3:09 am, BoD bodl...@gmail.com wrote: So apparently the answer is no... :( BoD On Sep 14, 10:37 am, Kostya Vasilyev kmans...@gmail.com wrote: I believe there was some info on this in the old thread. -- Kostya

[android-developers] Re: Behaviour of launchMode=“ singleTask” not as described?

2010-09-12 Thread joebowbeer
picked up on it? On 11 Sep, 04:30, joebowbeer joe.bowb...@gmail.com wrote: I agree that the documentation is confusing and possibly wrong. For the second behavior, that of discarding the intent and bringing the task with the specified activity to the foreground, you should use singleTop

[android-developers] Re: Behaviour of launchMode=“ singleTask” not as described?

2010-09-10 Thread joebowbeer
I agree that the documentation is confusing and possibly wrong. For the second behavior, that of discarding the intent and bringing the task with the specified activity to the foreground, you should use singleTop instead (despite what the documentation says). On Sep 10, 4:00 pm, Olly

[android-developers] Re: Can android support more than one sdcard?

2010-09-10 Thread joebowbeer
On Sep 10, 2:01 pm, Kostya Vasilyev kmans...@gmail.com wrote: That's the Samsung Galaxy S (GT-I9000) I mentioned earlier in this thread. There are also several carrier-branded versions. Nice handset. 1 million were sold in the US in the first 45 days. Probably 2 million by now. If you avoid

[android-developers] Re: Need to communicate with android browser

2010-09-10 Thread joebowbeer
Aleksander Kmetec describes one method: http://lexandera.com/2009/01/extracting-html-from-a-webview/ Register a custom JavaScript interface, install a custom WebViewClient that overrides onPageFinished, and therein inject a piece of JavaScript code into the page that calls back into your

[android-developers] Re: How to clear static variable values when will i close my application in android

2010-09-01 Thread joebowbeer
There are several alternatives listed at http://developer.android.com/guide/appendix/faq/framework.html#3 I like to maintain global state in a subclass of android.app.Application. I share your concerns about static variables, particularly in Android because the process classloader may outlive

[android-developers] Re: Using Bouncy Castle with an Android app

2010-08-30 Thread joebowbeer
If there's a conflict at runtime then you may not need to include the BC classes yourself. Just add BC to your bootclasspath for building. Seems a bit fragile, though, even if it works... Can you access the needed functionality via the java.security framework? Joe On Aug 27, 3:55 pm, fba

[android-developers] Re: Using Bouncy Castle with an Android app

2010-08-30 Thread joebowbeer
By the way, bouncycastle is currently in libcore: http://android.git.kernel.org/?p=platform/libcore.git;a=tree;f=security On Aug 30, 2:49 pm, joebowbeer joe.bowb...@gmail.com wrote: If there's a conflict at runtime then you may not need to include the BC classes yourself.  Just add BC to your

[android-developers] Re: Using Bouncy Castle with an Android app

2010-08-30 Thread joebowbeer
By the way, the bouncycastle sources are currently in libcore: http://android.git.kernel.org/?p=platform/libcore.git;a=tree;f=security On Aug 27, 3:55 pm, fba chsoftwo...@gmail.com wrote: Has anyone managed to use Bouncy Castle in one of their apps?   I need to be able to do detailed

[android-developers] Re: ATT Samsung Captivate mExternalStorageAvailable == false;

2010-08-19 Thread joebowbeer
I think /sdcard is the external storage root: Environment.getExternalStorageDirectory(). This memory can be unmounted but it can't be removed (without a screwdriver). The removable sdcard is /sdcard/sd. On the Samsung Vibrant (TMO) this 2GB micro is where the Avatar movie is stored and not much

[android-developers] Re: ERROR IN C:\Users\lenovo\Desktop\android-sdk_r06-windows\android-sdk-windowsSDK Setup.exe

2010-08-16 Thread joebowbeer
I've never seen it work for anyone, and I've seen it fail for many. force http is one of the gotcha workarounds that we spell out in our internal wiki for developers setting up the android sdk. On Aug 9, 9:25 pm, Bob Kerns r...@acm.org wrote: Has this (https) ever worked for anyone, ever? On

[android-developers] Re: Compiling and obfuscating by command line...

2010-08-09 Thread joebowbeer
After local.properties, the next problem sounds like your script is missing a setup call. !-- Execute the Android Setup task ... This will ensure that the properties are setup correctly but that your customized build steps are used. -- setup import=false / It's not

[android-developers] Re: Android preprocessor, //#ifdef...

2010-08-04 Thread joebowbeer
Android will generate an Ant build.xml which is fairly easily extended, and the NetBeans Mobility Ant Extensions will run fine outside of NetBeans. So you could insert a target that uses the NetBeans preprocessor to nb- prep the sources prior to compiling.

[android-developers] Re: how to detect if a phone is running HTC sense UI

2010-08-03 Thread joebowbeer
There are also subtle differences in the way some of the standard apps work, such as Contacts (aka People). The handling of Phone contacts is different in HTC Sense, for example. This difference exists whether the HTC Sense Launcher is selected or not. On Aug 3, 10:08 am, Jonas Petersson

[android-developers] Re: Possible to gather application logs at runtime?

2010-07-19 Thread joebowbeer
The Log API writes to a small circular buffer that is shared by all apps. If you want to capture more information, consider a different route, such as java.util.logging, which by default writes to Android's Log, but additional handlers (such as file handlers) can be configured. However, beware of

[android-developers] Re: about library projects

2010-07-08 Thread joebowbeer
A refresh of your dependent project should suffice, rather than a full clean, but it's still a pain. AFAIK this is one of the problems with linked src in Eclipse, and that's what the library projects essentially are. Concerning the .svn checkins, I'd expect that you'd ignore all of bin and gen

[android-developers] Re: notification/broadcast for sent sms

2010-07-05 Thread joebowbeer
Issue 2261 requests this feature: http://code.google.com/p/android/issues/detail?id=2261 Given that the provider is accessible (if permissions are granted), and there is already a change notification and broadcast on reception, I wonder why there isn't a change notification or broadcast when a

[android-developers] Re: https://dl-ssl.google.com/android/repository/repository.xml

2010-07-03 Thread joebowbeer
You are not alone. The https link has never worked for me on Windows. Try http instead of https. That works for me. There's a Setting to force this to happen. Search this forum for similar reports. Also see: http://developer.android.com/sdk/eclipse-adt.html#troubleshooting On Jul 2, 3:31 

[android-developers] Re: User comments available in the developer console!

2010-07-01 Thread joebowbeer
The user comment are is not the same as a support forum, and I wouldn't want to do anything that will make users hesitant to comment. The vitality of the market depends on it. Isn't there already a way for users to initiate two-way communication with the developers? By way of the app's support

[android-developers] Re: Retrieve Image size for HTC devices

2010-06-26 Thread joebowbeer
Is inputStream.available() guaranteed to work in this case? I read that input streams for assets and resources are defined to work in this way, but I wouldn't assume that this also applies to sdcard files. The alternative I'd try is: ParcelFileDescriptor fd =

[android-developers] Re: READ_PHONE_STATE and WRITE_EXTERNAL_STORAGE automatically required?

2010-06-21 Thread joebowbeer
Good coverage at: http://stackoverflow.com/questions/1747178/android-permissions-phone-calls-read-phone-state-and-identity Apps targeting 1.5 will always request these permissions implicitly. But what about apps *targeting* 1.6 whose minSdkVersion includes 1.5? uses-sdk android:minSdkVersion=3

[android-developers] Re: Set result of svnversion to tag android:versionName

2010-06-20 Thread joebowbeer
In an Ant build, you can use replaceregexp to modify the manifest: replaceregexp file=${build.manifest.file} match=android:versionName=\quot;[^\quot;]*\quot; replace=android:versionName=\quot;${svn.revision.max}\quot; / You can pass the svnversion in the Ant command line, or use

[android-developers] Re: Need some Generics Experts inputs

2010-06-09 Thread joebowbeer
ActivityInstrumentationTestCase2 is parameterized by the Activity under test, as illustrated in the tutorial: http://developer.android.com/resources/tutorials/testing/helloandroid_test.html Without parameterization, this base class would not be able to provide a getActivity method that returned

[android-developers] Re: Interdependent Android Projects

2010-05-24 Thread joebowbeer
There is now a Android Library project type in the Eclipse plugin: http://developer.android.com/guide/developing/eclipse-adt.html#libraryProject Library projects are implemented using linked source directories. The apks themselves are not linked:

[android-developers] Re: what is the point of an internal broadcast receiver that is invoked explicitly by its classname?

2010-05-23 Thread joebowbeer
I believe these receivers can also be invoked through pendingIntent.send() See PendingPntent.getBroadcast() On May 20, 8:10 pm, Satya Komatineni satya.komatin...@gmail.com wrote: It is possible to create receiver tag with just a classname and no intent filters. The documentation indicates that

[android-developers] Re: How to fix java.lang.IllegalThreadStateExeception: Thread already started.

2010-05-06 Thread joebowbeer
In standard Java (not specific to Android), I would accomplish this by scheduling a repeating TimerTask on a Timer. Android provides a few other options, including postDelayed and AsyncTask. In this case, I would try to implement the progress indicator using Android's animation framework. Joe

[android-developers] Re: Screen off suspends the Thread

2010-05-06 Thread joebowbeer
This is by design. Time stops for sleeping threads when the handset is not awake. However, the AlarmManager never sleeps -- well, in most implementations:

[android-developers] CalendarSyncAdapter always sending event notifications

2010-05-05 Thread joebowbeer
To those developers who are playing with the unpublished Calendar API, has anyone found a way to workaround the line of code in the CalendarSyncAdapter that forces attendees to be notified when an event is updated? http://android.git.kernel.org/?p=platform/packages/providers/CalendarProvider.git

[android-developers] Re: How to create Android library in Eclipse?

2010-05-05 Thread joebowbeer
Are any of these workarounds compatible with Android test projects? How do you prevent the Android library project, which is used by the instrumented project as well as the test cases, from being added to Test.apk and then failing at runtime with the cryptic class resolved by unexpected dex

[android-developers] Re: Not calling OnStop when an incoming call is received

2010-05-01 Thread joebowbeer
On Apr 28, 8:02 pm, Ned Fox wrote: I have an application that is silencing the ringer while it is open, then when it closes it unsilences it. Currently I am doing these two things in OnStart and OnStop. The only problem (and it's a big one) is that when a phone call comes in, it stops my

[android-developers] Re: About Image taken time in Media Scanner.

2010-04-27 Thread joebowbeer
I think this bug may be related: http://code.google.com/p/android/issues/detail?id=7369 The Camera assigns DATE_TAKEN=currentTimeMillis when it inserts the photo in the MediaProvider, but then the MediaScanner subsequently reads the EXIF info from the photo and updates the DATE_TAKE. Problem

[android-developers] Market update of an app installed from another source?

2010-04-23 Thread joebowbeer
I haven't seen this answered anywhere so I thought I'd ask. Can an app that was installed from an unknown source be updated from the Market? For example, if a private beta is conducted off-market, will the beta users be able to update from the market after the app is published? Or will they

[android-developers] Re: SMSManager deliveryIntent

2010-03-06 Thread joebowbeer
Things to try: 1. Use sentIntent instead of deliveryIntent: .sendTextMessage(5554, null, Example, pi, null); 2. Register the receiver statically in the manifest instead of registering it dynamically at runtime. I don't know when this makes a difference but it seems to in this case. 3. Set

  1   2   >