[android-developers] Consistent Google Play Billing error in TWA/PWA: clientAppUnavailable (Android 13, API 33 and above)

2023-06-21 Thread Joe Puccio


We recently released to our TWA (our app 
)
 
to customers and on day 1 are experiencing a very consistent issue with 
Google Play Billing. When we try to call getDetails() on a SKU as well as 
when we call listPurchases(), we receive a "DOMException: 
clientAppUnavailable", and the promise fails. Here are the tracebacks:

[image: image (4)] 

[image: image (3)] 


We are confident though that Play Services are being initialized:

[image: image (2)] 


After a lot of debugging, our current lead is that the issue may be with 
our Delegation Service. On Android 11, the Delegation Service runs and the 
extra command handler is registered successfully. On Android 13, the 
Delegation Service fails to run and a clientAppUnavailable DOM exception is 
raised. I've attached all of the files we believe are relevant 
(web_app_manifest.json, AndroidManifest.xml, build.gradle, 
DelegationService.kt, manifest-server.json) 
and here is our Javascript for making the purchase: 
https://pastebin.com/raw/qYhpQiBw. 

Here's our device information:

   - 
   
   Device: Galaxy A03s (working)
   - OS: Android 11
   - Browsers Installed: Chrome
   - Browser Versions: Chrome 114.0.5735.131
   - android-browser-helper library version: 2.4.0
   - 
   
   Device: Galaxy S22 Ultra (not working)
   - OS: Android 13
   - Browsers Installed: Chrome
   - Browser Versions: Chrome 114.0.5735.130
   - android-browser-helper library version: 2.4.0
   

Here's a comprehensive list of everything we've tried so far:

   - Clearing the Google Play Store Cache
   - Incrementing the targetSdkVersion in build.gradle from 33 to 34.
   - Ensuring the com.android.vending.BILLING permission is added to 
   AndroidManifest.xml
   - Ensuring that Google Play Services is up to date.
   - Done a line by line comparison with the PWA billing guide (
   https://chromeos.dev/en/publish/pwa-play-billing)


It seems like others have encountered this issue as well, although any fix 
they found did not work for us, and they in general were targeting older 
SDK versions:

   - 
   
https://stackoverflow.com/questions/74154396/why-does-the-digital-goods-apis-getservice-method-reject-with-clientappunavaila
   - clientAppUnavailable from getDetails GoogleChromeLabs/bubblewrap#640 
   (comment) 
   

Thank you so much for any assistance you can provide. We're really excited 
about our new PWA and this is the only major issue we've encountered during 
our conversion from native.


-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/b6b8d20c-8ab0-47d0-a0ff-27a87ab90085n%40googlegroups.com.


DelegationService.kt.gradle
Description: Binary data


build.gradle
Description: Binary data

http://schemas.android.com/apk/res/android;
xmlns:tools="http://schemas.android.com/tools;>













































































https://play.google.com/billing; />










manifest-server.json
Description: application/json


web_app_manifest.json 
Description: Binary data


[android-developers] How do I optimize "Cold start time"? | Newbie - Still learning.

2022-08-12 Thread Joe Hall


I am a brand new Android developer. I have just finished my first app using 
Android Studio. It is a very simple app that displays a special clock 
created in JavaScript. I used WebView to load and display the HTML/CSS/JS 
assets. I learned pretty much all of this on YouTube. 

Everything runs fine on emulators and on my personal device. However when I 
submitted the app bundle to the Play Store the Pre-launch review indicated 
that there was a "Cold start time" for the "Nokia Nokia 1". The biggest 
issue is "Slow Frames" at 42.46%.

I read on a help doc that the most common way to fix Cold start times is to 
optimize the use of onCreate(). My app is super simple can anyone provide 
some insight into how to best optimize the below MainActivity.kt?

package com.clock.ustimezoneclock

import android.os.Bundle

import android.webkit.WebView

import androidx.appcompat.app.AppCompatActivity

import com.clock.ustimezoneclock.R

class MainActivity : AppCompatActivity() {

override fun onCreate(savedInstanceState: Bundle?) {

super.onCreate(savedInstanceState)

setContentView(R.layout.activity_main)

val myWebView: WebView = findViewById(R.id.webview)

myWebView.getSettings().setJavaScriptEnabled(true)

myWebView.loadUrl("file:///android_asset/index.html")

}

}

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/1c7fa1f8-399e-443a-9dbc-597785b7c6b3n%40googlegroups.com.


[android-developers] microsoft support number

2018-03-17 Thread joe root
microsoft support number  Microsoft 
and its suite of products are known to be quality-based in every aspect, 
and more often than not businesses revolve around Microsoft Office suite. 
To the healthy running of not only big businesses but also small businesses 
and home users, it is essential that all systems work in an efficient 
manner. At times you could experience inconveniences or mishaps with any of 
its products or services rendered by this company, and at the same time, 
you could rely on Microsoft Tech Support Service to get your issue resolved 
in an efficient manner. Call us at +1-877-244-0303

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/fde6b348-2e32-4073-9cf1-744c4cbed29c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Native development or ReactNative?

2017-02-08 Thread Joe Philips
Hi everyone, is there any one who developed with react native? What do you 
think about this new framework? Do you think that it is a good choice to 
develop a mobile application or it's better to go with the native 
development? Is it stable enough to be used?

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/b2f44d1f-b80f-49a4-9b59-564b12fab05f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] How to trigger a native Share intent on Android from the web?

2016-08-02 Thread Joe Law
This is the link one year ago that make share intent workable by adding 
browsable: https://paul.kinlan.me/sharing-natively-on-android-from-the-web/ 


Is there any update on the status of share intent? Is it possible to allow 
triggering native share intent without adding BROWSABLE?

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/6125574f-e47f-48b3-b2c1-1e599092ab60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Music streaming via Wifi (DLNA/UPNP)

2016-03-30 Thread Basti Joe
Hi,
I would like to stream music with my android phone via wifi (upnp/dlna) to 
my AV receiver.
I do not understand why this feature is not implemented in android, as 
bluetooth streaming is available.
And rooting my device is no option as i don't want to lose my guarantee.
Comparing to Apple's AirPlay this is a big disadvantage.

Will music streaming via Wifi come up with future android aupdates?

Thanks so far

Basti

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/5f511872-9cc9-461f-9cf4-936bebafd638%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Android UI Design resources?

2015-01-22 Thread Joe Seeley
I'm easily able to find programming resources for Android, but not so much 
on UI design.  I have looked through most of the official Google stuff 
http://developer.android.com/guide/topics/ui/index.html, but haven't seen 
much beyond that.

Are there any really good books or blogs in this area?  I would really like 
something that uses a good design by example and gets into more advanced UI 
development; advanced list views, composing fragments, etc... into a well 
polished design.

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


[android-developers] How long will Android/Google Maps v1 be supported?

2013-12-03 Thread Joe Plante
Hi Folks,

I was just wondering how long we have to migrate apps over to Maps v2 
before Google shuts it off. I am already in the process of updating an app 
to v2, but if there's a date (even ball-parked), it could help with setting 
up deadlines. Thanks.

-- Joe

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


[android-developers] more adapters, or combine similar ones?

2013-02-17 Thread Joe P.
i have some adapters that i use to create listviews that have 2, 3 and 4 
textviews in each row. say i have 2 different objects that both use an 
adapter that creates the row with 4 textviews. should i use the same 
adapter for both objects, or have each object use their own adapter to 
simplify my variable naming conventions?
or does it not make a difference?
Thanks
Joe

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




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

2013-01-20 Thread Joe Bowbeer
The feature that we're awaiting is the .aar binary packaging for libraries,
to be provided by the new build system:

  http://tools.android.com/tech-docs/new-build-system

--Joe


On Sun, Jan 20, 2013 at 9:55 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Sun, Jan 20, 2013 at 12:42 PM, iDeveloper kaplan.d...@gmail.com
 wrote:
  Any news on this issue ?

 Well, so long as the JAR does not contain an R class, you should be
 OK, if that's what you mean. The Google Play Services library project
 is distributed with a JAR instead of source code, and it does not
 contain an R class.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 Android Training in NYC: http://marakana.com/training/android/

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Can't Slide to Unlock Emulators on MacBook Pro

2012-12-10 Thread joe
Hi Nathan

Maybe you have enabled the Use Host GPU option in the emulator settings.
I had the same issue on my MacBook Pro so I disabled this option and the 
emulator worked as expected.

cheers
joe

Am Dienstag, 4. Dezember 2012 19:39:43 UTC+1 schrieb Nathan:

 OK,

 I'm probably doing something wrong with my setup on a MacBook Pro.

 I can create emulators okay.
 I can run them.

 The fun stops there. 

 I cannot drag to unlock. Therefore, I can't really debug or run anything.

 I believe I have done this before when docked, when I had the USB mouse.
 Unfortunately, I am away from home, and this is not working with the 
 trackpad. 
 I've tried different finger combinations and gone into System preferences. 

 I am VERY frustrated.

 Anybody know what I am doing wrong?

 Nathan



-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Notification area: persistent email/gmail icons

2012-11-08 Thread Joe Malin
It's working as intended. It's conservative, in that it shows the 
notification until the user dismisses it, regardless of the supposed 
state of the actual messages.

You can submit a feature request if you want to set the behavior the way 
you want it. Do you have a particular reason to change it?

On Friday, November 2, 2012 4:08:11 AM UTC-7, RafalS wrote:

 Hi!

 Scenario:

- Samsung Galaxy Note
- Android version 4.0.4
- Gmail client online
- Email client online
- another terminal (PC) used as a primary email and gmail reader, 
imap(s) used for synchronization.


 Current behavior, events chronologically:

1. a message arrives to the email or gmail account
2. a new email or gmail notification icon populates the notification 
area
3. primary terminal is used to read (change the message's status to 
read)
4. the read status is synchronized from PC to email or gmail server
5. the new email or gmail notification icon does not disappear 
(despite background synchronization)

 Preferred behavior, events chronologically:

1. a message arrives to the email or gmail account
2. a new email or gmail notification icon populates the notification 
area
3. primary terminal is used to read (change the message's status to 
read)
4. the read status is synchronized from PC to email or gmail server
5. the new email or gmail notification icon disappears as soon as 
Samung synchronizes email or gmail ibox.

 Conclusion: the notification icon is expected to disappear automatically 
 as proposed in pt. 5.

 Await your comments,
 Rafal.




-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Callback MainActivity class from non-Activity extented class

2012-11-08 Thread Joe Malin
The Intent constructor you want is Intent(Context, Class). I usually call 
this as Intent(this, MainActivity.class);

On Tuesday, October 30, 2012 8:54:02 AM UTC-7, Krzysztof K wrote:

 I've a two classes;  MainActivity.java which is Activity extented and 
 CallRec.java which extends BroadcastReceiver (so I can't extend this with 
 Activity class). One of the CallRec.java methods is triggered by system 
 broadcast intent (TelephonyManager.EXTRA_STATE) . All I want to do is send 
 back some data from CallRec to MainActivity to display it. I've tried to 
 send intent from CallRec to MainActivity but Eclipse throws an error: 
 The constructor error Intent(CallReceiver, ClassMainActivity) is 
 undefinied.

 Please help, I'm stuck with it.


-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Retaining a login id in an app

2012-11-08 Thread Joe Malin
It's possible to store the last login ID, but it's not at all recommended, 
because it's a security risk. Whatever client or web app I'm using, I don't 
allow it to store my login ID. I don't let my browser store my passwords, 
either. Users have to type in the password anyway, so having them type the 
login ID is not that much of a burden.

On Tuesday, October 30, 2012 10:18:23 AM UTC-7, Peter Weinberg wrote:

   I am having an app written that requires the user to log in with a 
 login id and password. I want the app to remember the last login id so that 
 the user does not have to retype it every time. My Android developer tells 
 me this cannot be done, but I am skeptical. Does anyone have any 
 views/words of wisdom for me?


-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How can i access Contacts?

2012-11-07 Thread Joe Malin
I think what you mean is I want to access contacts in the order in which 
they were modified or inserted into the provider. 

Unfortunately, you can't do that. That data is not available.

If you provide more information about your application, perhaps someone can 
offer additional help.

On Tuesday, November 6, 2012 2:58:39 AM UTC-8, Prateek Sahu wrote:

 I am developing an application which requires accessing the chronology in 
 which contacts are saved etc...
 can any1 help me in this regard please?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Calling Activity from Service

2012-10-29 Thread Joe Malin
Oooh. Don't call Activities from a Service. If you do that, in essence 
you're popping something to the foreground independent of the user's 
actions, which is a Bad Thing.

Why call Activity B? Can't you do the work in the Service? If you need user 
input, try using an AsyncTask instead of a Service.

It's hard to tell you what the right thing to do is, given that you don't 
say much about what you're trying to accomplish. But *don't* call an 
Activity from a Service.

On Thursday, October 25, 2012 1:28:27 AM UTC-7, Archana wrote:

 Hi, I want to call an Activity A from a Service in Android(and pass some 
 Strings to it). This activity A inturns calls another activity B with 
 startActivityForResult(). Basically, I want my service to wait till the 
 result from activity B is obtained. Please give me some idea of how this 
 implementation can be done(and which flag to set in intent)? 

 Service:
 Intent intent = new Intent(getBaseContext(),ActivityA.class); 
 intent.putExtra(code,script);
 intent.putExtra(type, type);
 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 startActivity(intent);
 ActivityA:
 Intent intent = new Intent(this,ActivityB.class);
 intent.putExtra(code,code);
 intent.putExtra(type, type); 
 startActivityForResult(intent,REQUEST_CODE); 



-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Style does not display in layout editor

2012-10-12 Thread Joe Seeley
I have created a custom style in my values/styles.xml and have set it as 
the default style for my application. 

In a couple of my layouts though, the layout editor does not show the style 
being applied within the layout editor which makes it difficult when trying 
to create my layout.  When I run the app it is correctly applied.  Is there 
something I can do to ensure that it will show up in the layout editor as 
well?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] trying to replace fragment from OK button on alertDialog.

2012-09-12 Thread Joe P.


so i have a two fragment layout, left fragment is a ListFragment, and the 
right is my displayfragment. I click an item on the left to change the 
display on the right. at one point i open up a Alertdialog box, when the OK 
button is clicked, i'm trying to either remove the current display 
fragment, or at least replace it with a blank one. I'm a Java Noob, so 
please help me get this working. currently i have this method in my main 
activity class:

public void clearPreview() {
RightFragment details = (RightFragment)
   getFragmentManager().findFragmentByTag(SUBMIT_TAG);

}

i'm calling this method from another class using:

   MainActivity sr = new MainActivity();
   sr.clearPreview();

and even though the fragment exists, details is still coming up null, why? 
I've even used:

public void clearPreview() {
RightFragment details = (RightFragment)
   getFragmentManager().findFragmentById(R.id.detailfragment);

}

Any help will be greatly appreciated! Thanks

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Jelly Bean 4.1.1 caused MediaPlayer to fail

2012-07-26 Thread Joe
Yes, you are absolutely right.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Jelly Bean 4.1.1 caused MediaPlayer to fail

2012-07-19 Thread Joe
Hi!

I found the solution by changing 

File root = Environment.getExternalStorageDirectory(); 

for

File root = Environment.getExternalStorageDirectory().getAbsolutePath(); 

It works at last!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Jelly Bean 4.1.1 caused MediaPlayer to fail

2012-07-19 Thread Joe


 Hi!


I have a similar problem with Android 4.1.1 on phone.

My application stores and reads files on SDCARD.
To access SDCARD, I use Environment.getExternalStorageDirectory().
My application already has write to external storage permission. 

Everything works fine on 4.0.4 and all others Android versions.  

By the way, my application works fine  with Android 4.4.1 emulator on 
Eclipse.

What happens on  phone?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Android logcat / strings security

2012-07-10 Thread Joe Plante
I do like using Logcat for some tracing, but I want to make sure I'm not 
exposing my users to security issues. Of course Logging shouldn't involve 
user names and passwords. However, I took a session with a security expert 
saying that the wrong Logcat statements could help with hackers/crackers.

Basically it says that anything in quotes might not be obfuscated, making 
it easier for them to spot where things happen. So, 
Log.i(getClass().getName(), Sending off the codes to the Nuclear 
warheads); 

would give them a clue. Obviously I wouldn't do that; it's just an example. 
What are good ways to keep the Logging and/or strings secure?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: adk 2012 / usb accessory not connecting

2012-07-10 Thread Joe
Hey Doug,

What problems did you run into using the Mac IDE for the ADK2? I just 
finished installing the ADK IDE and managed to upload the clock sketch. I'm 
using a Mac Air with OS X v10.6.8.

Couple of things I found that were a little tricky:

   1. For some reason, my Mac's Java installation got hosed recently and I 
   had to update to Java 1.6.0_33. After the update my Arduino IDEs (along 
   with the ADK 2012 IDE) started working again. Prior to that update, I 
   couldn't even get the IDE to run, error: No compatible version of Java 
   1.5*
   2. Make sure to you plug into the Computer micro USB port (not the 
   Phone port)
   3. Choose the correct serial port in the IDE, *Tools  Serial Port* (my 
   Mac Air gave me 6 options) the correct port was /dev/tty.usbserial-XXX
   4. Choose the board *Tools  Board  Google ADK2*, otherwise the sketch 
   won't even compile.


On Wednesday, July 4, 2012 11:39:29 PM UTC-7, Doug wrote:

 This isn't the right place for ADK discussion, but as far as I can tell, 
 there is no place set aside for it!

 I killed a lot of today trying to get the 2012 ADK to work and was mostly 
 frustrated.  I'm on a Mac and I found the IDE installation instructions 
 very much do not work and I could not manipulate it into building and 
 flashing a working image at all.

 On the command line, I had to jump through hurdles to get the clock demo 
 to build and deploy.  In the end, I could not get recommended bossac 
 downloaded from sourceforge to work at all.  Eventually I had to bypass the 
 given scripts and reached into the Mac IDE app package to use its bossac to 
 deploy a working image.

 All things considered, I'm very disappointed in the usability of the tools 
 that were provided for the 2012 ADK (at least for macosx) and I wish I knew 
 where to go to remedy this.  Otherwise I pretty much give up now.

 Doug

 On Saturday, June 30, 2012 12:28:31 PM UTC-7, michael wrote:

 Testing the new adk2012 and having a few issues. I have  uploaded the 
 usbaccessory sketch, and installed the adk2012 app to the nexus 7. Then I 
 connect the adk  nexus with usb, expecting the adk2012 app to be 
 recognized as an appropriate usbaccessory, but it doesn't and nexus reports 

 Connected as a media device
 USB debugging connected
 Connected to a USB accessory

 Another question, how can I run adb from my android device while it is 
 simultaneously connected to my arduino kit? I was optimistic that it would 
 channel through the arduino and proxy to my pc, but that clearly isn't 
 happening :) ... ADB over bluetooth?

 Thanks,
 Michael




-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] ConcurrentModificationException in GLSurfaceView, no stack trace or message...

2012-03-25 Thread Joe Hanvy
I'm getting a ConcurrentModificationException in GLSurfaceView which
stops my openGL android app. During running the app stops and switches
to GLSurfaceView, the stack trace shows that the GLThread has been
suspended (exception ConcurrentModificationException).

e   ConcurrentModificationException  (id=830008594488)
cause   ConcurrentModificationException  (id=830008594488)
detailMessage   null
stackState   (id=830008594520)
stackTrace  null

It has no stack trace, or message. I have no idea how to go about
tracking down where the problem is... The only way I can stop it is to
stop drawing. Has anyone got any tips?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Emulator errors in SDKControllerLib

2012-03-23 Thread Joe Banana
Go to Project Properties - Java Compiler and set compiler compliance
level to 1.6 or 1.7 depending on the jdk Version you have installed.

On 22 Mrz., 08:45, kingtut elzoha...@gmail.com wrote:
 I am trying to get the hardware 
 emulationhttp://tools.android.com/tips/hardware-emulationworking with the 
 new SDK, but when I add the SDKControllerLib and the
 SDKControllerSensorActivity projects I keep getting the following error:

 *The method run() of type new Runnable(){} must override a superclass
 method*

 With every run() method in all runnables.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Questions about detecting memory leaks for Android native code

2011-11-28 Thread Joe
Hi guys,

I've tried to get to know about how to detect memory leaks for Android
native code these days, but it's failed again and again. I've followed
steps on http://elinux.org/Android_Memory_Usage, and my steps were
listed below:
 1. adb shell setprop libc.debug.malloc 1
 2. adb shell stop
 3. adb shell start

At first, I tried it on Emulator, whose build version is Android 2.3.
There are following three .so files related with libc in the /system/
lib directory of Emulator.
 libc.so
 libc_malloc_debug_leak.so
 libc_malloc_debug_qemu.so

Step(1) was succeeded, and I can get [libc.debug.malloc]: [1]
through command adb shell getprop.
After step (2), all buttons on the Emulator were unclickable.
And then, step(3) was executed. After that, it seems that Emulator was
restarted, but it stayed at the page with big Android and the
Android UI was never shown up.

Ast last, I rooted my Nexus One with Android 2.3.6, and repeated those
three steps. But I got the following problems.
1. No libc.debug.malloc item after step(1) when I checked it
through adb shell getprop.
2. No any response after step (2)  (3).

Btw, there were no files libc_malloc_debug_leak.so and
libc_malloc_debug_leak.so in the /system/lib directory.

Is there anyone got to know the reason about my problem? Meanwhile, if
I want to detect memory leaks on my Nexus One, what should I do? If
the native code is C++ instead of C, is there any difference for the
steps?

Can you guys share your any experience about memory leaks on Native
code with me? Since I didn't get more useful resources from Google.

Thanks,
Joe


-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Want to use Unlock Pattern in my Android App

2011-09-26 Thread david joe
I am making an Application for Deals.I want to use unlock pattern
screen and Slidding Lock in my app.
I want to use this to unlock a deal.Every Deal is set with a defined
unlock pattern and this pattern is matched with the pattern for Deal
which confirms user deal.
Can any tell me how to use this unlock screens in our app.

Thanks and Regards
David

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Is it possible for a WebView select element to show a Spinner title?

2011-09-09 Thread Joe Hudson
Hello,

I would like to know if I can show a title like that from the Spinner using 
HTML with a select element.  I've tried the obvious (title attribute) with 
no luck.  I'd appreciate the help.  Thanks.

The title I'm referring to can be seen in the following image:

http://www.google.com/imgres?q=android+spinner+imagehl=ensa=Xbiw=1238bih=683tbm=ischprmd=ivnstbnid=xY51OqXuE20HNM:imgrefurl=http://chrisblunt.com/2011/03/01/android-spinner-like-ui-for-selecting-multiple-options/docid=o40PdK7MxWjGXMw=480h=338ei=T9doTs6qM83pgAfkoYT0DAzoom=1iact=hcvpx=195vpy=383dur=2750hovh=188hovw=268tx=78ty=157page=2tbnh=154tbnw=218start=32ndsp=18ved=1t:429,r:0,s:32

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] how to prevent select element option text from overflowing to down arrow in WebView

2011-09-09 Thread Joe Hudson
Hello,

I'm using a WebView to display html content within an android app.  I've got 
a select element (dropdown) that has an option with text that is longer than 
the element itself.  In this case the text goes past the separator line and 
into the right part where the down arrow is.

Is there any CSS that can be used to prevent overflow past the separator 
line?  I have tried different variations of overflow and text-overflow with 
no luck so far.

Any help would be greatly appreciated.  Thanks!

Joe

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] is there any way to clip select element option text in a WebView

2011-09-09 Thread Joe Hudson
Hello,

I have a WebView displaying html.  A dropdown box (select element) shows 
option value text fine but if the text is too long, it will render past the 
divider line and over to the right where the down arrow is.

Is there any CSS attribute that would allow me to clip the text at the 
divider line?

Thanks very much.

Joe

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Compiling Android jars that respect @hide

2011-08-18 Thread Joe Moore
Does anybody know how to compile Android jars that keep their real
implementations (no Stub! exceptions) but respect the public API by
hiding the @hide annotated entities? Perhaps they are already output
by the build and I just need to know where they were?

I needed access to the real Android jars with actual implementations
for work we are doing on the Robolectric android testing framework
(http://robolectric.org). I built android and harvested classes.jar
from out/target/common/obj/JAVA_LIBRARIES/framework_intermediates.

But, I see that these jars still have many public entities that would
normally be hidden because they have the pseudo-annotation of @hide.
This makes it hard to use these jars; for example subclasses often are
forced to implement abstract methods marked @hide. Ideally we would be
able to switch between using SDK jars and real-jars depending on the
scenario, but this is hard because they have different public APIs.
Thanks in advance!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Compiling Android jars that respect @hide

2011-08-18 Thread Joe Moore
I'm cross-posted. I was getting crickets over there.

On Aug 18, 12:10 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Thu, Aug 18, 2011 at 12:00 PM, Joe Moore joe.mo...@gmail.com wrote:
  Does anybody know how to compile Android jars that keep their real
  implementations (no Stub! exceptions) but respect the public API by
  hiding the @hide annotated entities? Perhaps they are already output
  by the build and I just need to know where they were?

  I needed access to the real Android jars with actual implementations
  for work we are doing on the Robolectric android testing framework
  (http://robolectric.org). I built android and harvested classes.jar
  from out/target/common/obj/JAVA_LIBRARIES/framework_intermediates.

  But, I see that these jars still have many public entities that would
  normally be hidden because they have the pseudo-annotation of @hide.
  This makes it hard to use these jars; for example subclasses often are
  forced to implement abstract methods marked @hide. Ideally we would be
  able to switch between using SDK jars and real-jars depending on the
  scenario, but this is hard because they have different public APIs.
  Thanks in advance!

 You'll probably have better luck with this question over on one of the
 Google Groups listed athttp://source.android.com, since building the
 firmware/SDKs is the province of that site.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Custom drawable not showing

2011-07-27 Thread joe
The application that I'm working on requires me to extend drawable and
then place this custom drawable inside an ImageView for displaying.
I've simplified my code as much as possible but still I only get a
black screen.

The draw() method of my drawable class is:

public void draw(Canvas canvas) {
setBounds(0,0,150, 150);
p.setColor(Color.WHITE);
p.setStrokeWidth(5f);
p.setStyle(Paint.Style.STROKE);
p.setAntiAlias(true);

canvas.drawLine(10, 50, 100, 50, p);
}

And the activity is:

public void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

GraphViewDrawable graphViewDrawable = new
GraphViewDrawable();

myLin = new LinearLayout(this);
image = new ImageView(this);

image.setImageDrawable(graphViewDrawable);
myLin.addView(image);

setContentView(myLin);

}

Why is nothing shown?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Unable to Hboot on HTC MyTouch

2011-07-25 Thread Ravel Joe Franco Abreu
i can't access to hboot, the phone only show the intro screen
help me please

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Ping a Bluetooth device from an Android device

2011-07-05 Thread Joe Fernandez
I would like to know if a Bluetooth device given its MAC address is
available (on and within reach) or not. Something like a ping
(l2ping), some quick method.

I tried to check by trying to establish a connection but it takes too
much time as well as doing a discovery process. Do you know any faster
way?


Thanks,

Joe

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Proguard can´t access my project

2011-06-17 Thread Joe
Hi,

i have created a android App and compiled it with proguard. Thats ok
and works fine.
Now, i want to create a demo version of my app. So i have copied my
project in eclipse und renamed the application context. If i compiling
the project, following error occurs:
[2011-06-17 14:36:01 - App Demo] Proguard returned with error code 1.
See console
[2011-06-17 14:36:01 - App Demo] Error: E:\Develepmont\Java\App
(Access denied)

The error message shows the path of the full version of the app, and
not the demo one. The path of the demo is E:\Develepmont\Java\App
demo.
Where i can switch this property to the correct path? The project
properities are all correct. My entry in default.properties is
proguard.config=proguard.cfg

Thanks and regards,
Joe

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to relocate AutoCompleteTextView's dropdown window to ListView?

2011-06-07 Thread Jerry Joe
I'd like to create an AutoCompleteTextView, and make its dropdown
items to be rendered in one separate ListView. This is just like
Google's instant search page.

I tried the following ways to do, but failed:
1) in inherited class of CursorAdapter, override method newView() to
append view item to ListView.
public View newView(Context context, Cursor cursor, ViewGroup
parent) {
LayoutInflater inflater =
(LayoutInflater)context.getSystemService(LAYOUT_INFLATER_SERVICE);
TextView view =
(TextView)inflater.inflate(android.R.layout.simple_dropdown_item_1line,
mListView, true);
return view;
}
But finally I got unsupportedOperationException, because after the
adapter being set, adding new views to the ListView is prohibited.

2) call method mAutoTextView.setDropDownAnchor(R.id.memo_listview) to
anchor the dropdown list to the ListView. But after test, I found that
the dropdown list is not rendered in the ListView, but floating at top
of the AutoCompleteTextView.

Please help me on this or just give me some tips. Thanks!

-- Jerry Joe

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] removeProximityAlert()

2011-05-30 Thread Joe
Hi,
i have a class with 1 ProximityAlert.
The Alert himself just works fine. In my destructor, i remove the
alert with the same pending intent, as registered.
locationManager.removeProximityAlert(proxyIntent);
This seems to be ok - the intent doesnt fire again. But, the GPS-icon
doesnt dissapear and my android device is losing a lot of power.
(testing on a real device, not emulator)
Why the GPS don´t turn off?
thanks.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Android: connectivity issues in background thread after alarm when “always-on” turned off

2011-05-11 Thread Joe
Problem description:

In my android App, I experience connectitity issues when doing a
remote HTTP
(polling) call from an AsyncTask that was started after an alarm
went off.

The lookup works very well when the standard Android setting Enable
always-on
mobile data (Settings - Wireless  networks - Mobile networks) is
turned
to on.

Solution that works: alarm goes of, Android Service receives an
alarm intent,
starts a background thread (AsyncTask). The new thread acquires a
partial wake
lock, establishes the connection (polling), notifies the user and
releases the
wake lock.

So far, so good. The issue is that, when always-on is turned off,
the polling fails most of the time if
the phone was in standby for a while ( 30 min).

Since the polling thread sends a notification, I directly get feedback
on the
unsuccessful polling attempt.

Motivation:
---
A lot of users turn of always-on to reduce battery drain. So, it's
likely
that an app users run into issues. I want to handle or prevent the
errors that users will face.

Solution attempts:
--
I have experimented a lot without any major break-through:

- multiple retries and intermediate sleeps to give the phone some time
to establish the connection
- http parameters (timeouts, etc.)
- different HttpClient (Apache)

Questions:
-
- What excactly does the setting always-on mean and what do
developers have to regard?
- I am wondering if it is generally possible to implement an alarm-
based polling mechanism that is able to establish a data connection
even if always-on is
turned off.
- Are there any alternative solutions (no C2DM possible)?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to remove the icon when this app has been set disabled.

2011-04-13 Thread Joe
Hi,
I use setComponentEnabledSetting function to disable the application
(state =  COMPONENT_ENABLED_STATE_DISABLED), but the icon of this
application still retains on app drawer. How can I remove the icon
when I use setComponentEnabledSetting function to uninstall the
application?
Thanks.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: OpenGL rendering blank with min SDK set

2011-03-30 Thread Joe Bain
Thanks that worked. Do you know what the reason for this behavior is?

On 29 March 2011 05:41, Nightwolf mikh...@gmail.com wrote:

 Do you use textures and store images in res\drawable?
 Try storing them in drawable-nodpi.

 On Mar 28, 12:42 am, joe bain mrjoeb...@gmail.com wrote:
  Hi all,
 
  I'm about to release a game and have been developing without a min sdk
  version set in the manifest. The game uses opengl in a GLSurfaceView
  but now I have set a min sdk version the opengl part is completely
  white. The game overlays some standard android widgets which still
  appear fine and work.
 
  Does anyone know why changing the min sdk requirement would affect the
  opengl rendering? I can find no errors in the logs and I'm really at a
  loss to work out what is happening here.
 
  Thanks,
 
  Joe

 --
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] OpenGL rendering blank with min SDK set

2011-03-28 Thread joe bain
Hi all,

I'm about to release a game and have been developing without a min sdk
version set in the manifest. The game uses opengl in a GLSurfaceView
but now I have set a min sdk version the opengl part is completely
white. The game overlays some standard android widgets which still
appear fine and work.

Does anyone know why changing the min sdk requirement would affect the
opengl rendering? I can find no errors in the logs and I'm really at a
loss to work out what is happening here.

Thanks,

Joe

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Are you submitting your app to more than just the Android Market?

2011-03-02 Thread Joe
Just got in on Amazon. May give getjar a try.

On Mar 1, 9:39 am, Chris Stewart cstewart...@gmail.com wrote:
 Now that I'm working on my seasonal app for the 2011 season, I'm wondering
 if any of the 3rd party markets are gaining traction with other developers.
  Are any of you submitting to the Amazon market, or any others?  What are
 your plans for these 3rd party markets?

 --
 Chris Stewarthttp://chriswstewart.com

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Incorrect RowId with SQLite using FTS3 on Android 2.2

2011-02-24 Thread Joe
Yeah I've read the docs, so I don't expect them to be unique, but I do
expect them to be correct.
By them not correct, I mean that in the database 4 does not exist yet
4 was returned.

Not using FTS3, just a normal table, everything works as expected.

I don't know what you mean by export. The insert is being executed
with the Android SQLiteDatebase insert method. I don't have anything
that updates the id and the id is incorrect at the point it was
returned from the insert method.

I have tested this on 2.1 and 2.3.1 and the same thing occurs.

I am using the method as done in the Notepad sample where an empty row
is inserted in the onCreate() method and then updates are done in
onPause(). Curiously, I have not seen any other code that does this
with FTS3. The SearchableDictionary sample does not care about the id.
However, in this method having the correct id (so we can update the
record) is pretty critical.

On Feb 22, 8:12 pm, Bret Foreman bret.fore...@gmail.com wrote:
 According to my reading of the SQLite docs, the rowid is guaranteed to
 be monotonically increasing but NOT sequential. And I would be
 suspicious that your export is renumbering the rowids as part of the
 export process.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Incorrect RowId with SQLite using FTS3 on Android 2.2

2011-02-23 Thread Joe
Did some more testing with other versions of Android  (2.1 and 2.3.1)
and had the same results. Although with 2.1 the inserts returned 1, 3
(skipped 2).

Is  anyone using full text search on Android?  Is this a bug in
Android?

I am completely stumped and could really use some help.

I found someone else on stackoverflow that looks to be having the same
problem.
http://stackoverflow.com/questions/3123156/sqlitedatabase-insert-returns-incorrect-rowid-for-virtual-tables

Thanks,
Joe

On Feb 22, 9:12 am, Joe jyoung1...@gmail.com wrote:
 I am experiencing an incorrect rowid value with sqlite and fts3.

 Basically, the first two rows are inserted and the rowId is 1 and 2
 respectively. The third insert however returns 4 instead of 3.

 I dropped the following log message in my contentprovider when
 inserting a row:

     SQLiteDatabase database =
     databaseHelper.getWritableDatabase();
     long rowId = database.insert(NOTES_TABLE, Note.NOTE, values);
     Log.d(NoteProvider, RowId inserted was  + rowId);

 The output of that log message is:

     02-21 21:10:12.773: DEBUG/NoteProvider(2486): RowId inserted was 1
     02-21 21:10:20.623: DEBUG/NoteProvider(2486): RowId inserted was 2
     02-21 21:10:25.883: DEBUG/NoteProvider(2486): RowId inserted was 4

 So what happened to 3?

 Also, I exported the sqlite database so I could look at in a SqLite
 browser and the content table shows 1, 2 and 3.

 So 3 was created but 4 was returned.

 I ran my testing up to 10, and the rowId was sequential afterwards,
 but still off by 1.

 The database create script is:

     database.execSQL(CREATE VIRTUAL TABLE  + NOTES_TABLE + 
     USING fts3 (
                + Note.TITLE + , 
                + Note.NOTE + , 
                + Note.CREATED_DATE + , 
                + Note.MODIFIED_DATE + ););

 I am assuming I have done something horribly wrong, but cannot figure
 out what it is.
 Can anyone help me out?

 ** This is a repost of my question on 
 stackoverflow.http://stackoverflow.com/questions/5078788/incorrect-rowid-with-sqlit...

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Incorrect RowId with SQLite using FTS3 on Android 2.2

2011-02-23 Thread Joe
Is this thing working? I posted a couple times now and nothing has
showed up.

On Feb 22, 9:12 am, Joe jyoung1...@gmail.com wrote:
 I am experiencing an incorrect rowid value with sqlite and fts3.

 Basically, the first two rows are inserted and the rowId is 1 and 2
 respectively. The third insert however returns 4 instead of 3.

 I dropped the following log message in my contentprovider when
 inserting a row:

     SQLiteDatabase database =
     databaseHelper.getWritableDatabase();
     long rowId = database.insert(NOTES_TABLE, Note.NOTE, values);
     Log.d(NoteProvider, RowId inserted was  + rowId);

 The output of that log message is:

     02-21 21:10:12.773: DEBUG/NoteProvider(2486): RowId inserted was 1
     02-21 21:10:20.623: DEBUG/NoteProvider(2486): RowId inserted was 2
     02-21 21:10:25.883: DEBUG/NoteProvider(2486): RowId inserted was 4

 So what happened to 3?

 Also, I exported the sqlite database so I could look at in a SqLite
 browser and the content table shows 1, 2 and 3.

 So 3 was created but 4 was returned.

 I ran my testing up to 10, and the rowId was sequential afterwards,
 but still off by 1.

 The database create script is:

     database.execSQL(CREATE VIRTUAL TABLE  + NOTES_TABLE + 
     USING fts3 (
                + Note.TITLE + , 
                + Note.NOTE + , 
                + Note.CREATED_DATE + , 
                + Note.MODIFIED_DATE + ););

 I am assuming I have done something horribly wrong, but cannot figure
 out what it is.
 Can anyone help me out?

 ** This is a repost of my question on 
 stackoverflow.http://stackoverflow.com/questions/5078788/incorrect-rowid-with-sqlit...

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Incorrect RowId with SQLite using FTS3 on Android 2.2

2011-02-22 Thread Joe
I am experiencing an incorrect rowid value with sqlite and fts3.

Basically, the first two rows are inserted and the rowId is 1 and 2
respectively. The third insert however returns 4 instead of 3.

I dropped the following log message in my contentprovider when
inserting a row:

SQLiteDatabase database =
databaseHelper.getWritableDatabase();
long rowId = database.insert(NOTES_TABLE, Note.NOTE, values);
Log.d(NoteProvider, RowId inserted was  + rowId);

The output of that log message is:

02-21 21:10:12.773: DEBUG/NoteProvider(2486): RowId inserted was 1
02-21 21:10:20.623: DEBUG/NoteProvider(2486): RowId inserted was 2
02-21 21:10:25.883: DEBUG/NoteProvider(2486): RowId inserted was 4

So what happened to 3?

Also, I exported the sqlite database so I could look at in a SqLite
browser and the content table shows 1, 2 and 3.

So 3 was created but 4 was returned.

I ran my testing up to 10, and the rowId was sequential afterwards,
but still off by 1.

The database create script is:

database.execSQL(CREATE VIRTUAL TABLE  + NOTES_TABLE + 
USING fts3 (
   + Note.TITLE + , 
   + Note.NOTE + , 
   + Note.CREATED_DATE + , 
   + Note.MODIFIED_DATE + ););

I am assuming I have done something horribly wrong, but cannot figure
out what it is.
Can anyone help me out?

** This is a repost of my question on stackoverflow.
http://stackoverflow.com/questions/5078788/incorrect-rowid-with-sqlite-using-fts3-on-android-2-2

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Playing RTSP or m3u with MediaPlayer

2011-02-16 Thread Joe
I have seen conflicting reports about this, but at least one which
says it's possible.  My code looks like the following (although I've
tried a different method with the same results:

MediaPlayer player = new MediaPlayer ();
if (player != null)
{
try
{
Log.d (TAG, Player created.);
player.reset ();
player.setDataSource (URL);
player.prepare ();
player.start ();
}
catch (Exception e)
{
Log.d (TAG, Exception:  + 
e.getLocalizedMessage ());
}
}

I've used two different URLs that look like:

rtsp://site.com/stream.sdp
http://site.com:3000/stream.m3u

In all cases (both in emulator and on HTC Evo) prepare() throws an
exception (status=0x1).  Anyone know what's going on?

Thanks,
Joe

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Camera Access through WebView

2011-02-16 Thread Joe McCann
Camera INTENT is available thru the WebView with Phonegap.

However, if you want a *custom* Camera (SurfaceView) you'll need to
write it natively.  You could probably attempt to build the bridge to
the WebView with your custom Camera but is certainly a non-trivial
exercise.

On Feb 16, 2:50 am, sogan xie soga...@gmail.com wrote:
 Some links. 
 FYI.http://www.quora.com/How-can-a-HTML5-web-app-access-Camera-in-mobile-...http://scobleizer.com/2009/12/16/iphone-developers-abandoning-app-mod...http://www.h-online.com/open/news/item/HTML5-Access-to-cameras-and-mi...









 On Wed, Feb 16, 2011 at 4:42 PM, perumal316 perumal...@gmail.com wrote:
  Hi All,

  Is it possible to invoke the camera through a WebView instance?

  Can HTML5 be used? I want to have a Android Web App which can access
  the Camera Hardware in the Android phone. Can this be done?

  Regards,
  Perumal

  --
  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+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 B.R.
 Sogan.X
 
 Mail:    soga...@gmail.com
 Addr:   Nanjing JiangSu Province. China.
 Motto:  No Pain, No Gain.
 

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Camera preview Api

2011-02-15 Thread Joe McCann
I recommend using getExternalStorageDirectory()

http://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory()

On Feb 15, 3:10 am, Jayanthi jaia...@gmail.com wrote:
 Hi,
    I am trying to save images in sd card which is taken from camera in
 emulator, the following is the code
 to save images in sd card

 path = String.format(/sdcard/%d.jpg, System.currentTimeMillis());
                                 outStream = new 
 FileOutputStream(String.format(/sdcard/%d.jpg,
 System.currentTimeMillis()));
                                 Log.e(TAG,b4 writing );
                                 outStream.write(data);

                                 Log.e(TAG,after writing );
                                 outStream.close();

 But I get error that no file or directory . Can anyone tell me where i
 did mistake

 Thanks ,

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Programmatically Update Flash Setting (or any Camera.Parameters)

2011-02-11 Thread Joe McCann
I found the solution:

/** Note: _flashButton and _poladroidCamera are decleared  outside the
scope for this method in the same Activity class. **/

/**
 * Set's the flash icon's drawable and updates the camera
instance's settings to reflect the new flash state.
 * NOTE This method is called on an ImageButton click.
 *
 * @param drawableId
 * @param flashMode
 */
private void setFlashIcon(int drawableId, String flashMode)
{
 
_flashButton.setBackgroundDrawable(getResources().getDrawable(drawableId));
_poladroidCamera.setCurrentFlashMode(flashMode);
_poladroidCamera.surfaceChanged(null, 0, 0,0); // this is the
magic sauce
}


Let me know if you have any questions.

On Feb 10, 3:00 pm, Joe McCann joseph.is...@gmail.com wrote:
 Kevin,

 You are spot on and I'm yet to find the right/most efficient
 solution.  I really don't want to have to do some silly hack as I
 would think there's a way (maybe with threads?) that is the most
 efficient approach.

 joe

 On Feb 10, 2:15 pm, Kevin Duffey andjar...@gmail.com wrote:







  He's saying that calling that after the preview has been set up.. doesn't
  seem to immediately take affect. You either have to recreate the surface to
  change camera parameters, or use a separate activity to pause the current
  camera preview activity, then when that activity closes, it causes a
  onSurfaceChanged() call which then picks up the change. I am guessing the OP
  wants to do something like the camera app does (at least on my original
  droid) where you can flip some switches/buttons while the preview is running
  and they affect how the camera works without having to recreate the preview
  surfaceview each time a change occurs. If you can turn flash on/off, zoom,
  auto focus on/off, etc with immediate changes that when the picture is
  taken, are applied.

  On Thu, Feb 10, 2011 at 11:42 AM, Stephen Lebed srle...@gmail.com wrote:
   Unless I dont understand the question correctly,
   Camera.setParameters() should do what you need.

   Hope this helps.

   Stephen Lebed
   Developer
  http://apps.mechnology.com

   On Feb 10, 9:28 am, Joe McCann joseph.is...@gmail.com wrote:
I'm trying to avoid having to rewrite the Android source for the
native camera app (as it is a cluster***k of code), but am curious as
to the proper, most efficient away of being able to update the Camera
Parameters AFTER the SurfaceView of the Camera has been created and
opened.

For example, if you have a button that toggles the setting of On, Off,
or Auto for the Flash, this initial parameter value is set when the
Camera is initialized (let's say Auto by default, if, of course, the
device supports it).  If you want to switch it to Off, WHILE the
current view is the instance of the Camera/SurfaceView, you press the
button and it sets the new parameter to the camera to OFF;
however, the CURRENT instance of the camera does not update it's
camera settings, meaning if you take the picture the Auto flash
setting is still enabled.

Now, if you say launch a new Activity, like a Preferences screen, and
then go back to the Camera view, the camera now has the OFF
setting.  This clearly has to do with the surfaceChanged() method as
it is grabbing the NEW camera parameters and updating the camera
settings to reflect that.

In a nutshell, I'm wondering if there is a way inside to update the
CURRENT instance of the Camera and what a preferred approach would be.

Thanks!

   --
   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+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] [Camera API] Programmatically Update Flash Setting (or any Camera.Parameters)

2011-02-10 Thread Joe McCann
I'm trying to avoid having to rewrite the Android source for the
native camera app (as it is a cluster***k of code), but am curious as
to the proper, most efficient away of being able to update the Camera
Parameters AFTER the SurfaceView of the Camera has been created and
opened.

For example, if you have a button that toggles the setting of On, Off,
or Auto for the Flash, this initial parameter value is set when the
Camera is initialized (let's say Auto by default, if, of course, the
device supports it).  If you want to switch it to Off, WHILE the
current view is the instance of the Camera/SurfaceView, you press the
button and it sets the new parameter to the camera to OFF;
however, the CURRENT instance of the camera does not update it's
camera settings, meaning if you take the picture the Auto flash
setting is still enabled.

Now, if you say launch a new Activity, like a Preferences screen, and
then go back to the Camera view, the camera now has the OFF
setting.  This clearly has to do with the surfaceChanged() method as
it is grabbing the NEW camera parameters and updating the camera
settings to reflect that.

In a nutshell, I'm wondering if there is a way inside to update the
CURRENT instance of the Camera and what a preferred approach would be.

Thanks!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Programmatically Update Flash Setting (or any Camera.Parameters)

2011-02-10 Thread Joe McCann
Kevin,

You are spot on and I'm yet to find the right/most efficient
solution.  I really don't want to have to do some silly hack as I
would think there's a way (maybe with threads?) that is the most
efficient approach.

joe

On Feb 10, 2:15 pm, Kevin Duffey andjar...@gmail.com wrote:
 He's saying that calling that after the preview has been set up.. doesn't
 seem to immediately take affect. You either have to recreate the surface to
 change camera parameters, or use a separate activity to pause the current
 camera preview activity, then when that activity closes, it causes a
 onSurfaceChanged() call which then picks up the change. I am guessing the OP
 wants to do something like the camera app does (at least on my original
 droid) where you can flip some switches/buttons while the preview is running
 and they affect how the camera works without having to recreate the preview
 surfaceview each time a change occurs. If you can turn flash on/off, zoom,
 auto focus on/off, etc with immediate changes that when the picture is
 taken, are applied.







 On Thu, Feb 10, 2011 at 11:42 AM, Stephen Lebed srle...@gmail.com wrote:
  Unless I dont understand the question correctly,
  Camera.setParameters() should do what you need.

  Hope this helps.

  Stephen Lebed
  Developer
 http://apps.mechnology.com

  On Feb 10, 9:28 am, Joe McCann joseph.is...@gmail.com wrote:
   I'm trying to avoid having to rewrite the Android source for the
   native camera app (as it is a cluster***k of code), but am curious as
   to the proper, most efficient away of being able to update the Camera
   Parameters AFTER the SurfaceView of the Camera has been created and
   opened.

   For example, if you have a button that toggles the setting of On, Off,
   or Auto for the Flash, this initial parameter value is set when the
   Camera is initialized (let's say Auto by default, if, of course, the
   device supports it).  If you want to switch it to Off, WHILE the
   current view is the instance of the Camera/SurfaceView, you press the
   button and it sets the new parameter to the camera to OFF;
   however, the CURRENT instance of the camera does not update it's
   camera settings, meaning if you take the picture the Auto flash
   setting is still enabled.

   Now, if you say launch a new Activity, like a Preferences screen, and
   then go back to the Camera view, the camera now has the OFF
   setting.  This clearly has to do with the surfaceChanged() method as
   it is grabbing the NEW camera parameters and updating the camera
   settings to reflect that.

   In a nutshell, I'm wondering if there is a way inside to update the
   CURRENT instance of the Camera and what a preferred approach would be.

   Thanks!

  --
  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+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Camerapreview

2011-02-08 Thread Joe McCann
Seriously, did you google it?  There are loads of examples.

On Feb 8, 3:12 am, Jayanthi jaia...@gmail.com wrote:
 Hi,
     I am new to android I want to send mail with image attached to it
 I need solution for two question
 1.How to get the path of image saved in sd card using camera preview
 2.How to send mail by attaching image

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: data upload java script

2011-02-02 Thread Joe McCann
JavaScript does not handle uploading; you'll need to have some code
written on the server to handle a POST request with the data you are
posting.

Inside a WebView, you can use the XHR object to make your call to your
server asynchronously, but JavaScript itself can't actually do the
uploading of the data.

On Feb 1, 6:55 am, Jags jag...@gmail.com wrote:
 I need a javascript snippet to upload some data to a server, any
 sample code ? basically what i need is a page loads and the java
 script loads as part of thet page. that page also puts some data in
 hidden value. (or suggest better alternative). now, as soon as the
 page loads completely, the javascript uploads the data in hidden
 variable to another web server.

 please give me some pointers and code snippets. i need it to run in
 android browser

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Force Close Does Not Release Camera Resource

2011-01-26 Thread Joe McCann
thx

On Jan 26, 2:17 am, blindfold seeingwithso...@gmail.com wrote:
 Indeed this is an old known issue 
 (1578)http://code.google.com/p/android/issues/detail?id=1578
 and only restarting the phone helps. You can try to  minimize
 occurrences by properly releasing the camera yourself when an
 exception occurs in your app.

 On Jan 25, 10:41 pm, Joe McCann joseph.is...@gmail.com wrote:



  So while developing a custom camera application I've realized on rare
  occasions and on various devices if the app has to force close, it
  does not always release the camera resource.

  Is there a way to find/detect the process that is holding onto this
  resource and kill it?  Or some other technique?  It is rather
  difficult bug to reproduce (for me anyway), but ultimately the device
  has to be restarted.

  Thanks!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] [Camera API] Force Close Does Not Release Camera Resource

2011-01-25 Thread Joe McCann
So while developing a custom camera application I've realized on rare
occasions and on various devices if the app has to force close, it
does not always release the camera resource.

Is there a way to find/detect the process that is holding onto this
resource and kill it?  Or some other technique?  It is rather
difficult bug to reproduce (for me anyway), but ultimately the device
has to be restarted.

Thanks!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Camera properties

2011-01-16 Thread Joe McCann
Fairly certain you'll have to include the permissions declaration.
The other parts would require some hackery, I suppose.

On Jan 15, 4:15 am, b_t bartata...@gmail.com wrote:
 Hi,

 is there any way to get camera properties without open it?
 I want to display camera properties but don't want to take a picture.
 I have to open camera, get properties, then release it:

         Camera camera = Camera.open();

         if (camera != null) {
                 parameters = camera.getParameters();
                 camera.release();
         }

 And it needs android.permission.CAMERA permission. :(

 Is there any solution?
 Tamás

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: webview inside the dialogbox.

2011-01-14 Thread Joe McCann
It's a bug.  You'll need to create an Activity that uses the Dialog
theme and re-create the dialog including buttons, etc. while also
containing the Webview.

activity
android:name=.TwitterForm
android:configChanges=orientation|keyboard
android:theme=@android:style/Theme.Dialog
android:label=@string/twitter_form
/activity


Now create a webview_dialog.xml view in Layout folder.  Have it
contain a Linear Layout (or Relative/Frame, whatever) where you have a
Webview as a child and maybe another LL as child with two buttons (OK,
Cancel) as the children of this LL.

In your Activity where you want to use it, inflate this view, then
programmatically (in Java) set the properties of the Webview just as
you would a standard Webview. Then, wire up the buttons with their
respective onClick events, etc.

Sorry I can't show more code, but I just had to implement this last
week because of the issue you are facing...


On Jan 13, 11:45 pm, YoGenDr@ $iNgH yogi.ru...@gmail.com wrote:
 @Kumar
 Google apps itself are using this(Settings-about Phone-Legal
 Information-google legal after this it open a link in dialog box...).









 On Thu, Jan 13, 2011 at 11:04 AM, Kumar Bibek coomar@gmail.com wrote:
  Any specific reason of using WebView in a dialog?

  On Jan 13, 4:12 pm, yogi yogi.ru...@gmail.com wrote:
   Hi all,

   I m launching the dialog with webview inside it. Now on that webview I
   have a textbox (like google sign in page).When I tap on the field the
   Softkeyboard is not showing.

   Its not even working in emulator..
   Thanks in Advance.

   Regards
   Yogi

  --
  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+unsubscr...@googlegroups.comandroid-developers%2Bunsubs 
  cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Yogendra Singh
 B-Tech,Computer Science and Engg.,
 MNNIT,Allahabad

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] [BUG] Easily Reproducable Bug in Regards to Bitmaps, Memory, and Recycling [sample project included]

2011-01-07 Thread Joe McCann
In a nutshell, I have/am trying to create reusable UI components in
XML.  I created a dead simple project that only fires an activity to
show the UI.  It can be downloaded here:

http://dl.dropbox.com/u/409429/Bitmap%20Bg%20Test.zip

I have a base_form.xml component that is referenced
(setContentView()) in BaseForm.java, a base Activity.  The
base_form.xml is a FrameLayout where the background is set to a
drawable (a 16 kb png).

I now have LoginForm.java that extends BaseForm and a subsequent
login_form.xml component.  This login_form component is inflated in
LoginForm.java and appended to the view and remember, the view was
set in BaseForm.java via setContentView(R.layout.base_form).

It should be noted that in the BaseForm.java there is a method called
cleanupDrawables() which recycles the bitmap being used in the
FrameLayout and sets various things to null.  It even explicitly calls
System.gc() (I've tried it without and still the same issue).

Upon firing the app, everything works fine.  UI loads up and displays
properly.

Now, hit the back button.

Now, open the app again.  Everything is fine.

Hit the back button again.

Now open the app again.  Breaks with this exception:

FATAL EXCEPTION: main
E/AndroidRuntime(  405): java.lang.RuntimeException: Canvas: trying to
use a recycled bitmap android.graphics.bit...@44f4c150


So after discussing this issue with some other engineers it appears it
is a bug in the garbage collector that is occurring after the 2nd
sweep.  Apparently a very similar bug existed in early .Net.

A solution may be to instead of defining the background in XML to load
a bitmap using BitmapFactory and explicitly set the background of the
FrameLayout in Java.  This is undesirable as it doesn't really allow
me to create reusable UI components in XML.

Any help is greatly appreciated.


Also, it appears this is a bug that is declined by the Android
team.  Use less memory in your app was the original solution
suggested by Romain Guy.

http://code.google.com/p/android/issues/detail?id=8488

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: [BUG] Easily Reproducable Bug in Regards to Bitmaps, Memory, and Recycling [sample project included]

2011-01-07 Thread Joe McCann
Curious if you even looked at the code.  I suspect, you did not.



On Jan 7, 12:16 pm, Romain Guy romain...@android.com wrote:
 This error message is usually not related to the GC. This message is logged
 when recycle() is called twice on the same bitmap. Considering you are doing
 your own bitmap management and calling recycle yourself in BaseForm I would
 suspect a bug in your code.









 On Fri, Jan 7, 2011 at 9:44 AM, Mark Murphy mmur...@commonsware.com wrote:
  On Fri, Jan 7, 2011 at 12:36 PM, Joe McCann joseph.is...@gmail.com
  wrote:
   Also, it appears this is a bug that is declined by the Android
   team.  Use less memory in your app was the original solution
   suggested by Romain Guy.

  http://code.google.com/p/android/issues/detail?id=8488

  The issue you list here would appear to have nothing to do with your
  problem, considering that your error (trying to use a recycled
  bitmap) appears nowhere in that issue.

  --
  Mark Murphy (a Commons Guy)
 http://commonsware.com|http://github.com/commonsguy
 http://commonsware.com/blog|http://twitter.com/commonsguy

  Warescription: Three Android Books, Plus Updates, One Low Price!

  --
  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+unsubscr...@googlegroups.comandroid-developers%2Bunsubs 
  cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support.  All such questions should be posted on public
 forums, where I and others can see and answer them

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: [BUG] Easily Reproducable Bug in Regards to Bitmaps, Memory, and Recycling [sample project included]

2011-01-07 Thread Joe McCann
If you comment out the cleanupDrawables() method, you'll get the
exception mentioned in the bug.  I'm assuming you simply responded
instead of looking/trying that out?

On Jan 7, 11:44 am, Mark Murphy mmur...@commonsware.com wrote:
 On Fri, Jan 7, 2011 at 12:36 PM, Joe McCann joseph.is...@gmail.com wrote:
  Also, it appears this is a bug that is declined by the Android
  team.  Use less memory in your app was the original solution
  suggested by Romain Guy.

 http://code.google.com/p/android/issues/detail?id=8488

 The issue you list here would appear to have nothing to do with your
 problem, considering that your error (trying to use a recycled
 bitmap) appears nowhere in that issue.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: [BUG] Easily Reproducable Bug in Regards to Bitmaps, Memory, and Recycling [sample project included]

2011-01-07 Thread Joe McCann
Hey Mark,

I moved the png into the respective folders and it works fine.  Thanks
for you help.

Oh, side note, that zip was imported and installed and run fine on 3
different machines.  Not sure the issue you are mentioning about my
dead simple project.  I and others had zero issues running on 2.2
emulators and devices???

Cheers.

joe

On Jan 7, 12:14 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Fri, Jan 7, 2011 at 12:36 PM, Joe McCann joseph.is...@gmail.com wrote:
  In a nutshell, I have/am trying to create reusable UI components in
  XML.  I created a dead simple project that only fires an activity to
  show the UI.

 Your dead simple project will not run on any version of Android, due
 to a typo in your manifest.

 Also, on the Android 2.3 emulator, your dead simple project crashes
 immediately with a bitmap size exceeds VM budget.

 Your problem can be solved by removing your recycle() call and putting
 your background PNG into the appropriate resource sets (drawable-ldpi,
 drawable-mdpi, drawable-hdpi). This has a side benefit of allowing
 your application to run on Android 2.3.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: [BUG] Easily Reproducable Bug in Regards to Bitmaps, Memory, and Recycling [sample project included]

2011-01-07 Thread Joe McCann
BTW, your assessment was incorrect.  It had to do with the placement
of the png in their respective folders (h/m/l-dpi).  Nothing to do
with my code.

On Jan 7, 12:16 pm, Romain Guy romain...@android.com wrote:
 This error message is usually not related to the GC. This message is logged
 when recycle() is called twice on the same bitmap. Considering you are doing
 your own bitmap management and calling recycle yourself in BaseForm I would
 suspect a bug in your code.









 On Fri, Jan 7, 2011 at 9:44 AM, Mark Murphy mmur...@commonsware.com wrote:
  On Fri, Jan 7, 2011 at 12:36 PM, Joe McCann joseph.is...@gmail.com
  wrote:
   Also, it appears this is a bug that is declined by the Android
   team.  Use less memory in your app was the original solution
   suggested by Romain Guy.

  http://code.google.com/p/android/issues/detail?id=8488

  The issue you list here would appear to have nothing to do with your
  problem, considering that your error (trying to use a recycled
  bitmap) appears nowhere in that issue.

  --
  Mark Murphy (a Commons Guy)
 http://commonsware.com|http://github.com/commonsguy
 http://commonsware.com/blog|http://twitter.com/commonsguy

  Warescription: Three Android Books, Plus Updates, One Low Price!

  --
  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+unsubscr...@googlegroups.comandroid-developers%2Bunsubs 
  cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support.  All such questions should be posted on public
 forums, where I and others can see and answer them

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Android 2.3 Cannot load library

2010-12-30 Thread Joe Yuan
hi,everyone,
My app with a .so can't run on android 2.3 witch runs nomarlly on 1.6,2.1 and 
2.2.When it starts up to System.loadLibrary the so file,the system throws a 
exception java.lang.ExceptionInInitializerError,the detail below:
ERROR/AndroidRuntime(333): FATAL EXCEPTION: main
ERROR/AndroidRuntime(333): java.lang.ExceptionInInitializerError
ERROR/AndroidRuntime(333): at java.lang.Class.newInstanceImpl(Native Method)
ERROR/AndroidRuntime(333): at java.lang.Class.newInstance(Class.java:1409)
ERROR/AndroidRuntime(333): at 
android.app.Instrumentation.newActivity(Instrumentation.java:1021)
ERROR/AndroidRuntime(333): at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1536)
ERROR/AndroidRuntime(333): at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1638)
ERROR/AndroidRuntime(333): at 
android.app.ActivityThread.access$1500(ActivityThread.java:117)
ERROR/AndroidRuntime(333): at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:928)
ERROR/AndroidRuntime(333): at 
android.os.Handler.dispatchMessage(Handler.java:99)
ERROR/AndroidRuntime(333): at android.os.Looper.loop(Looper.java:123)
ERROR/AndroidRuntime(333): at 
android.app.ActivityThread.main(ActivityThread.java:3647)
ERROR/AndroidRuntime(333): at java.lang.reflect.Method.invokeNative(Native 
Method)
ERROR/AndroidRuntime(333): at 
java.lang.reflect.Method.invoke(Method.java:507)
ERROR/AndroidRuntime(333): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
ERROR/AndroidRuntime(333): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
ERROR/AndroidRuntime(333): at dalvik.system.NativeStart.main(Native Method)
ERROR/AndroidRuntime(333): Caused by: java.lang.UnsatisfiedLinkError: Cannot 
load library: reloc_library[1311]:33 cannot locate '_length_code'...
ERROR/AndroidRuntime(333): at 
java.lang.Runtime.loadLibrary(Runtime.java:434)
ERROR/AndroidRuntime(333): at java.lang.System.loadLibrary(System.java:554)
ERROR/AndroidRuntime(333): at com.amuse.Plugin.clinit(Plugin.java:9)
ERROR/AndroidRuntime(333): ... 15 more


the log says that Caused by: java.lang.UnsatisfiedLinkError: Cannot load 
library: reloc_library[1311]:.I also comiled my so file with ndk-r5,but the 
still the problem.
Please help me!!
Thanks in advance!



-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Problem with AnimationDrawable

2010-12-26 Thread Joe D.
I am trying to load many frames into a animationDrawable and I'm running 
into similar problems.  Can you post an example of  your solution - 
manually adding Bitmaps as frames, and then calling recycle() on them.

Do you mean you completely bypassed animationDrawable and just displayed the 
bitmaps sequentially, or were you still able to use animationDrawable?

thanks

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: What is a 512 by 512 App icon high resolution

2010-11-28 Thread Joe McCann
Pretty sure it is for Google TV apps.  512 x 512 is pretty standard
for scaling png files for icons on hi-res displays.

--joe

http://subprint.com

On Nov 27, 4:51 am, ses stew...@ssims.co.uk wrote:
 On Nov 27, 9:56 am, TreKing treking...@gmail.com wrote:

  The people that know the answer to those questions either don't read this
  list or won't bother to answer. We'll likely have to wait for the inevitably
  ridiculously belated blog post that will fill developers in when Google
  feels like it.

 Cynical, but I fear also true.

 The management of these developer updates seems rather odd - for
 example with the new rating system, we get told the exact date when
 new and updated apps will require a rating and that if we do not
 provide one then 'in a few weeks' the app will be automatically rated
 'mature'. However there is no indication as to the exact date and
 whether we can rate apps without updating them.

 If this was a business application in a corporate environment, changes
 that affect the consumer would be clearly communicated to the consumer
 prior to them actually happening and would not leave them wondering
 what is really going on.

 Some of these changes could be great, but to release them to
 developers before they know what is going on seems strange to me. The
 emails we received didn't really shed any more light on the nature of
 the changes than we could glean ourselves.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] [Image] jMagick on Android

2010-11-28 Thread Joe McCann
Anyone been able to get this to run/build?  I'm trying to apply a
Polaroid effect to an image and the jMagick seems to have that option.

Thanks in advance.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Compile error in the new “Hello Testing” Tutorials program

2010-09-22 Thread Joe Malin
You only posted a part of HelloAndroidTest, which makes it difficult
to diagnose your problem.

Ensure that you've followed the instructions. Do the Hello, World
tutorial first, so that you have a HelloAndroid project. Once that's
done, do Hello, Testing. Be sure to create it as a test project.

Also check your dependencies. HelloAndroidTest has to have the
HelloAndroid project on its build path. To check this, in Eclipse
right-click the HelloAndroidTest node and select Properties at the
bottom of the menu. In the Properties box, click Java Build Path, and
then click the Project tab on the right. You should see HelloAndroid
as one of the required projects on the build path.

Hope this helps.

Joe Malin
--
Please note: Because of the volume, I'm unable to respond to direct e-
mails. Please post your questions to the group.

On Sep 19, 3:55 am, Kieu Hua kieu@gmail.com wrote:
 There is compile error in HelloAndroidTest program in the Tutorials
 “Hello Testing” program, because I got this compile error.
 “com.example.helloandroid.R.id.textview can not be resolved.”

 @Override
     protected void setUp() throws Exception {
         super.setUp();
         mActivity = this.getActivity();
         mView = (TextView)
 mActivity.findViewById(com.example.helloandroid.R.id.textview);
         resourceString =
 mActivity.getString(com.example.helloandroid.R.string.hello);
     }

 My com.example.helloandroid.R doesn’t have R.id.textview, and
 endroid.R.id class does not have endroid.R.id.textview field.

 Where do I support to get this field, 
 “com.example.helloandroid.R.id.textview”?

 Thank for helping.
 --
 Kieu Hua
 kieu@gmail.com
 77 Strawberry Hill Road
 Acton, MA 01720

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Automatic testing tool for Android?

2010-09-22 Thread Joe Malin
What are you trying to do?

Android includes a framework for doing unit testing of Android
classes. You can use this to send key and touch events to the UI of an
Activity, in order to unit test the Activity class. The Android 2.2
SDK contains a tutorial that describes how to do this:
http://developer.android.com/resources/tutorials/testing/activity_test.html.
The tutorial has an appendix that describes how to run unit tests from
the command line using adb. You could run multiple unit tests by
calling adb from a Python script.

Joe Malin
---
Note: Because of the volume, I am unable to respond to individual e-
mails. Please post your questions to the list.


On Sep 16, 11:38 pm, Dajinsol Jeon midgar...@gmail.com wrote:
 Hi all,
 I'm new to Android programming.

 Yesterday, I heard that there is a program to test Android application
 automatically after installing apk onto real device. The one I have heard is
 commercial, and very expensive. Is there a open source tool? I know that adb
 shell support monkey test, but is it possible to use adb for UI interaction?
 For example, is it possible to send button-click event to button (which is
 specified by id or something else) in application by using adb?

 Thanks.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: FTP Application for IPv6

2010-08-16 Thread Joe Petruchi
Zirk, Thanks very much

I tried with the Trial version of FTPCAFE and it works fine over IPv6. I am
able to see the list of files in remote PC and download also.

Thanks for the help

Regards
Ajan

On Wed, Aug 11, 2010 at 3:57 PM, Joe Petruchi petruchi.dr...@gmail.comwrote:

 Hello All,

 I am trying to download the apk from my country India.

 But I am not able to do so.

 It would be really nice if you could send the apk through e-mail.

 Best Regards
  Petruchi




 On Tue, Aug 10, 2010 at 6:01 PM, Joe Petruchi petruchi.dr...@gmail.comwrote:

 Hello All,

 Does any body know if there exists any package to test FTP over IPv6.

 I tried with some of FTP applications available in market but it doesnt
 seem to support IPv6.

 Please help as this is very urgent for me

 Best Regards
 Petruchi




-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: FTP Application for IPv6

2010-08-11 Thread Joe Petruchi
Hello Zirk

I am finding it difficult to get the CafeFtp application.

Google Market is not able to find it . so If you send it across to me(.apk
file) over e-mail it will be great

Best Regards
Ajan Daniel

On Tue, Aug 10, 2010 at 11:43 PM, Joe Petruchi petruchi.dr...@gmail.comwrote:

 Zirk will post you the results tomorrow

 Regards
 Petruchi


 On Tue, Aug 10, 2010 at 6:44 PM, Zirk dand...@gmail.com wrote:

 FtpCafe should in theory support IPv6, I'd appreciate if you try it
 and post back results.

 Thanks

 Dragan

 On Aug 10, 1:31 pm, Joe Petruchi petruchi.dr...@gmail.com wrote:
   Hello All,
 
  Does any body know if there exists any package to test FTP over IPv6.
 
  I tried with some of FTP applications available in market but it doesnt
 seem
  to support IPv6.
 
  Please help as this is very urgent for me
 
  Best Regards
  Petruchi

 --
 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: FTP Application for IPv6

2010-08-11 Thread Joe Petruchi
Hello All,

I am trying to download the apk from my country India.

But I am not able to do so.

It would be really nice if you could send the apk through e-mail.

Best Regards
 Petruchi




On Tue, Aug 10, 2010 at 6:01 PM, Joe Petruchi petruchi.dr...@gmail.comwrote:

 Hello All,

 Does any body know if there exists any package to test FTP over IPv6.

 I tried with some of FTP applications available in market but it doesnt
 seem to support IPv6.

 Please help as this is very urgent for me

 Best Regards
 Petruchi


-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] FTP Application for IPv6

2010-08-10 Thread Joe Petruchi
Hello All,

Does any body know if there exists any package to test FTP over IPv6.

I tried with some of FTP applications available in market but it doesnt seem
to support IPv6.

Please help as this is very urgent for me

Best Regards
Petruchi

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: FTP Application for IPv6

2010-08-10 Thread Joe Petruchi
Zirk will post you the results tomorrow

Regards
Petruchi

On Tue, Aug 10, 2010 at 6:44 PM, Zirk dand...@gmail.com wrote:

 FtpCafe should in theory support IPv6, I'd appreciate if you try it
 and post back results.

 Thanks

 Dragan

 On Aug 10, 1:31 pm, Joe Petruchi petruchi.dr...@gmail.com wrote:
  Hello All,
 
  Does any body know if there exists any package to test FTP over IPv6.
 
  I tried with some of FTP applications available in market but it doesnt
 seem
  to support IPv6.
 
  Please help as this is very urgent for me
 
  Best Regards
  Petruchi

 --
 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android market hiding apps with bluetooth permissions from Android 1.5 and 1.6

2010-07-15 Thread Joe
Also the bluetooth documentation does not mention features at all -
only permissions:

http://developer.android.com/guide/topics/wireless/bluetooth.html#Permissions

Could also do with an update, thanks

On Jul 15, 3:41 am, Dianne Hackborn hack...@android.com wrote:
 Market does not filtering based on permission.  There is no need to follow
 that line of thought (and it is no argument for wanting the feature that was
 brought up here).

 The aapt tool is starting to infer features based on permissions, to prevent
 old applications from being delivered on devices that can now lack features
 they may have depended on.  Some discussion of this can be found 
 here:http://android-developers.blogspot.com/2010/06/future-proofing-your-a...

 There may be an issue with Market mistakenly thinking that a bluetooth
 permission implies the need for the bluetooth feature even on pre-2.0
 devices, when it really should start with 2.0 where the feature was
 introduced.  At any rate, the correct thing for an app developer to do is
 explicitly state which features they care about, and you can there use
 android:required=false to tell Market not to filter your app based on it.

 On Wed, Jul 14, 2010 at 2:26 AM, Jonas Petersson 
 jonas.peters...@xms.sewrote:







  On 07/14/2010 10:54 AM, Joe wrote:

  I can see why Google wouldn't want to complicate the permissions for a
  user. I am not suggesting they let the user choose which permissions
  to allow. An obvious issue with doing that is that users could break
  your app by crippling the permissions, and then complain it doesn't
  work and give you a bad rating on the market. That is really a
  separate topic/argument.

  I think you misunderstood what I asked for: what I'm after is that the
  DEVELOPER should have the ability to flag a particular permission as
  optional. Market can use this for filtering - in your case an optional
  BlueTooth permission would allow users with no bluetooth library
  (theoretically 1.x) to install the application. For a user who installs it
  on a device WITH bluetooth, the normal installation warning screen would
  allow that option to be deselected. The application will have to check
  whether it actually got the optional permission - if it doesn´t it deserves
  a bad rating.

  Although this is not exactly your problem at the moment it certainly is
  closely related. IMHO.

   Any way back to my issue:

  Apps are (or were) filtered from the market based on screen size and
  android version.

  They were not filtered based on permissions.

  I wouldn't place any bets on that one. I'm pretty sure that for instance
  the Barcode Scanner program is filtered out for devices that lack auto focus
  for instance. This may not exactly be permissions, but rather a device
  profile (I've noted that new/prerelease phones often see a lot less of the
  apps on Market), but exactly how it works may be something that we really
  shouldn't know too many details of since I would expect it to change
  (hopefully improve) over time.

   It seems some confusion
  has crept in. When i say in my app is android:minSdkVersion=3 - i
  mean it :)

  The bluetooth permissions have been around since the start, they are
  nothing new.

  This is obviously a mistake recently introduced on the Android
  Market.

  Anyone coding a bluetooth app should have made it backwards compatible
  (as mine was) OR have set their minSdkVersion=5

  Well, the good old Bluetooth File Transfer app seems to work. I've not got
  a 1.6 device handy, but the one installed on my Milestone has target sdk set
  to 4 and it asks for BT admin plus create BT connections.

   On Jul 14, 10:39 am, DonFrenchdcfre...@gmail.com  wrote:

  Ok, I clicked the star and added my support.

  Excellent! Anyone else?

                         Best / Jonas

  --
  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+unsubscr...@googlegroups.comandroid-developers%2Bunsubs 
  cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Dianne Hackborn
 Android framework engineer
 hack...@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.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android market hiding apps with bluetooth permissions from Android 1.5 and 1.6

2010-07-14 Thread Joe

I can see why Google wouldn't want to complicate the permissions for a
user. I am not suggesting they let the user choose which permissions
to allow. An obvious issue with doing that is that users could break
your app by crippling the permissions, and then complain it doesn't
work and give you a bad rating on the market. That is really a
separate topic/argument.

Any way back to my issue:

Apps are (or were) filtered from the market based on screen size and
android version.

They were not filtered based on permissions. It seems some confusion
has crept in. When i say in my app is android:minSdkVersion=3 - i
mean it :)

The bluetooth permissions have been around since the start, they are
nothing new.

This is obviously a mistake recently introduced on the Android
Market.

Anyone coding a bluetooth app should have made it backwards compatible
(as mine was) OR have set their minSdkVersion=5



On Jul 14, 10:39 am, DonFrench dcfre...@gmail.com wrote:
 Ok, I clicked the star and added my support.

 On Jul 13, 12:17 pm, Jonas Petersson jonas.peters...@xms.se wrote:



  On 07/13/2010 09:05 PM, DonFrench wrote:
     [Joe's app ]

   So Bluetooth is not necessary to benefit from using your app but those
   whose phones support it can reap the additional Bluetooth benefits
   that you so thoughtfully added, is that it?.   Since your app is still
   valuable even without Bluetooth functionality, people with pre-2.0
   phones should not be prohibited from purchasing it, right?   Well, you
   make a good point.

  IMHO, the above case is very similar to the enhancement request I added
  almost 6 months ago:

 http://code.google.com/p/android/issues/detail?id=6266

  Some permissions are non-critical for the application and it should be
  possible to flag them as such and then let the application find out
  whether it was given or not and adjust accordingly.

  So far only 51 people seem to have agreed with me, so either I'm wrong
  or most people have not realized why this would be significant enhancement.

                          Best / Jonas

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android market hiding apps with bluetooth permissions from Android 1.5 and 1.6

2010-07-14 Thread Joe
Exactly why it's a problem when they up date Bluetooth File Transfer
app and it disappears for pre android 2 devices

This only affects updates.

On Jul 14, 5:26 pm, Jonas Petersson jonas.peters...@xms.se wrote:
 On 07/14/2010 10:54 AM, Joe wrote:

  I can see why Google wouldn't want to complicate the permissions for a
  user. I am not suggesting they let the user choose which permissions
  to allow. An obvious issue with doing that is that users could break
  your app by crippling the permissions, and then complain it doesn't
  work and give you a bad rating on the market. That is really a
  separate topic/argument.

 I think you misunderstood what I asked for: what I'm after is that the
 DEVELOPER should have the ability to flag a particular permission as
 optional. Market can use this for filtering - in your case an optional
 BlueTooth permission would allow users with no bluetooth library
 (theoretically 1.x) to install the application. For a user who installs
 it on a device WITH bluetooth, the normal installation warning screen
 would allow that option to be deselected. The application will have to
 check whether it actually got the optional permission - if it doesn t it
 deserves a bad rating.

 Although this is not exactly your problem at the moment it certainly is
 closely related. IMHO.

  Any way back to my issue:

  Apps are (or were) filtered from the market based on screen size and
  android version.

  They were not filtered based on permissions.

 I wouldn't place any bets on that one. I'm pretty sure that for instance
 the Barcode Scanner program is filtered out for devices that lack auto
 focus for instance. This may not exactly be permissions, but rather a
 device profile (I've noted that new/prerelease phones often see a lot
 less of the apps on Market), but exactly how it works may be something
 that we really shouldn't know too many details of since I would expect
 it to change (hopefully improve) over time.

  It seems some confusion
  has crept in. When i say in my app is android:minSdkVersion=3 - i
  mean it :)

  The bluetooth permissions have been around since the start, they are
  nothing new.

  This is obviously a mistake recently introduced on the Android
  Market.

  Anyone coding a bluetooth app should have made it backwards compatible
  (as mine was) OR have set their minSdkVersion=5

 Well, the good old Bluetooth File Transfer app seems to work. I've not
 got a 1.6 device handy, but the one installed on my Milestone has target
 sdk set to 4 and it asks for BT admin plus create BT connections.

  On Jul 14, 10:39 am, DonFrenchdcfre...@gmail.com  wrote:
  Ok, I clicked the star and added my support.

 Excellent! Anyone else?

                         Best / Jonas

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android market hiding apps with bluetooth permissions from Android 1.5 and 1.6

2010-07-14 Thread Joe
Thanks for the solution!

On Jul 15, 3:41 am, Dianne Hackborn hack...@android.com wrote:
 Market does not filtering based on permission.  There is no need to follow
 that line of thought (and it is no argument for wanting the feature that was
 brought up here).

 The aapt tool is starting to infer features based on permissions, to prevent
 old applications from being delivered on devices that can now lack features
 they may have depended on.  Some discussion of this can be found 
 here:http://android-developers.blogspot.com/2010/06/future-proofing-your-a...

 There may be an issue with Market mistakenly thinking that a bluetooth
 permission implies the need for the bluetooth feature even on pre-2.0
 devices, when it really should start with 2.0 where the feature was
 introduced.  At any rate, the correct thing for an app developer to do is
 explicitly state which features they care about, and you can there use
 android:required=false to tell Market not to filter your app based on it.

 On Wed, Jul 14, 2010 at 2:26 AM, Jonas Petersson 
 jonas.peters...@xms.sewrote:







  On 07/14/2010 10:54 AM, Joe wrote:

  I can see why Google wouldn't want to complicate the permissions for a
  user. I am not suggesting they let the user choose which permissions
  to allow. An obvious issue with doing that is that users could break
  your app by crippling the permissions, and then complain it doesn't
  work and give you a bad rating on the market. That is really a
  separate topic/argument.

  I think you misunderstood what I asked for: what I'm after is that the
  DEVELOPER should have the ability to flag a particular permission as
  optional. Market can use this for filtering - in your case an optional
  BlueTooth permission would allow users with no bluetooth library
  (theoretically 1.x) to install the application. For a user who installs it
  on a device WITH bluetooth, the normal installation warning screen would
  allow that option to be deselected. The application will have to check
  whether it actually got the optional permission - if it doesn´t it deserves
  a bad rating.

  Although this is not exactly your problem at the moment it certainly is
  closely related. IMHO.

   Any way back to my issue:

  Apps are (or were) filtered from the market based on screen size and
  android version.

  They were not filtered based on permissions.

  I wouldn't place any bets on that one. I'm pretty sure that for instance
  the Barcode Scanner program is filtered out for devices that lack auto focus
  for instance. This may not exactly be permissions, but rather a device
  profile (I've noted that new/prerelease phones often see a lot less of the
  apps on Market), but exactly how it works may be something that we really
  shouldn't know too many details of since I would expect it to change
  (hopefully improve) over time.

   It seems some confusion
  has crept in. When i say in my app is android:minSdkVersion=3 - i
  mean it :)

  The bluetooth permissions have been around since the start, they are
  nothing new.

  This is obviously a mistake recently introduced on the Android
  Market.

  Anyone coding a bluetooth app should have made it backwards compatible
  (as mine was) OR have set their minSdkVersion=5

  Well, the good old Bluetooth File Transfer app seems to work. I've not got
  a 1.6 device handy, but the one installed on my Milestone has target sdk set
  to 4 and it asks for BT admin plus create BT connections.

   On Jul 14, 10:39 am, DonFrenchdcfre...@gmail.com  wrote:

  Ok, I clicked the star and added my support.

  Excellent! Anyone else?

                         Best / Jonas

  --
  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+unsubscr...@googlegroups.comandroid-developers%2Bunsubs 
  cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Dianne Hackborn
 Android framework engineer
 hack...@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.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android market hiding apps with bluetooth permissions from Android 1.5 and 1.6

2010-07-14 Thread Joe

It would help if the documented list of features included bluetooth:

http://developer.android.com/guide/topics/manifest/uses-feature-element.html




On Jul 15, 3:41 am, Dianne Hackborn hack...@android.com wrote:
 Market does not filtering based on permission.  There is no need to follow
 that line of thought (and it is no argument for wanting the feature that was
 brought up here).

 The aapt tool is starting to infer features based on permissions, to prevent
 old applications from being delivered on devices that can now lack features
 they may have depended on.  Some discussion of this can be found 
 here:http://android-developers.blogspot.com/2010/06/future-proofing-your-a...

 There may be an issue with Market mistakenly thinking that a bluetooth
 permission implies the need for the bluetooth feature even on pre-2.0
 devices, when it really should start with 2.0 where the feature was
 introduced.  At any rate, the correct thing for an app developer to do is
 explicitly state which features they care about, and you can there use
 android:required=false to tell Market not to filter your app based on it.

 On Wed, Jul 14, 2010 at 2:26 AM, Jonas Petersson 
 jonas.peters...@xms.sewrote:







  On 07/14/2010 10:54 AM, Joe wrote:

  I can see why Google wouldn't want to complicate the permissions for a
  user. I am not suggesting they let the user choose which permissions
  to allow. An obvious issue with doing that is that users could break
  your app by crippling the permissions, and then complain it doesn't
  work and give you a bad rating on the market. That is really a
  separate topic/argument.

  I think you misunderstood what I asked for: what I'm after is that the
  DEVELOPER should have the ability to flag a particular permission as
  optional. Market can use this for filtering - in your case an optional
  BlueTooth permission would allow users with no bluetooth library
  (theoretically 1.x) to install the application. For a user who installs it
  on a device WITH bluetooth, the normal installation warning screen would
  allow that option to be deselected. The application will have to check
  whether it actually got the optional permission - if it doesn´t it deserves
  a bad rating.

  Although this is not exactly your problem at the moment it certainly is
  closely related. IMHO.

   Any way back to my issue:

  Apps are (or were) filtered from the market based on screen size and
  android version.

  They were not filtered based on permissions.

  I wouldn't place any bets on that one. I'm pretty sure that for instance
  the Barcode Scanner program is filtered out for devices that lack auto focus
  for instance. This may not exactly be permissions, but rather a device
  profile (I've noted that new/prerelease phones often see a lot less of the
  apps on Market), but exactly how it works may be something that we really
  shouldn't know too many details of since I would expect it to change
  (hopefully improve) over time.

   It seems some confusion
  has crept in. When i say in my app is android:minSdkVersion=3 - i
  mean it :)

  The bluetooth permissions have been around since the start, they are
  nothing new.

  This is obviously a mistake recently introduced on the Android
  Market.

  Anyone coding a bluetooth app should have made it backwards compatible
  (as mine was) OR have set their minSdkVersion=5

  Well, the good old Bluetooth File Transfer app seems to work. I've not got
  a 1.6 device handy, but the one installed on my Milestone has target sdk set
  to 4 and it asks for BT admin plus create BT connections.

   On Jul 14, 10:39 am, DonFrenchdcfre...@gmail.com  wrote:

  Ok, I clicked the star and added my support.

  Excellent! Anyone else?

                         Best / Jonas

  --
  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+unsubscr...@googlegroups.comandroid-developers%2Bunsubs 
  cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Dianne Hackborn
 Android framework engineer
 hack...@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.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android market hiding apps with bluetooth permissions from Android 1.5 and 1.6

2010-07-13 Thread Joe
Actually even though pre 2.0 devices don't support bluetooth fully -
you can make your apps backward compatible. Which of course my apps
are. It's a mistake by Google to now filter them from the market for
1.5 and 1.6 devices.

The apps require the bluetooth permissions - they do not require the
bluetooth feature. There is a difference.

It seems now the requires feature option is being introduced into
the manifest for 2.2 an assumption is being made that apps that
require the permission also require the feature...

So if your app happens to support some bluetooth function for users
with android 2+ you have also just managed to loose 50% of users
because they can no longer see your app.

Btw this only happens for updated apps, if you already have an app on
the market it will be ok until you update it.







On Jul 13, 5:24 am, DonFrench dcfre...@gmail.com wrote:
 I guess the lack of API support for Bluetooth is the reason Google
 doesn't show Bluetooth-capable apps for pre-2.0 devices?  Out of
 curiosity, what are you doing to get around the lack of Bluetooth
 support in the APIs prior to 2.0?

 On Jul 10, 5:33 am, Joe samuel.law...@gmail.com wrote:



  Hi

  I released updates of my apps yesterday and they are being hidden from
  android 1.5 and 1.6 phones.

  This is due to a Market bug which hides apps with bluetooth
  permissions from android 1.5 and 1.6.

  Come on Google fix the market. We spend countless hours making are
  apps work on ALL android versions and now you do this...

  This issue has been raised since June, but has only affected me since
  i made an update to the market yesterday.

  I am now have annoyed customers and i am missing out on what 50% of
  users because of the flakey market...

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: App disappears from the Market after upgrade

2010-07-12 Thread Joe
This issue is happening for me now. Come on Google this is so annoying
for developers. It must be fixed.

On Jun 17, 12:10 pm, jeffro j...@trackaroo.com wrote:
 I'm also seeing this after recently updating my app.  It is also using

 uses-permission android:name=android.permission.BLUETOOTH

 Discussion on Android Market:

 http://www.google.com/support/forum/p/Android+Market/thread?tid=45694...

 I've filed issue 9137:

 http://code.google.com/p/android/issues/detail?id=9137

 Jeff

 On Jun 10, 10:32 am, Yuvi yuvidr...@gmail.com wrote:



  Just FYI, I checked for Torque visibility on:
  - HTC Hero (Android 2.1) -- both versions visible
  - HTC Magic (Android 2.1) -- both versions visible
  - HTC Hero (Android 1.5) -- both versions NOT visible
  - HTC Magic (Android 1.6) -- both versions NOT visible

  YuviDroid

  On Thu, Jun 10, 2010 at 6:58 PM, piemm...@googlemail.com 

  piemm...@googlemail.com wrote:
   Hi, thankyou, they are still displaying in 2.1+

   But unfortunately though they're no longer visible in android 1.6
   which is a fair chunk of market I'm missing!

   Ian

   On Jun 10, 8:20 am, Scott STEPHEN - Better Contacts
   scott.stephen...@gmail.com wrote:
Ian,

Just to confirm, I do see your apps.
Milestone  Desire 2.1-update1.

Scott

On Jun 10, 9:00 am, piemm...@googlemail.com

piemm...@googlemail.com wrote:
 Hi, the apps are both versions of Torque.

 I have found the visibility problem however - someone has changed the
 market system to exclude apps with the Bluetooth permission for
 Android 1.6 devices.

 This behaviour is in my opinion wrong, because I might have added
 support for bluetooth in my app (for 2.0+ devices) but it must also
 work in 1.5/1.6 as the 'bluetooth' option in my app may be simply
 grayed out (This is not in the case of Torque however).

 Adding the uses bluetooth permission should not *now* hide the app
 from the market when the previous incarnation of the market allowed it
 to be visible, even if it was 'incorrect'. For 1.5/1.6 devices that
 permission simply should not matter at all.

 This is almost a case for a kind of 'requires-capabilities' (I
 currently do not know if this exists or is coming, correct me if I am
 wrong) as I may have an app designed for ALL versions of android,
 where bluetooth is a nice feature, but is not a *required* feature and
 I may have coded for that scenario.

 Anyway, it seems that:

 uses-permission android:name=android.permission.BLUETOOTH

 now hides apps for 1.5/1.6 devices whereby before the market upgrade,
 it didn't. (This is now a problem for me)

 Thanks

 Ian.

 On Jun 10, 7:19 am, Scott STEPHEN - Better Contacts

 scott.stephen...@gmail.com wrote:
  Ian,

  What apps ? I will test here from France.

  Scott

  On Jun 10, 8:09 am, piemm...@googlemail.com

  piemm...@googlemail.com wrote:
   Similar problems here,

   Before google did the market 'fix' for 2.1/2.2,  2 of my apps
   (Torque)
   appeared correctly in the Android Market for Android1.6 and upward
   (The MyTouch 3G as an example), after the upgrade, they are no
   longer
   visible apart from on Android 2.x+ devices

   Regards,

   Ian

   --
   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+unsubscr...@googlegroups.comandroid-developers%2Bunsubs
cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

  --
  YuviDroidhttp://android.yuvalsharon.net

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Android Market Filters are broken for bluetooth

2010-07-12 Thread Joe
Hi

The android market is now broken.

Apps that require the bluetooth permissions are not showing in the
android market for devices running android 1.5 and 1.6.

My apps run on ALL android versions - and must appear on ALL devices,
yet now this bug has been introduced to the market.

My apps are invisible to 50% of customers.

My existing customers are complaining they cannot get the update.

Google fix the market now, developers like me have spent countless
hours making our apps run across all android versions and screen
sizes.

Can some one at Google take notice?

Samuel Lawson

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Android market hiding apps with bluetooth permissions from Android 1.5 and 1.6

2010-07-12 Thread Joe
Hi

I released updates of my apps yesterday and they are being hidden from
android 1.5 and 1.6 phones.

This is due to a Market bug which hides apps with bluetooth
permissions from android 1.5 and 1.6.

Come on Google fix the market. We spend countless hours making are
apps work on ALL android versions and now you do this...

This issue has been raised since June, but has only affected me since
i made an update to the market yesterday.

I am now have annoyed customers and i am missing out on what 50% of
users because of the flakey market...

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] I need to send message from api to the simulator where the test running

2010-07-03 Thread joe
I have to create unit tests where I need to send message from api to
the  simulator where the test running(The test junit  must check
functionality  which has place after as phone received sms). I
searched in google but people always talk about sending message
between simulators (using SmsManager) or  sending message from
shell.

If this is not possible how I can test the above functionality ...


Please for help !!!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] HeapWorker taking 80%-95% of cpu

2010-06-30 Thread Joe Yuan
Dear all!
I got a problem that when i run my app the whole system may get blocked!and 
then i 'top' the tasklist,see 'HeapWorker' thread of my app takes 80%-95% of 
cpu.What's the problem?
The feature is When I use the jni (*env)-CallVoidMethod to call the java 
function of my class,the running thread may always be blocked!Then I print the 
message before and after the (*env)-CallVoidMethod,and also in my java 
function,i find when the thread be blocked,both the message in my java function 
and after the JNI give no print.Of cause,the heapworker thread takes most of 
the cpu at 80%-95%.Please help me!
Thanks

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Detect changes of sms/mms status

2010-06-29 Thread joe
I need to create the  observer which must be informed about changing
sms/mms message status, example: message is read,  message is deleted.
How I can do it ?


Thanks for help

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to access a AIDL service from different packages?

2010-06-18 Thread Joe Onorato
You will also have to include the .aidl as source in your other
project.  The two different apks don't link against each other or
anything like that.  Otherwise, the generated java class won't be
available.

-joe


On Jun 18, 7:44 am, Mark Murphy mmur...@commonsware.com wrote:
 On Fri, Jun 18, 2010 at 7:37 AM, Krishna Shetty

 krishna.shett...@gmail.com wrote:
  I have created a service which exposes few AIDL defined interfaces.
  I want to access this Service from an application with different
  package.
  I have no clue how to achieve this. I want to see an example on this.

 Step #1: Add an intent-filter on the service with some custom action.

 Step #2: Use that action String when constructing the Intent for
 binding to the service from the client.

 http://github.com/commonsguy/cw-advandroid/tree/master/AdvServices/Re...http://github.com/commonsguy/cw-advandroid/tree/master/AdvServices/Re...

 --
 Mark Murphy
 CommonsWare
 mmur...@commonsware.comhttp://commonsware.com

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: how to open an App when the Android OS start up

2010-06-15 Thread Joe Onorato
No, don't do that.  If you're doing an embedded device, remove the
built-in launcher, and make your activity the default home.

intent-filter
action android:name=android.intent.action.MAIN /
category android:name=android.intent.category.HOME /

category
android:name=android.intent.category.DEFAULT /
/intent-filter

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: how to programatically pause an application?

2010-06-15 Thread Joe Onorato
This is the intent that's launched when you press the home key:

mHomeIntent =  new Intent(Intent.ACTION_MAIN, null);
mHomeIntent.addCategory(Intent.CATEGORY_HOME);
mHomeIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK
| Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);

-joe




On Jun 15, 11:07 am, Mark Murphy mmur...@commonsware.com wrote:
 On Tue, Jun 15, 2010 at 10:42 AM, guich guiha...@gmail.com wrote:
  Thanks, but something went wrong.
  I can see the onPause and onResume being called for my app, but the
  screen is blank after the resume. This does not happen when i press
  the home key.

 Hmmm...the docs say that should have worked. Do a bit of searching --
 I am sure the question of how to open the home screen has come up
 before.

 --
 Mark Murphy
 CommonsWare
 mmur...@commonsware.comhttp://commonsware.com

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Can I Please Get Some Help?

2010-05-24 Thread Joe
Ok, I literally know nothing about programming.  I took one class of C+
+ 6 years ago in college.  But, I really want to develop something for
my android phone.  I looked all over google, read a couple of
tutorials, and I went to the developers website.  So far, I was able
to download the android packages along with eclipse, and I was able to
create Hello World.

But I am having a really hard time figuring out the other stuff I want
to do.  I think it's pretty simple.  But if it's not, I'm not above
abandoning this.  I'm a lawyer and I think it would be extremely
useful to carry things like the Code of Federal Regulations, the
United States Code, or the Internal Revenue Code in phone form as
opposed to using extremely large volumes.  I think it would also beat
having to go on a computer and using an online source.

To that end, all I want to do is create something that would let me
see that information.  For example, the Internal Revenue Code is
usually broken down into Title - Subtitle - Chapter - Subchapter -
Part - Section.  Then the section displays the text you would want to
see.  I would have all this information down, and then maybe add a
search so you can just put in the section number you want to see so
someone can skip going through that tedious process.

Looking around on the tutorial, I think what I'm doing is somehow
related to contentproviders or an SQLitedatabase?  But when I look at
those pages, all I see are the tools I can use and no way I can use
them.  At least, that's what it seems like to me.  Any help on this
would be greatly appreciate and I'm sure there are people all over the
country that would be thankful as well!  Thank you!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to upgrade my Android dev Phone 1 to 2.x release?

2010-03-27 Thread Joe
Is it possible to upgrade Android dev phone (the first version) to
latest release (either 2.0 or 2.1)?

I appreciate if you can point me right links.

Thanks
Joe

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Re: getContextMenuInfo() returns null on sub-menu MenuItems

2010-03-02 Thread Joe
I've recently run into this issue as well, where I was relying on
MenuInfo containing the AdapterContextMenuInfo (for position in the
ListView) on the submenu.

The only workaround I've found so far is to store the MenuInfo in a
member variable while the context menu is open, and release it
onContextMenuClosed:


// Member variable for keeping track of the MenuInfo between submenus
of a ListView's items
private AdapterContextMenuInfo lastMenuInfo = null;

public void onCreateContextMenu(ContextMenu menu, View v,
ContextMenuInfo menuInfo)
{
// Keep track of the current MenuInfo
lastMenuInfo = (AdapterContextMenuInfo) menuInfo;
}

public boolean onContextItemSelected(MenuItem menuItem)
{
AdapterContextMenuInfo info = (AdapterContextMenuInfo)
menuItem.getMenuInfo();
if (info == null)
{
// Grab it from the member placeholder.  If this is 
still null,
it's a bug (?)
info = lastMenuInfo;
}
}

public void onContextMenuClosed(Menu menu)
{
// We don't need it anymore
lastMenuInfo = null;
}



On Mar 2, 1:40 pm, TreKing treking...@gmail.com wrote:
 Thought I'd bring this back up one more time (maybe getting a Google
 Engineer to comment on this) before I submit this as a bug.

 This also holds true for AdapterView.AdapterContextMenuInfo.

 Thanks.

 -
 TreKing - Chicago transit tracking app for Android-powered 
 deviceshttp://sites.google.com/site/rezmobileapps/treking

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Voice recognition and voice decoding

2010-01-12 Thread Joe McCann
Speech-to-text is processed in the cloud and the resulting data is
returned.

On Jan 11, 5:36 am, tina lincon tina.theresalin...@wipro.com wrote:
 How is it possible to implement voice recognition on android phones?
 Also to decode the voice and convert the male voice to female voice
 and vice versa?The voice data input from the user will be sent to the
 Google site
 for recognition through Internet, or will be processed and recognized
 locally on my android phone?
  if anyone has any idea regarding it,plzz help..
 Thanks in advance,
-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Accessing Email Attachments

2010-01-10 Thread Joe
I am trying to access an email attachment, what is the best
approach?

I have tried using a content provider like content://
com.android.email.attachmentprovider, but i get a security
exception.  When i add a permissions like

uses-permission
android:name=com.android.email.permission.READ_ATTACHMENT/uses-
permission

I still get the security exception.

Is there some other uses-permissions that i need to use?  Or is there
another better way to access an email or email attachments?   Do I
need to write my own email client?  If so, then where do i start to do
this?

thx for any help

Joe C
-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Debugging the framework

2010-01-05 Thread Joe Onorato
The KeyInputQueue runs in the system process, and your test app runs
in its own process.  You need to connect two debuggers.  When I debug
this code, I usually use Log.d debugging instead, because while
possible, connecting two debuggers is kind of a pain.

-joe


On Jan 4, 6:46 am, Matan matanshap...@gmail.com wrote:
 Hi,

 I did the following:
 Modified frameworks/base/services/java/com/android/server/
 KeyInputQueue.java and flashed it to my G1.
 Rebuilt
 Deployed to the G1
 Created a demo test app
 Started debugging the demo app from Eclipse with one breakpoint in a
 central location in KeyInputQueue.java and another in my main activity
 in the demo app.

 The debugger stops at the breakpoint located in the activity but
 doesn't stop in KeyInputQueue.java although it's executing this row
 for sure when i touch the touchscreen.

 Did I do anything wrong ?
 How can i debug files in the framework like KeyInputQueue.java ? Is it
 possible ?

 Thanks a lot,
 Matan
-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Contact Picking on Motorola Cliq (1.5)?

2010-01-05 Thread Joe Jack
My phone was doing this and I did Master Reset an I think this has
fixed it. The error message I was getting went as SORRY process
com.motorola.blur.friendfeed will now foreclose, or something
similar! Hope this helps.Reset instructions are as follows. Please
keep in mind I'm not an expert and I don't gaurentee this will work.

Motorola CLIQ Device Information - How to perform a master reset
backup inforamtion press menu tap setting tap sd card  storage tap
data factory reset tap reset phone tap erase everything.

On Dec 29 2009, 6:24 pm, jak. koda...@gmail.com wrote:
 Hello Suzanne,

 I'm glad to hear that there is a fix in the works for this bug.
 Are you aware that there is also a bug when using the create intent?

 Intent(Intent.ACTION_INSERT,Contacts.People.CONTENT_URI);

 This does allow me to create a new contact, but the result it sends
 back to my onActivityResult callback is useless.

   protected void onActivityResult(int requestCode, int resultCode, Intent 
  data) {}

 Whenever the user is done creating a contact, I get a call to my on
 activity result with resultCode set to 0 (AKA: RESULT_CANCELED), and
 data is null;
 Even though the contact creation was successful!

 This is not the default Android behavior.
 When a user uses this intent to create a new contact, the
 onActivityResult should pass a -1 for the result (AKA: RESULT_OK).
 And the Intent data should contain a Uri to the newly created contact,
 accessible via data.getData().

 Since Motorola's implementation of contacts sends back RESULT_CANCELED
 for any contact insert, there's no way for our App that started the
 Intent to know when we have a valid result to act on.

 If Motorola completely re-implements parts of the Android OS, I really
 wish they would be careful not break the programmer interfaces.
 It makes us developers look bad when our Apps don't work on your
 devices when It really isn't even our fault.

 Thanks for your help.

 On Dec 2, 1:19 pm, suzanne.alexandra



 suzanne.alexan...@motorola.com wrote:
  I'm happy to say this bug has been fixed and is expected to be
  released toCLIQusers in an upcoming OTA upgrade. I would anticipate
  early next year for this.

  --
  Suzanne Alexandra
  Motorolahttp://developer.motorola.com- Hide quoted text -

 - Show quoted text -
-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Droid AVD (2.0, WVGA854) resolution hell

2009-12-23 Thread Joe
Make sure you tag your resource directories with -v4 so that they are
ignored by any thing less than 1.6

e.g. if you have res/layout-small/ make it res/layout-small-v4

Note that if you add size- or density-specific resource directories
tagged with any of the resource qualifiers listed in this document,
you should make sure to also tag those directories with the vapi-
level qualifier (for example, -v4). This ensures that those resources
will be ignored when the application is run on Android 1.5 or lower
platform versions

from http://developer.android.com/guide/practices/screens_support.html

I still have a problem with the WVGA854 AVD, it appears that it
doesn't know that it is hdpi. It doesn't pick up hdpi resources... The
WVGA800 AVD is fine though.



On Dec 22, 10:07 pm, greg1x gre...@yahoo.com wrote:
 Thank you Dianne!

 Now I got it to work from 1.6 to 2.0 on all screen sizes.
 Except it doesn't work on 1.5 anymore. minSdkVersion is 3, so it
 starts in the 1.5AVD, but force closes when it tries to load a
 reasource.
 It worked before from 1.0 to 2.0.1, it only had resolution scaling
 issues. I did not implement any 1.6 specific features since then, just
 re-created the project from existing source with 1.6 target 
 minSdk=3.

 LogCat shows:

 12-22 14:57:15.044: WARN/dalvikvm(725): threadid=3: thread exiting
 with uncaught exception (group=0x4000fe70)
 12-22 14:57:15.044: ERROR/AndroidRuntime(725): Uncaught handler:
 thread main exiting due to uncaught exception
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):
 android.content.res.Resources$NotFoundException: File res/drawable-
 nodpi/brick.png from drawable resource ID #0x7f020005
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):     at
 android.content.res.Resources.loadDrawable(Resources.java:1641)
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):     at
 android.content.res.Resources.getDrawable(Resources.java:535)
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):     at
 com.g1x.bgame.BGameView$BGameThread.setSurfaceSize(BGameView.java:394)
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):     at
 com.g1x.bgame.BGameView.surfaceChanged(BGameView.java:1456)
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):     at
 android.view.SurfaceView.updateWindow(SurfaceView.java:358)
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):     at
 android.view.SurfaceView.dispatchDraw(SurfaceView.java:259)
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):     at
 android.view.ViewGroup.drawChild(ViewGroup.java:1484)
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):     at
 android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):     at
 android.view.ViewGroup.drawChild(ViewGroup.java:1484)
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):     at
 android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):     at
 android.view.View.draw(View.java:5841)
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):     at
 android.widget.FrameLayout.draw(FrameLayout.java:352)
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):     at
 android.view.ViewGroup.drawChild(ViewGroup.java:1486)
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):     at
 android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):     at
 android.view.View.draw(View.java:5841)
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):     at
 android.widget.FrameLayout.draw(FrameLayout.java:352)
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):     at
 com.android.internal.policy.impl.PhoneWindow$DecorView.draw
 (PhoneWindow.java:1847)
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):     at
 android.view.ViewRoot.draw(ViewRoot.java:1217)
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):     at
 android.view.ViewRoot.performTraversals(ViewRoot.java:1030)
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):     at
 android.view.ViewRoot.handleMessage(ViewRoot.java:1482)
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):     at
 android.os.Handler.dispatchMessage(Handler.java:99)
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):     at
 android.os.Looper.loop(Looper.java:123)
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):     at
 android.app.ActivityThread.main(ActivityThread.java:3948)
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):     at
 java.lang.reflect.Method.invokeNative(Native Method)
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):     at
 java.lang.reflect.Method.invoke(Method.java:521)
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):     at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
 (ZygoteInit.java:782)
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):     at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):     at
 dalvik.system.NativeStart.main(Native Method)
 12-22 14:57:15.075: ERROR/AndroidRuntime(725): Caused by:
 java.lang.IllegalArgumentException: width and height must be  0
 12-22 14:57:15.075: ERROR/AndroidRuntime(725):     at

[android-developers] Please help me find documentation on actions for the manifest file

2009-12-10 Thread Joe Mihalich

   Hi,

  This has been killing me.  I finally found examples around the
net for things I wanted to experiment with.  I had to go searching cuz
I could find this information anywhere in the API Docs.

  Two things specifically that I'm interested in are:

  1) For listening for broadcast SMS messages through a broadcast
receiver, I see that you have to defined the action, for the intent in
the broadcast receiver element as:

receiver android:name=.myClassName
intent-filter
action android:name=
android.provider.Telephony.SMS_RECEIVED /
/intent-filter

First, where is that name
android.provider.Telephony.SMS_RECEIVED defined?  How am I supposed to
track that down in the API Doc?  There is no
android.provider.Telephony class or package.

Second, in the code for receiving the actual broadcast, I see
you need to do something like this to get the message(s).

Object[] pdus = (Object[]) bundle.get(pdus);

Where is it defined that the extra name in the bundle is
pdus for SMS messages.

 2) OK, similar thing for receiving GMail and Exchange email
delivery notifications.

 First, is there a way to get them via a broadcast receiver?

 I see code floating around that you need to do something like
this instead:

contentResolver.registerContentObserver(Uri.parse(content://gmail-
ls), true, gmailObserver);

Cursor conversations = _contetResolver.query(
Uri.parse(content://gmail-ls/
conversations/
+
YourEmailAddress, null, null, null, null);


And the actual conversation messages will be:
Cursor messages = _contetResolver.query(Uri
.parse
(content://gmail-ls/conversations/
 
+ YourEmailAddress + /
 
+ String.valueOf(conversationId)
 
+ /messages), null, null, null, null);

  If this is how you have to do it, then that's fine.  But
where is this documented so that I could have figured this out myself?

Thanks,
Joe


-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Please help me find documentation on actions for the manifest file

2009-12-10 Thread Joe Mihalich
 Hi,

 I sent this out last night, but I didn't see it come through, so I'm
sending it again.  Sorry if it is a duplicate.

 This has been killing me.  I finally found examples around the
net for things I wanted to experiment with.  I had to go searching cuz
I could find this information anywhere in the API Docs.

 Two things specifically that I'm interested in are:

 1) For listening for broadcast SMS messages through a broadcast
receiver, I see that you have to defined the action, for the intent in
the broadcast receiver element as:

   receiver android:name=.myClassName
   intent-filter
   action android:name=
   android.provider.Telephony.SMS_RECEIVED /
   /intent-filter

   First, where is that name android.provider.Telephony.SMS_RECEIVED
defined?  How am I supposed to
track that down in the API Doc?  There is no android.provider.Telephony
class or package.

   Second, in the code for receiving the actual broadcast, I see you
need to do something like this to get the message(s).

   Object[] pdus = (Object[]) bundle.get(pdus);

   Where is it defined that the extra name in the bundle is pdus for
SMS messages.

2) OK, similar thing for receiving GMail and Exchange email delivery
notifications.

First, is there a way to get them via a broadcast receiver?

I see code floating around that you need to do something like this
instead:

contentResolver.registerContentObserver(Uri.parse(content://gmail-ls),
true, gmailObserver);
Cursor conversations =
_contetResolver.query(Uri.parse(content://gmail-ls/conversations/ +
YourEmailAddress, null, null, null, null);

And the actual conversation messages will be:
Cursor messages =
_contetResolver.query(Uri.parse(content://gmail-ls/conversations/+
YourEmailAddress + /
  + String.valueOf(conversationId)
  + /messages), null, null, null, null);

If this is how you have to do it, then that's fine.  But where is this
documented so that I could have figured this out myself?

   Thanks,
   Joe

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

  1   2   >