[android-developers] Re: Google Play NullPointerException

2017-02-10 Thread Carl Hasselskog
We are experiencing the same issue. Did you manage to solve it?

Regards
Carl

On Wednesday, November 9, 2016 at 11:21:21 AM UTC+1, Mauro López Arias 
wrote:
>
> Hello,
>
> We've uploaded a new beta APK for our app and we've been reported with a 
> crash from the automatic tests.
>
> Model: Motorola
> Version: Android 4.4
> Language: hi_IN
>
>
>
> The callstack is the following:
>
>  FATAL EXCEPTION: main
>  Process: com.android.vending, PID: 12102
>  java.lang.NullPointerException
>   at 
> com.google.android.finsky.utils.NotificationManager.showSuccessfulUpdateMessage(NotificationManager.java:233)
>   at 
> com.google.android.finsky.utils.NotificationManager.showSuccessfulInstallMessage(NotificationManager.java:183)
>   at 
> com.google.android.finsky.receivers.InstallerTask.cleanup(InstallerTask.java:1384)
>   at 
> com.google.android.finsky.receivers.InstallerTask.advanceState(InstallerTask.java:714)
>   at 
> com.google.android.finsky.receivers.InstallerTask.access$1000(InstallerTask.java:88)
>   at 
> com.google.android.finsky.receivers.InstallerTask$3.installCompleted(InstallerTask.java:1233)
>   at 
> com.google.android.finsky.utils.PackageManagerHelper$OnCompleteListenerNotifier$1$1.run(PackageManagerHelper.java:292)
>   at android.os.Handler.handleCallback(Handler.java:733)
>   at android.os.Handler.dispatchMessage(Handler.java:95)
>   at android.os.Looper.loop(Looper.java:136)
>   at android.app.ActivityThread.main(ActivityThread.java:5102)
>   at java.lang.reflect.Method.invokeNative(Native Method)
>   at java.lang.reflect.Method.invoke(Method.java:515)
>   at 
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
>   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
>   at dalvik.system.NativeStart.main(Native Method)
>
>
> None of this methods/files is from our code. Is this a known bug?
>
> Thanks.
>
> Mauro.
>

-- 
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/4a9ea8c3-2de9-440b-a400-fc5fb5c81479%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Android Things

2016-12-15 Thread Carl Whalley
Where is the best place to discuss this - is there a Google Group etc?

-- 
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/221fccf9-2e26-4277-bc52-5a5cd4ae1e6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: AsyncTask - wait until the task has finished

2016-08-20 Thread Carl Hopkinson
Always demanding no waiting for async io to finish is not realistic since 
many applications cannot do useful work until the results are in over the 
wire. Results of network calls are often used as inputs to computations and 
not simply as populating views.  Until the computations are done, the app 
can really do no useful work.  In these cases, requiring no waiting on 
AsyncIO (.get() call) only vastly over-complicates the app for no 
beneficial purpose.

On Monday, August 17, 2009 at 10:49:29 AM UTC-4, Tom wrote:
>
> Hi, 
>
> I use a subclass of AsyncTask in the main Thread. 
> I would like the main Thread wait for the end of the AsyncTask. 
>
> How can I do that? 
>
> I saw methods "get()" in AsyncTask but I don't understand them. 
>
> Best Regards 
> Tom

-- 
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/c81c9884-80c0-4289-95e2-5f01f474e38c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Android application company

2016-07-12 Thread Jacob Carl
Anyone looking for best Mobile application development India 
 ? I suggest you FuGenX Technologies . FuGenX 
is the one of 
leading Mobile app development companies in USA & India. We have a 
professional team that is well-experienced in making applications for 
Androids, Windows as well as iOS.

-- 
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/9f358c41-1ba1-4a5f-ad49-66e516bd6468%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Android Studio Installation Problem

2016-07-06 Thread Carl N
I have a chromebook running Arm hard float... I can install linux on chroot. 
Great! Problem is.. when I download android studio jdk it won't run without 
java, I install the oracle java for hard float great! Problem is when I run 
android studio it requires library files that are only available as i386 
architecture...

What ? Why is this ? I can install them by adding a foreign architecture using 
dpkg add architecture... but then it will always say they are missing...I get 
this damn mksdcard is not available message... because the 32 bit library files 
are ONLY available as i386 architecture... so my arm chromebook can't even 
process these library files... does anyone else have this problem ? Come on 
google not everyone runs on an Intel based processor who wants to develop apps.

-- 
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/9bf77b72-eda6-4e64-a2cd-5e9607786871%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Cant Unpublish APK from Beta

2016-03-19 Thread Carl
Something similar happened to me a week ago.  It's a trap for the unwary, 
and they need a warning for it, and in fact I wrote to support suggesting 
that, and they said they would look into it.

But it's no mystery what happened to you.  There's a rule in Google Play 
that once you have published an app with targetSdkVersion set to 23 or 
above, you cannot go back to a version prior to 22.  Even if you have only 
published to Beta.  Even if you only have one person testing your app in 
Beta, and that person is yourself.

The reason for this is the very different approach to permissions in API 
level 23 (Marshmallow).  Instead of having all permissions approved by the 
user at install time, approvals for permissions are requested by the app 
itself at run time.

So, I guess that they are concerned that someone might have downloaded your 
app and been asked for permissions, and denied those permissions, but then 
they could update the app and get an APK using the old permissions model, 
with all permissions assumed to have been already approved at install time, 
when in fact the user had denied some or all of the permissions.

Anyway, you have only one possible course of action if you ever want to 
update your app again:  you need to publish your next update with 
targetSdkVersion set to 23 or higher.  And, with a higher version number, 
of course.

As you've already pointed out, you cannot remove either of your two Beta 
versions, because deleting the most recent one would send you back to a 
pre-Marshmallow version.

Note that if you want code requiring permissions to work, you will have to 
write whatever new code is needed to ask the user for permissions at run 
time, rather than at install time.  It's not all that hard to do, although 
it's not entirely trivial.  It's a bit tricky dealing with all the obscure 
use cases in which the user messes with the permissions from app settings 
and then returns to your app.  I just did this myself and it involves lots 
of annoying little situations, but it's ultimately doable.  Enjoy.

On Wednesday, March 16, 2016 at 1:55:06 PM UTC-7, Gameplay SmackDowns wrote:
>
> Anyone? Cant seem to get a response from Google Support.
>
> On Tuesday, March 15, 2016 at 7:20:41 PM UTC-4, Gameplay SmackDowns wrote:
>>
>> In the Beta channel we were troubleshooting an apk issue. Current beta 
>> versions were being built in Android Studio, but to test we compiled and 
>> published an older version from Eclipse (with new version number). This was 
>> build 42 (1.4.0).
>>
>> After, we moved back to Android Studio. However, now any build we publish 
>> past 42 (1.4.0) gives the following error.
>>
>> This configuration cannot be published for the following reason(s): It is 
>> forbidden to downgrade devices which previously used M permissions (target 
>> SDK 23 and above) to APKs which use old style permissions (target SDK 22 
>> and below). This occurs in the change from version 42 (target SDK 23) to 
>> version 28 (target SDK 21). 
>>
>> We now have two apk stuck at once in beta (see attached pic)
>>
>>
>>
>> 
>>
>>
>> We cant deactivate build 42 or we get forbidden to downgrade devices 
>> which previously used M permissions error. 
>>
>> We cant deactivate 46 or we get It is forbidden to downgrade devices 
>> which previously matched *version 46* to *version 42* error
>>
>>
>> SDK IS configured at 23 since beginning.
>>
>>
>> So now we are stuck with two builds published to beta and cant dedicate 
>> either. We can upload another but no matter what we do build 42 will not be 
>> replaced or deactivated or we get previously used M permissions error. 
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>

-- 
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/259c8235-222c-4ec3-8a3c-9c2b69dcb888%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Cant Unpublish APK from Beta

2016-03-19 Thread Carl
I'm confused regarding what you are saying; we need to clarify:

1. When you say "targeting 23" are you referring to the targetSdkVersion in 
the manifest, or are you referring to the project build target?

2. When you say that you have tried my suggestion, are you saying that you 
have tried to publish a *new* APK having version 47, with 
targetSdkVersion="23" (and project build target also 23), and that you are 
getting an error when you do that, *and* that the error is the listed error 
(in red text) that refers to changing from version 42 to version 28?  That 
would be very strange.

3. Why would you say that "We can upload another but no matter what we do 
build 42 will not be replaced or deactivated or we get previously used M 
permissions error."  From what you have listed, build 42 has *already* been 
replaced (in Beta) by build 46.  So I don't see why you couldn't just 
promote 46 to production (if it is behaving correctly) or, if not yet 
correct, replace it with a revised build 47 that does work correctly, and 
that has targetSdkVersion="23" (and project build target also 23).

Carl

On Thursday, March 17, 2016 at 8:09:53 AM UTC-7, Gameplay SmackDowns wrote:
>
> In addition to our new builds targeting 23 (as you suggested), and still 
> getting the error - the error (in screenshot red) is referencing build 28, 
> even though build 28 is what is live in production and we are working in 
> the beta channel. We essentially have two builds now stuck in beta (46 and 
> 42) with no way for us to deactivate build 42 and move on to other builds. 
> We just need to deactivate 42, keeping 46 which IS targeting sdk 23.
>
> On Thursday, March 17, 2016 at 8:11:13 AM UTC-4, Carl wrote:
>>
>> Something similar happened to me a week ago.  It's a trap for the unwary, 
>> and they need a warning for it, and in fact I wrote to support suggesting 
>> that, and they said they would look into it.
>>
>> But it's no mystery what happened to you.  There's a rule in Google Play 
>> that once you have published an app with targetSdkVersion set to 23 or 
>> above, you cannot go back to a version prior to 22.  Even if you have only 
>> published to Beta.  Even if you only have one person testing your app in 
>> Beta, and that person is yourself.
>>
>> The reason for this is the very different approach to permissions in API 
>> level 23 (Marshmallow).  Instead of having all permissions approved by the 
>> user at install time, approvals for permissions are requested by the app 
>> itself at run time.
>>
>> So, I guess that they are concerned that someone might have downloaded 
>> your app and been asked for permissions, and denied those permissions, but 
>> then they could update the app and get an APK using the old permissions 
>> model, with all permissions assumed to have been already approved at 
>> install time, when in fact the user had denied some or all of the 
>> permissions.
>>
>> Anyway, you have only one possible course of action if you ever want to 
>> update your app again:  you need to publish your next update with 
>> targetSdkVersion set to 23 or higher.  And, with a higher version number, 
>> of course.
>>
>> As you've already pointed out, you cannot remove either of your two Beta 
>> versions, because deleting the most recent one would send you back to a 
>> pre-Marshmallow version.
>>
>> Note that if you want code requiring permissions to work, you will have 
>> to write whatever new code is needed to ask the user for permissions at run 
>> time, rather than at install time.  It's not all that hard to do, although 
>> it's not entirely trivial.  It's a bit tricky dealing with all the obscure 
>> use cases in which the user messes with the permissions from app settings 
>> and then returns to your app.  I just did this myself and it involves lots 
>> of annoying little situations, but it's ultimately doable.  Enjoy.
>>
>> On Wednesday, March 16, 2016 at 1:55:06 PM UTC-7, Gameplay SmackDowns 
>> wrote:
>>>
>>> Anyone? Cant seem to get a response from Google Support.
>>>
>>> On Tuesday, March 15, 2016 at 7:20:41 PM UTC-4, Gameplay SmackDowns 
>>> wrote:
>>>>
>>>> In the Beta channel we were troubleshooting an apk issue. Current beta 
>>>> versions were being built in Android Studio, but to test we compiled and 
>>>> published an older version from Eclipse (with new version number). This 
>>>> was 
>>>> build 42 (1.4.0).
>>>>
>>>> After, we moved back to Android Studio. However, now any build we 
&g

Re: [android-developers] Re: Cant Unpublish APK from Beta

2016-03-18 Thread Carl Gunther
That is good to hear.  I will make a note of it in case I encounter a
similar situation.

I wonder if this could be a way to get back to targetSdkVersion="22" after
releasing an APK in Beta with targetSdkVersion="23"?

On Fri, Mar 18, 2016 at 9:28 AM, Gameplay SmackDowns 
wrote:

> This has now been resolved. We continued testing on the alpha track. Once
> we pushed an alpha build to production, we were able to disable both builds
> stuck in beta without error. Definitely seems like some sort of bug on
> Google side.
>
> On Friday, March 18, 2016 at 1:18:22 AM UTC-4, Carl wrote:
>
>> I'm confused regarding what you are saying; we need to clarify:
>>
>> 1. When you say "targeting 23" are you referring to the targetSdkVersion
>> in the manifest, or are you referring to the project build target?
>>
>> 2. When you say that you have tried my suggestion, are you saying that
>> you have tried to publish a *new* APK having version 47, with
>> targetSdkVersion="23" (and project build target also 23), and that you are
>> getting an error when you do that, *and* that the error is the listed error
>> (in red text) that refers to changing from version 42 to version 28?  That
>> would be very strange.
>>
>> 3. Why would you say that "We can upload another but no matter what we do
>> build 42 will not be replaced or deactivated or we get previously used M
>> permissions error."  From what you have listed, build 42 has *already* been
>> replaced (in Beta) by build 46.  So I don't see why you couldn't just
>> promote 46 to production (if it is behaving correctly) or, if not yet
>> correct, replace it with a revised build 47 that does work correctly, and
>> that has targetSdkVersion="23" (and project build target also 23).
>>
>> Carl
>>
>> On Thursday, March 17, 2016 at 8:09:53 AM UTC-7, Gameplay SmackDowns
>> wrote:
>>>
>>> In addition to our new builds targeting 23 (as you suggested), and still
>>> getting the error - the error (in screenshot red) is referencing build 28,
>>> even though build 28 is what is live in production and we are working in
>>> the beta channel. We essentially have two builds now stuck in beta (46 and
>>> 42) with no way for us to deactivate build 42 and move on to other builds.
>>> We just need to deactivate 42, keeping 46 which IS targeting sdk 23.
>>>
>>> On Thursday, March 17, 2016 at 8:11:13 AM UTC-4, Carl wrote:
>>>>
>>>> Something similar happened to me a week ago.  It's a trap for the
>>>> unwary, and they need a warning for it, and in fact I wrote to support
>>>> suggesting that, and they said they would look into it.
>>>>
>>>> But it's no mystery what happened to you.  There's a rule in Google
>>>> Play that once you have published an app with targetSdkVersion set to 23 or
>>>> above, you cannot go back to a version prior to 22.  Even if you have only
>>>> published to Beta.  Even if you only have one person testing your app in
>>>> Beta, and that person is yourself.
>>>>
>>>> The reason for this is the very different approach to permissions in
>>>> API level 23 (Marshmallow).  Instead of having all permissions approved by
>>>> the user at install time, approvals for permissions are requested by the
>>>> app itself at run time.
>>>>
>>>> So, I guess that they are concerned that someone might have downloaded
>>>> your app and been asked for permissions, and denied those permissions, but
>>>> then they could update the app and get an APK using the old permissions
>>>> model, with all permissions assumed to have been already approved at
>>>> install time, when in fact the user had denied some or all of the
>>>> permissions.
>>>>
>>>> Anyway, you have only one possible course of action if you ever want to
>>>> update your app again:  you need to publish your next update with
>>>> targetSdkVersion set to 23 or higher.  And, with a higher version number,
>>>> of course.
>>>>
>>>> As you've already pointed out, you cannot remove either of your two
>>>> Beta versions, because deleting the most recent one would send you back to
>>>> a pre-Marshmallow version.
>>>>
>>>> Note that if you want code requiring permissions to work, you will have
>>>> to write whatever new code is needed to ask the user for permissions at run
>>>> time, rather than at i

[android-developers] Marshmallow stops showing SeekBar thumb when vertical

2015-10-15 Thread Carl Whalley
Posted to SO but there's no reply - anyone come across this?
http://stackoverflow.com/questions/33112277/android-6-0-marshmallow-stops-showing-vertical-seekbar-thumb

-- 
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] OpenAMF

2013-04-22 Thread Carl Primary
We use OpenAMF to communicate between our Flash GUI and our Java 
server... does anyone know of an Android client for OpenAMF that we can 
use to communicate between Android and the Java server?


Thanks,

Carl

--
--
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] Re: Android bulk app purchases B2b

2012-12-20 Thread Carl
In general, Google does not require that you sell your app exclusively 
through Google Play.  Therefore, as far as I know, you have the option of 
selling a site license to your clients and allowing them to download it off 
your own Web site.  That also would save you the 30 percent that Google 
takes as its share.  Check the relevant policies on Google to make sure 
there are no restrictions in your particular case.  For example, if you 
offer a free app on Google Play, I *think* that you're prevented from 
linking to a paid upgrade outside Google Play, but check this for yourself.

Google Play is a great way to reach individual users, but if you are doing 
a bulk sale then other options may make more sense.

Carl


On Thursday, April 5, 2012 10:55:03 AM UTC-7, android dev wrote:
>
> I am a developer of medical apps for android phone and tablets, we 
> sell content to large institutions. I am doing some investigation of 
> how to make bulk app purchases with our partner companies, 
> institutions, and hospitals. 
>
> For an example use case, consider a hospital would like to make a bulk 
> purchase of 100 of our android apps for distribution to it's resident 
> drs and nurses. The point is that the individual drs and nurses should 
> not have to pay, the organization is buying the apps (or redeemable 
> wallet pts) for their employees. 
>
> In the google play documentation, it specifically says: 
>
> "Please note that it is against Google Checkout's policies to purchase 
> your own application. You will receive an error message when you try 
> to purchase your own application." 
>
> so I guess that rules out my company buying multiple app licenses 
> "For" the member company.  Perhaps there is a way to by redeemable 
> coupons through Google Play and or Google Wallet? 
>
>  Please inform me regarding the correct procedure for this kind of 
> solution as it relates to Google Wallet and/or Google play android 
> apps. 
>
> 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: Write to another application's internal memory

2012-11-29 Thread Carl


You could try using android:process with the same process name on the 
manifest declaration of the activities in each app between which you wish 
communication to occur.  Note that they will also probably have to share a 
single heap, which may create problems, depending upon how much memory is 
consumed by the apps' activities collectively.  

The purpose of android:process on an activity is to specify that your 
activity should be launched in a process having a specific name. The choice 
of that name may be used either to isolate the activity in its own process 
(other than the one the launched it), or to force it to cohabit in a single 
process with other activities (potentially from different apps) that use 
the same name.

Per the Dev Guide 
(http://developer.android.com/guide/topics/manifest/activity-element.html):

"If the name assigned to this attribute begins with a colon (':'), a new 
process, private to the application, is created when it's needed and the 
activity runs in that process. If the process name begins with a lowercase 
character, the activity will run in a global process of that name, provided 
that it has permission to do so. This allows components in different 
applications to share a process, reducing resource usage."
Both apps also have to be signed by the same certificate.

Per http://developer.android.com/tools/publishing/app-signing.html:

"Application modularity – The Android system allows applications that are 
signed by the same certificate to run in the same process, if the 
applications so requests, so that the system treats them as a single 
application. In this way you can deploy your application in modules, and 
users can update each of the modules independently if needed.

"Code/data sharing through permissions – The Android system provides 
signature-based permissions enforcement, so that an application can expose 
functionality to another application that is signed with a specified 
certificate. By signing multiple applications with the same certificate and 
using signature-based permissions checks, your applications can share code 
and data in a secure manner."

Caveat: While I have successfully used android:process to provide a 
separate heap to a help activity within an app, I have not yet tried to use 
it to communicate between two separate apps.

On Monday, November 26, 2012 11:56:27 PM UTC-8, Android Test wrote:
>
> Hi All,
>
> I have 2 applications with different package names. E.g. App1 and App2.
>
> App1 needs to write some files to App2's internal memory so that it could 
> be uploaded to the backend.
>
> I have used the following in App1 to do so:
>
> filePath = getPackageManager().getPackageInfo("app2.package.name", 
> 0).applicationInfo.dataDir;
>
> I can get the correct path but could not write to it. I checked the 
> logcat, it is showing "Permission denied".
>
> Am I missing something? What's else needs to be done?
>
> 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: Help: My app has violated the spam provisions of the Content Policy

2012-10-12 Thread Carl
If we compare these Google Maps keywords from the response supplied by B0b:

Keywords: maps, navigation, places, latitude, directions, indoor maps, 
local search, Street View, traffic, transit

with the ones that were considered to be objectionable by Google:

*Keywords*: Secret Audio Recorder, Secret Voice Recorder, Spy Recorder, Spy 
Phone, Hidden Recorder, Hidden Voice Recorder, Hidden Mike, Hidden 
Michrophone, Background Recorder, Secret CamCorder, Stealth Audio Recorder, 
Stealth Voice Recording, Audio Recorder, Voice Recorder

we might ask (and not just rhetorically) why the latter are viewed by 
Google as spammy while the former are not.

To me, it seems as though each of the above sets of keywords is quite 
relevant to the app to which it pertains.

However, we can see that many words within the "objectionable" set occur in 
more than one keyword phrase; "Recorder" is repeated nine times,  "Hidden" 
is repeated four times, "Secret," "Audio" and "Voice" are each repeated 
three times,  while "Stealth" and "Spy" each occur twice.

To me, that would seem to be  the main difference.

So, if there is a lesson to be drawn from this, it might be that one should 
not create multiple permutations of keywords just because it is possible to 
arrange them into multiple distinct phrases.

And that, in turn, suggests that if you have the keywords secret, hidden, 
spy, audio, voice, and recorder as keywords, and someone searches for 
Secret Audio Recorder or for Hidden Spy Recorder or some other permutation 
of those terms, Google will direct that user to your app, even though you 
do not have the specific phrase that was typed by the searcher.

But then we might ask why Google itself includes the phrases indoor maps, 
local search and Street View.  Well, I don't know, but it may have 
something to do with the frequency with which people actually search for 
those phrases, as opposed to the individual words.  And Google itself can 
tell you (for the Web) just what those frequencies are.  For example:

http://www.google.com/trends/explore#q=%22local%20search%22%2C%20%22secret%20audio%20recorder%22%2C%20%22secret%20audio%22&cmpt=q

So, that might provide some clue at least of how to avoid using keywords 
that might be flagged as being spammy, even when they appear to be relevant 
to our apps.


On Thursday, August 30, 2012 10:28:48 PM UTC-7, Terry wrote:
>
> I just received an email from the Google Play Team, starting as follows:
>
> "This is a notification that your application, Secret Audio Recording 
> Free, with package ID com..sarf, is currently in violation of our 
> developer terms.
>
> *REASON FOR WARNING*: Violation of the 
> spamprovisions
>  of the Content Policy.
>
>- Do not post repetitive content.
>- Product descriptions should not be misleading or loaded with 
>keywords in an attempt to manipulate ranking or relevancy in the store’s 
>search results.
>
> Your application will be removed if you do not make modifications to your 
> application’s description to bring it into compliance within 7 days"
>
> I would like to change the product description as fast as possible, but I 
> DO NOT KNOW WHAT TO CHANGE!
>
> It would make it simpler if Google could have been more explisit, or that 
> some examples of such violations could have been listed somewhere, but I 
> cannot find any.
> I guess that many other developers have the same problem understanding 
> this.
>
> The app in question is "Secret Audio Recording Free", by terboel.
>
> I shall appreciate all good advice.
>
> Regards Terry
>
>

-- 
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 Developer Console: Pricing Apps

2012-08-06 Thread Carl K.
I have never really cared in detail, even though I'm using it for a while...

After reading the documentation for "Pricing Apps" for "Selling Apps in 
Multiple Currencies" 
(http://support.google.com/googleplay/android-developer/bin/answer.py?hl=en&answer=1169947&topic=15867&ctx=topic),
 I'm still unsure if I understand it correctly. Here some excerpts:

> [...] When an app is uploaded to Google Play, you will be asked
> to set a default price for the app in your home currency. This price
> will be used for all countries/regions which you do not manually
> override.

In my understanding, this means that the default price is used for countries 
that you don't (can't) specify the price manually (as it says..)

Second paragraph:

> For each country that you wish sell your app in, check the box next to
> that country and enter a price. You cannot target a particular country
> without entering a price. [...] The autofill conversion uses the daily
> exchange rate on the day that you set the price; it does not float.

a) If an app should be sold in a specific country, its box requires to be 
checked and set (if a text element is there).
b) The price in that specific country should not float.

Is my understanding so far correct? In b), the price (target currency) DOES 
float ... sometimes, at least. And the original currency does change too at the 
same time. So, I am very confused.

Additional Question: For countries that do not have this currency text-element, 
will the price be automatically set to their currency on save? I guess, it does 
(should) not float either.

Kind Regards,
Carl

-- 
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: AccessibilityEvent in monkey

2012-05-19 Thread Carl H.
how did you initialize the variable?

On Thursday, 2 February 2012 00:31:22 UTC, avi wrote:
>
> I found out the problem. sConnectionId variable has to be initialized 
> to -1 instead of 0 
>
> On Feb 1, 9:43 am, avi  wrote: 
> > I would really appreciate it if someone could help me with the below 
> > problem 
> > 
> > On Jan 27, 10:01 am, avi  wrote: 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > > All, 
> > 
> > > I am trying to develop an UI based automation system and I was 
> > > exploringAccessibilityEventoption inMonkey. Following are the steps 
> > > that I did 
> > > (i) Launchedmonkeyserver socket 
> > > (ii) Opened Settings app (tried other on board apps as well) 
> > > (iii) Created a client socket from host machine and connected to 
> > >monkey'sserver 
> > > (iv) Issued "listviews" command 
> > > (v) I always get the response "No accessibility event has occured yet" 
> > 
> > > Could you please let me know if I am missing something? 
> > 
> > > Thanks, 
> > > Avi

-- 
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: SSL Client Authentication Broken in Android 4.0

2012-01-10 Thread Carl Minden
There certainly were no exceptions. I guess I might have missed a
warning but I don't think so.

as far as trusting the certificate we have an out of band method for
verifying the certificate when you first create the keypair, then
after that the server can check if the cert is the one it expects for
that user.  We do not care about any information contained in the cert
just that we are talking to the same phone (keypair)

On Jan 10, 1:36 am, Nikolay Elenkov  wrote:
> On Tue, Jan 10, 2012 at 6:14 PM, Carl Minden  wrote:
> > Hmm, if there was a parse error I wonder why no exception was thrown,
> > as far as I can tell it just silently failed and didn't send the cert
> > to the server.
>
> Because the framework code swallowed it? Did you see anything suspicious
> in logcat (warnings, etc.)?
>
>
>
> > The reason I am not using the openssl tool is because I am creating
> > the certificate on the phone using an RSA keypair generated at
> > runtime.  I know it probably sounds like i'm doing something wrong/
> > stupid :), but without getting into the details of my system the only
> > thing I need this cert for is to use the keypair to perform SSL client
> > auth and it really doesn't matter if it is signed.
>
> I see. Probably easier to do in Java (using Bouncy Castle APIs) though.
> Still, client authentication should involve the server checking if it trusts
> the client certificate (even if it is self-signed), and it should verify that
> it's not been modified. How do you verify it's not modified if it's not
> signed?

-- 
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: SSL Client Authentication Broken in Android 4.0

2012-01-10 Thread Carl Minden
Hmm, if there was a parse error I wonder why no exception was thrown,
as far as I can tell it just silently failed and didn't send the cert
to the server.

The reason I am not using the openssl tool is because I am creating
the certificate on the phone using an RSA keypair generated at
runtime.  I know it probably sounds like i'm doing something wrong/
stupid :), but without getting into the details of my system the only
thing I need this cert for is to use the keypair to perform SSL client
auth and it really doesn't matter if it is signed.



On Jan 10, 12:25 am, Nikolay Elenkov 
wrote:
> On Tue, Jan 10, 2012 at 4:32 PM, Carl Minden  wrote:
> > when I made the certificate in openssl I did not call X509_sign() to
> > sign it...for my use case it didn't need to be signed so I hadn't
> > bothered.
>
> I see. If it's not signed, it not technically a certificate, so it's funny
> that it worked before. (signatureValue is requried) Android was
> probably just ignoring the parse error.
>
> > I changed my code so that I signed the certificate with its private
> > key and then added the signed certificate to the STACK_OF(X509)
> > certificate authority cert chain used to created the pkcs12
> > certificate with pkcs12_create().
>
> Why not use the openssl commands? Those have (some) error
> checking and shouldn't produce a malformed PKCS#12 file, etc.
>
> > I believe I didn't have to pass the SSLSocketFactory a truststore
> > because that information was included in the pkcs12 certificate via
> > the CA cert chain.
>
> Looks like it. Still it probably shouldn't trust it implicitly... Will check
> the code later to see what is going on.

-- 
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: SSL Client Authentication Broken in Android 4.0

2012-01-09 Thread Carl Minden
when I made the certificate in openssl I did not call X509_sign() to
sign it...for my use case it didn't need to be signed so I hadn't
bothered.

I changed my code so that I signed the certificate with its private
key and then added the signed certificate to the STACK_OF(X509)
certificate authority cert chain used to created the pkcs12
certificate with pkcs12_create().

I believe I didn't have to pass the SSLSocketFactory a truststore
because that information was included in the pkcs12 certificate via
the CA cert chain.

On Jan 9, 10:20 pm, Nikolay Elenkov  wrote:
> On Tue, Jan 10, 2012 at 3:12 PM, Carl Minden  wrote:
>
> > On Jan 8, 9:04 pm, Nikolay Elenkov  wrote:
> >> Are you using a self-signed certificate for the server? If you are, you
> >> need to either add it to the system trust store, or pass your custom
> >> trust store to  SSLSocketFactory.
>
> > I was actually using an unsigned certificate which turned out to be
> > the problem...
>
> What do you mean by an 'unsigned certificate'?

-- 
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: SSL Client Authentication Broken in Android 4.0

2012-01-09 Thread Carl Minden


On Jan 8, 9:04 pm, Nikolay Elenkov  wrote:
> Are you using a self-signed certificate for the server? If you are, you
> need to either add it to the system trust store, or pass your custom
> trust store to  SSLSocketFactory.

I was actually using an unsigned certificate which turned out to be
the problem, apparently as of ICS the SSLSocketFactory (or some other
part of the system) will no longer properly accept unsigned x509
certificates (which I used to create the pkcs12 cert). I just had to
self sign the certificate and my existing java code worked fine.

-- 
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] SSL Client Authentication Broken in Android 4.0

2012-01-08 Thread Carl Minden
I have an Android app which uses an SSLSocketFactory to load a pkcs12
certificate and use that certificate to perform SSL Client
authentication with my server. This process worked perfectly on
Android 2.1, 2.2, and 2.3, but when I attempt to run this code on a
phone or emulator running 4.0 my server does not receive a public key
from the request made by my application.  There is no exception thrown
and the request makes it to my server fine, it just does not contain
the client certificate as it should and did before.

Here is the code I am using to get the HttpClient I use to perform my
request

private HttpClient getHttpClient(Context context) {

if(httpClient == null) {
KeyStore mycert = KeyStore.getInstance("pkcs12");
byte[] pkcs12 =
persistentStorage.getPKCS12Certificate(context);

ByteArrayInputStream pkcs12BAIS = new
ByteArrayInputStream(pkcs12);
mycert.load(pkcs12BAIS, config.getPassword().toCharArray());

SSLSocketFactory sockfact = new SSLSocketFactory(mycert, null,
null);

sockfact.setHostnameVerifier(new StrictHostnameVerifier());

SchemeRegistry registry = new SchemeRegistry();
registry.register(new Scheme("https",sockfact ,
config.getPort()));

BasicHttpParams httpParameters = new BasicHttpParams();
HttpProtocolParams.setUseExpectContinue(httpParameters,
false);
HttpProtocolParams.setVersion(httpParameters,
HttpVersion.HTTP_1_1);

HttpConnectionParams.setConnectionTimeout(httpParameters,
3000);
HttpConnectionParams.setSoTimeout(httpParameters, 3000);

ThreadSafeClientConnManager cm = new
ThreadSafeClientConnManager(httpParameters, registry);
cm.closeExpiredConnections();
cm.closeIdleConnections(3000, TimeUnit.MILLISECONDS);

httpClient = new DefaultHttpClient(cm, httpParameters);

}

return httpClient;
}

-- 
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 SDK Source - how do you install this and get it to work properly?

2012-01-07 Thread Carl Moser

I'm having one heck of a time trying to install the source code for the
Android SDK because I get "Source not found" errors when I try to step
from my code into the SDK's code.  I have Googled this and tried several
suggestions but I still get this error.

I am using Eclipse Indigo and developing for Android 2.2.
I have showing that the Source in installed at Help -> About ->
Installation Details.  There it shows Android Sources are installed.

Any help is appreciated.

Carl


-- 
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] Setting button color in Java but the button color does not reliably change?

2012-01-04 Thread Carl
break;

  default:
 break;

  }

   }

}



Carl

-- 
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: interactive activity manager (am) not functioning

2011-12-15 Thread Carl Nagle
Last night I updated with the r16 update, created a new Emulator AVD,
and the Activity Manager seems to be present now!

Carl

On Dec 12, 3:32 pm, Carl Nagle  wrote:
> I do not seem to have a validactivitymanageravailable from 
> theinteractiveshell. My app has been built, installs, and runs in the
> emulator.  But when I drop into aninteractiveshell with 'adb - e
> shell' or 'adb shell' any attempt to execute theactivitymanager(am)
> does nothing.  The '/system/bin/am' app simply echoes the command it
> received.  Even just typing 'am[enter]'--which should simply give the
> Help--does nothing but echo the command back.  There is noactivityin
> logcat when I execute any 'am' command.  Other commands--notably 'pm'
> in the same /system/bin directory work just fine and as-expected from
> thisinteractiveshell.
>
> Any help, info, or ideas would be greatly appreciated.
>
> I have installed the r15 SDK for windows (installer_r15-windows.exe)
> and have created an emulator AVD for 2.3.3.  It is rather frustrating
> seeing a billion examples of using 'am' from theinteractiveshell but
> finding the command does not work AT ALL in mine.

-- 
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] interactive activity manager (am) not functioning

2011-12-12 Thread Carl Nagle
I do not seem to have a valid activity manager available from the
interactive shell. My app has been built, installs, and runs in the
emulator.  But when I drop into an interactive shell with 'adb - e
shell' or 'adb shell' any attempt to execute the activity manager (am)
does nothing.  The '/system/bin/am' app simply echoes the command it
received.  Even just typing 'am[enter]'--which should simply give the
Help--does nothing but echo the command back.  There is no activity in
logcat when I execute any 'am' command.  Other commands--notably 'pm'
in the same /system/bin directory work just fine and as-expected from
this interactive shell.

Any help, info, or ideas would be greatly appreciated.

I have installed the r15 SDK for windows (installer_r15-windows.exe)
and have created an emulator AVD for 2.3.3.  It is rather frustrating
seeing a billion examples of using 'am' from the interactive shell but
finding the command does not work AT ALL in mine.

-- 
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 logcat's prompt box of ADT 14

2011-10-21 Thread Carl
Hi,
 I updated to ADT 14 and SDK about android 4.0, but there is a prompt
box of logcat, but i don't like it, is there anyway to remove it or
not display it? I found eclipse---preference--logcat, but I could not
find anyplace that can hidden this?

thanks very much

-- 
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: Option to unlock the boot loader for Sony Ericsson Android Gingerbread phones now available.

2011-10-17 Thread Carl
Hi

Just a few words from our side. We have listed the latest Sony
Ericsson Xperia smartphones and respective key press on
unlockbootloader.sonyericsson.com

Some people reported difficulties getting the drivers right with
fastboot under Windows 7 and the XDA-developers community made the
fastboot tool and driver package available for download.
Check out the thread http://forum.xda-developers.com/showthread.php?t=1034087

Best regards
Carl Johansson
Sony Ericsson Developer World

-- 
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 do I develop a Eclipse plugin on top of google's ADT?

2011-09-29 Thread Carl Lee
I think it will be nice to modify or enhance google's ADT, since
Eclipse's plugins are almost all written in Java and in Eclipse.

For example, let DDMS's logcat support regular expression filter; open
sqlite3 database directyly in eclipse by double clicking the db file
in DDMS's file expolrer.

Anyone can give me a hint on how to start off?

-- 
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 - how to define ShapeDrawables programmatically?

2011-08-24 Thread Carl Whalley
What I'm trying to achieve is to use a Drawable with a couple of
layers inside it, but control some values at runtime such as the
startColor for the gradient. Here's what I have in
my_layered_shape.xml:


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

  
  

  
  




  


And if I use
mMyImageView.setBackgroundResource(R.drawable.my_layered_shape) it
works. I don't mind splitting the xml if I have to, or doing the whole
thing programatically as long as there's a way to get at the various
color values. The concept I'm going for programmatically (i.e. my best
shot at doing the same in code as this xml) is:

Drawable[] layers = new Drawable[2];

ShapeDrawable sd1 = new ShapeDrawable(new RectShape());
sd1.getPaint().setColor(0x);
sd1.getPaint().setStyle(Style.STROKE);
sd1.getPaint().setStrokeWidth(1);
// sd1.getPaint().somehow_set_stroke_color?

ShapeDrawable sd2 = new ShapeDrawable(new RectShape());
sd2.getPaint().setColor(0xFF00);
sd2.getPaint().setStyle(Style.STROKE);
// sd2.getPaint().somehow_set_stroke_color?
// sd2.getPaint().somehow_set_gradient_params?

layers[0] = sd1;
layers[1] = sd2;
LayerDrawable composite = new LayerDrawable(layers);
mMyImageView.setBackgroundDrawable(composite);

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: Android Debug Bridge hack

2011-08-17 Thread Carl Lee
I don't think this is a security flaw, because Android will prompt
user when he/she enables "USB Debug", Android will allow adbd to run
only if user agrees to that prompt message.

On Aug 17, 9:07 pm, Mark Murphy  wrote:
> On Wed, Aug 17, 2011 at 8:43 AM, Carl Lee  wrote:
> > By the way, what I want is to get screenshot from the device without
> > the help of a computer
>
> Fortunately, this is not supported, for obvious security and privacy
> reasons. Anything that allows this is exploiting a security flaw in a
> device.
>
> If your objective is to take screenshots of your own app, there are
> ways to do this, though I forget the techniques off the top of my
> head.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.0
> Available!

-- 
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 Debug Bridge hack

2011-08-17 Thread Carl Lee
I've tried android-screenshot-library and it works if I start its
daemon from adb on my computer.
But no app up till now can take screenshot without the help of a
computer and without root permission at the same time.

On Aug 17, 9:01 pm, Appaholics  wrote:
> Extract from my tutorial:
>
> Let us move on to the phone now. You can use the method shown above as well
> by connecting your device. There are however simpler ways. I will now tell
> you about two apps that allow you to take screenshots. The likelihood of
> these working depends on your phone manufacturer and how much freedom they
> give you. They will certainly work on rooted devices. The apps are Screenshot
> It<https://market.android.com/details?id=com.edwardkim.android.screensho...>
>  and ShootMe <https://market.android.com/details?id=com.bw.picme.local>.
> Just install them, set your preferences and use them!! Comment with success
> or failure of these apps with your device name, Android version, and whether
> it is rooted or not to help others.
>
> Both of the aforementioned apps work without root on a lot of devices. If it
> works on yours then leave a comment on the tutorial fro others to see.
>
> Thanks
>
>
>
>
>
>
>
>
>
> On Wed, Aug 17, 2011 at 6:28 PM, Carl Lee  wrote:
> > Thank you but that is not what I want, what I want is to get
> > screenshot from the device without
> > the help of a computer and without root permission
>
> > On Aug 17, 8:47 pm, Appaholics  wrote:
> > > There is a tutorial on that at my sitehttp://
> >www.appaholics.in/lets-take-a-screenshot/.
>
> > > Thanks
>
> > > On Wed, Aug 17, 2011 at 6:08 PM, Carl Lee  wrote:
>
> > > >http://android.git.kernel.org/?p=platform/system/core.git;a=tree;f=ad.
> > ..
>
> > > > I was reading these source code from android git, because I want to
> > > > use a feature of Android Debug Bridge - screenshot.
> > > > Most screenshot apps on market needs Root permission, which I don't
> > > > like very much.
>
> > > >http://code.google.com/p/android-screenshot-library/
> > > > After some googlings and researches, I found this small library that
> > > > allows me to take screenshot without root permission.
> > > > But at last I found out it needs user to install Android SDK, and
> > > > install a native program onto device using adb tool from a computer.
> > > > This is what I wanted, neither.
> > > > So after reading this library's code I found out what it does is
> > > > really simple, read from "/dev/graphics/fb0" and decode it.
> > > > The key of this library is to have the "shell" user permission.
>
> > > > After reading some of the code and docs on Android Debug Bridge's git,
> > > > I found it is possible to communicate with the adbd (which runs on the
> > > > device when "Application->Development->USB debug" is selected) through
> > > > a socket interface.
> > > > I tried it on a emulator and it works!!
> > > > Unfortunately, most devices don't have that socket open. Instead, most
> > > > devices listens on USB device instead of socket.
> > > > Since I am some kind of a "C" noob, I am wondering if I am still able
> > > > to communicate with the adbd daemon from a process that only has
> > > > normal Android application permission and take a screenshot through
> > > > that interface?
>
> > > > --
> > > > 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
>
> > > --
> > > 
> > > Raghav Sood
> > > CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
> > > required to have complete control)
> >http://www.raghavsood.com/https://market.android.com/developer?pub=Ap...
>
> > --
> > 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
>
> --
> 
> Raghav Sood
> CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
> required to have complete 
> control)http://www.raghavsood.com/https://market.android.com/developer?pub=Appaholicshttp://www.appaholics.in/

-- 
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 Debug Bridge hack

2011-08-17 Thread Carl Lee
Thank you but that is not what I want, what I want is to get
screenshot from the device without
the help of a computer and without root permission

On Aug 17, 8:47 pm, Appaholics  wrote:
> There is a tutorial on that at my 
> sitehttp://www.appaholics.in/lets-take-a-screenshot/.
>
> Thanks
>
>
>
>
>
>
>
>
>
> On Wed, Aug 17, 2011 at 6:08 PM, Carl Lee  wrote:
>
> >http://android.git.kernel.org/?p=platform/system/core.git;a=tree;f=ad...
>
> > I was reading these source code from android git, because I want to
> > use a feature of Android Debug Bridge - screenshot.
> > Most screenshot apps on market needs Root permission, which I don't
> > like very much.
>
> >http://code.google.com/p/android-screenshot-library/
> > After some googlings and researches, I found this small library that
> > allows me to take screenshot without root permission.
> > But at last I found out it needs user to install Android SDK, and
> > install a native program onto device using adb tool from a computer.
> > This is what I wanted, neither.
> > So after reading this library's code I found out what it does is
> > really simple, read from "/dev/graphics/fb0" and decode it.
> > The key of this library is to have the "shell" user permission.
>
> > After reading some of the code and docs on Android Debug Bridge's git,
> > I found it is possible to communicate with the adbd (which runs on the
> > device when "Application->Development->USB debug" is selected) through
> > a socket interface.
> > I tried it on a emulator and it works!!
> > Unfortunately, most devices don't have that socket open. Instead, most
> > devices listens on USB device instead of socket.
> > Since I am some kind of a "C" noob, I am wondering if I am still able
> > to communicate with the adbd daemon from a process that only has
> > normal Android application permission and take a screenshot through
> > that interface?
>
> > --
> > 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
>
> --
> 
> Raghav Sood
> CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
> required to have complete 
> control)http://www.raghavsood.com/https://market.android.com/developer?pub=Appaholicshttp://www.appaholics.in/

-- 
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 Debug Bridge hack

2011-08-17 Thread Carl Lee
By the way, what I want is to get screenshot from the device without
the help of a computer

On Aug 17, 8:38 pm, Carl Lee  wrote:
> http://android.git.kernel.org/?p=platform/system/core.git;a=tree;f=ad...
>
> I was reading these source code from android git, because I want to
> use a feature of Android Debug Bridge - screenshot.
> Most screenshot apps on market needs Root permission, which I don't
> like very much.
>
> http://code.google.com/p/android-screenshot-library/
> After some googlings and researches, I found this small library that
> allows me to take screenshot without root permission.
> But at last I found out it needs user to install Android SDK, and
> install a native program onto device using adb tool from a computer.
> This is what I wanted, neither.
> So after reading this library's code I found out what it does is
> really simple, read from "/dev/graphics/fb0" and decode it.
> The key of this library is to have the "shell" user permission.
>
> After reading some of the code and docs on Android Debug Bridge's git,
> I found it is possible to communicate with the adbd (which runs on the
> device when "Application->Development->USB debug" is selected) through
> a socket interface.
> I tried it on a emulator and it works!!
> Unfortunately, most devices don't have that socket open. Instead, most
> devices listens on USB device instead of socket.
> Since I am some kind of a "C" noob, I am wondering if I am still able
> to communicate with the adbd daemon from a process that only has
> normal Android application permission and take a screenshot through
> that interface?

-- 
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 Debug Bridge hack

2011-08-17 Thread Carl Lee
http://android.git.kernel.org/?p=platform/system/core.git;a=tree;f=adb;h=9478be080872bd70b379c8d2b6beb78a535f3b2d;hb=HEAD

I was reading these source code from android git, because I want to
use a feature of Android Debug Bridge - screenshot.
Most screenshot apps on market needs Root permission, which I don't
like very much.

http://code.google.com/p/android-screenshot-library/
After some googlings and researches, I found this small library that
allows me to take screenshot without root permission.
But at last I found out it needs user to install Android SDK, and
install a native program onto device using adb tool from a computer.
This is what I wanted, neither.
So after reading this library's code I found out what it does is
really simple, read from "/dev/graphics/fb0" and decode it.
The key of this library is to have the "shell" user permission.

After reading some of the code and docs on Android Debug Bridge's git,
I found it is possible to communicate with the adbd (which runs on the
device when "Application->Development->USB debug" is selected) through
a socket interface.
I tried it on a emulator and it works!!
Unfortunately, most devices don't have that socket open. Instead, most
devices listens on USB device instead of socket.
Since I am some kind of a "C" noob, I am wondering if I am still able
to communicate with the adbd daemon from a process that only has
normal Android application permission and take a screenshot through
that interface?

-- 
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: finish all running activities in the task above a particular activity.

2011-08-16 Thread Carl Lee
I think you are doing it wrong.
You should probably leave your LoginActivity in stack instead of
finishing it once user is logged in.

The code above will clear all activities above the launching one.
For example:
A -> B -> C -> D
then we do this:
startActivity(new Intent(getApplicationContext(),
B.class).addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP));

result will be;
A -> B

On Aug 16, 5:54 pm, Riv  wrote:
> Will that work if I have a sequence of like 
> HomeActivity->Activity1->Activity2->LoginActivity.
>
> The logging out takes place at Activity2 which launches the
> LoginActivity.
>
> On Aug 16, 2:38 am, Carl Lee  wrote:
>
>
>
>
>
>
>
> > Try this:
> > startActivity(new Intent(getApplicationContext(),
> > Login.class).addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP));
>
> > On Aug 16, 5:32 pm, Riv  wrote:
>
> > > How to finish all activities above the current activity in the task.?
> > > I have an application that has logout option. When i logout and login
> > > again, the last activity that was running before logging out is shown.
> > > I want to finish all activities above the Login activity after logging
> > > out.

-- 
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: finish all running activities in the task above a particular activity.

2011-08-16 Thread Carl Lee
Try this:
startActivity(new Intent(getApplicationContext(),
Login.class).addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP));

On Aug 16, 5:32 pm, Riv  wrote:
> How to finish all activities above the current activity in the task.?
> I have an application that has logout option. When i logout and login
> again, the last activity that was running before logging out is shown.
> I want to finish all activities above the Login activity after logging
> out.

-- 
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: Accessing PostGIS database from Android

2011-08-09 Thread Carl Lee
In the root folder?
I think it should be in /org/postgresql/Driver.class, shouldn't it?

On Aug 9, 7:09 pm, alexbruy  wrote:
> On 9 авг, 12:00, Carl Lee  wrote:
>
> > You may want to check the .jar file you included in you .classpath ,
> > make sure you have Driver.class in it, so the reflection
> > method( that's "Class.forname('org.postgresql.Driver')",which is
> > obviously used in your ReportActivity somehow directly or indirectly)
> > will work correctly in your code.
>
> When I extract JAR there are Driver$1.class, Driver
> $ConnectThread.class
> and Driver.class files in root folder among other files.

-- 
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: Project Ideas

2011-08-09 Thread Carl Lee
How about write a simple twitter client?
It's a relatively difficult one for university students, but I'm sure
you'll learn a lot from it and have fun, you may ask your friends to
use it, and you'll be proud that you made it.
Best regards.

On Aug 9, 1:12 pm, Sahi  wrote:
> Hi,
> I am a University student, And I want to do project  on android, that
> will be avaluated by University.
> Can anybody suggest me some Project idea.

-- 
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: Accessing PostGIS database from Android

2011-08-09 Thread Carl Lee
You may want to check the .jar file you included in you .classpath ,
make sure you have Driver.class in it, so the reflection
method( that's "Class.forname('org.postgresql.Driver')",which is
obviously used in your ReportActivity somehow directly or indirectly)
will work correctly in your code.

On Aug 9, 4:24 pm, alexbruy  wrote:
> Hi,
>
> On 9 авг, 10:48, Calin Perebiceanu 
> wrote:
>
> > You're missing a try catch for java.lang.ClassNotFoundException.
>
> May be I'm unclear. I can catch this exception but as I understand,
> this exception occurs because driver can't be loaded.
> So I want to know how I can add postgresql and postgis JDBC
> drivers into my project and use them. Playing with «Add JAR»,
> «Add external JAR» in Eclipse and with .classpath file didn't helps.
>
> Thanks,
> Alex

-- 
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] How to change the Android system beep sound(when you adjusting the volume by the "+" or "-" key) behavior [where is the code that control it]?

2011-08-04 Thread Carl Lee
Find it in the system partition and replace it, you must have Root
permission to do that

On Thu, Aug 4, 2011 at 5:05 PM, fei wang  wrote:

> How to change the Android system beep sound(when you adjusting the volume
> by the "+" or "-" key) behavior [where is the code that control 
> 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

-- 
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: Option to unlock the boot loader for Sony Ericsson Android Gingerbread phones now available.

2011-07-22 Thread Carl
Mills, Ryan A,

Thanks for posting, no news at the moment but we hear you. We're still
investigating this. As soon as we have any news, we will publish it on
Developer World,  http://www.sonyericsson.com/developer

Regards
Carl Johansson
Sony Ericsson Developer World

-- 
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] a problem about PppLink.java

2011-07-06 Thread Carl Li
when i change the wap or net:
java.io.FileNotFoundException: /sys/class/net/ppp0/operstate (No such
file or directory)

what's the reason?

-- 
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: Option to unlock the boot loader for Sony Ericsson Android Gingerbread phones now available.

2011-06-14 Thread Carl
Hi

We have seen in some forums that customers unlocking the boot loader
on their phones have experienced problems when they accept a FOTA
(Firmware upgrade Over The Air) update. The issue has been reproduced
and we are working on a solution. For customers that have unlocked the
boot loader - do not accept the Firmware upgrade OTA.

Regards
Carl Johansson
Sony Ericsson Developer World



On Apr 28, 12:47 pm, Carl  wrote:
> Hi
>
> Thanks for your feedback here on Google groups and the Developer blog.
> At the moment there is no turning back after unlocking thebootloader
> which is clearly stated in the instructions.
> However, we are looking into alternatives such as sharing information
> on how to build your own custom ROM with root access.
>
> Best
> Carl Johansson

-- 
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: Option to unlock the boot loader for Sony Ericsson Android Gingerbread phones now available.

2011-04-28 Thread Carl
Hi

Thanks for your feedback here on Google groups and the Developer blog.
At the moment there is no turning back after unlocking the bootloader
which is clearly stated in the instructions.
However, we are looking into alternatives such as sharing information
on how to build your own custom ROM with root access.

Best
Carl Johansson

-- 
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] Option to unlock the boot loader for Sony Ericsson Android Gingerbread phones now available.

2011-04-15 Thread Carl
Hi,

It is now possible to unlock the boot loader for certain series of
Sony Ericsson 2011 Android™ Gingerbread phones.

Go to http://unlockbootloader.sonyericsson.com to get instructions and
a key to unlock the boot loader.

Please note that you may void the warranty of your phone if you unlock
the boot loader. See your phone’s warranty statement for details.
More information is available on the unlock boot loader web site.

For any questions, Sony Ericsson will monitor this thread on Google
groups. However, we cannot guarantee an answer for every question
asked in this forum. Please remember that you are unlocking the boot
loader at your own risk.

Br,
Carl Johansson
Sony Ericsson Developer World

-- 
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: onSaveInstanceState problem while making oAuth request

2010-12-13 Thread Carl Lee
I haven't tried yet, but maybe you should see this:
http://developer.android.com/guide/topics/resources/runtime-changes.html

On Dec 12, 2:14 pm, bobetko  wrote:
> In my app at some point I am making oAuth request to authorize user
> with Twitter. App opens WebView in which user enter his credentials.
> Upon user pressing "Allow" button, twitter sends Intent (which
> contains token and secret) back to my app so user can start when he/
> she left of. The problem is my Activity has RowID (very important to
> know which record is currently active) that get lost RowID is
> parameter that my activity receives through Intent in onCreate event.
>
> I've checked, onSaveIstanceState is not executed, so when my Activity
> gets control back, my RowID doesn't exist.
> When my Activity receives Intent from Twitter, it is handled in
> onResme event. I assume, here I should somehow obtain my RowID
> What would be good way to remember my RowID and to be able to pull it
> back?
>
> In my manifest I had to enter following for my Activity in order to be
> able to get control back:
>                         
>                                  android:name="android.intent.action.VIEW" />
>                                  android:name="android.intent.category.DEFAULT" />
>                                  android:name="android.intent.category.BROWSABLE" />
>                                  android:host="oauth" />
>                         
>
> Any Suggestions. 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: Problems changing the drawable on a Button

2010-12-10 Thread Carl Lee
Maybe you should just simply use
button.setBackgroundDrawable(R.drawable.something)

In addition, you should also write a selector xml like this:

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

On Dec 10, 1:24 pm, neuromit  wrote:
> I'm working on a basic media player and am having problems changing
> the drawable on the play pause button.  Here is the code I'm using:
>
> Drawable draw = getResources().getDrawable(R.drawable.play);
> playPauseBTN.setCompoundDrawablesWithIntrinsicBounds(draw, null, null,
> null);
>
> The code executes fine without any errors or exceptions. However, the
> icon completely disappears from the button and I'm left with a narrow
> empty button.   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] Emulator won't shutdown

2010-12-06 Thread Carl
The emulator (started with Eclipse, NetBeans or the command line) works well 
until I try to close it.  At that point, it will not die.  The OS is XP, java 
is 1.6.0_23-ea (tried it on 1.6.0_7 also.)  Some observations:

1.  Every time the emulator starts, it starts two processes as reported by the 
XP task manger.

2.  After clicking 'Close'  (the 'X' in the upper right corner of the emulator 
window), the task shows as 'Not responding' in the task manager.

3.  The task manager fails to close the task.

4.  If started from a command window, after clicking 'Close', the command 
window is unresponsive and can not be closed.

5.  The rest of the workstation will continue to function until you attempt to 
shut it down whereupon it becomes unresponsive.

6.  The only way to reset the workstation is to power it off.

7.  I have tried different avds.

Anyone have any ideas?

TIA,

Carl

-- 
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] It seemed so simple...

2010-11-22 Thread Carl Brown
Get in on the App inventor to easily implement code, and reference/
research the code I needed to learn app develop quickly..

Make a far better phone call recorder by utilizing a stereo audio
format, grab the downlink  voice and plug into the right channel while
gabbing the uplink voice. Fixing the muddled quality and diminished
volume I got from the current market apps because they combined both
before encoding into a file.

Problem 1. App inventor doesn't allow for pugging in your own code

Problem 2 MediaRecorder code does't let you


I wanted to check opinion (before I waisted a lot more time
researching the impossible) creating two MediaRecorders instances,
creating two files, one using the voice uplink and one using the voice
downlink, encoding them out separate eat too many resources and cpu%?

-- 
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] AndroidHttpClient documentation error - no ability to add interceptor

2010-09-30 Thread Carl H.
The documentation mention that AndroidHttpClient subclass
DefaultHttpClient while it implements HttpClient. Furthermore, it says
that it gives the ability to users to add interceptors which is not
the case. Currently implementing my own until fixed.

Thanks,
Carl

-- 
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 breaks for some users after they update from the Market

2010-08-27 Thread Carl Whalley
Might be throwing in a food-for-thought curveball here but I wonder if
there's a difference between updating an app that's running and one
which isn't?

On Aug 26, 8:23 pm, TreKing  wrote:
> On Thu, Aug 26, 2010 at 1:56 PM, Doug  wrote:
> > I don't have anything helpful to add, TreKing, but I did want you to know
> > that a small minority of my users see random breakage on update and a
> > reinstall fixes them right up.
>
> Just knowing others are having the same issue is helpful. With
> enough anecdotes we can begin to pinpoint commonalities and
> hopefully unearth the root cause of the problem. If anyone else has had this
> issue, please share any details you may have.
> Thanks.
>
> --- 
> --
> TreKing  - Chicago
> transit tracking app for Android-powered devices

-- 
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 Licensing: Now Available!

2010-08-25 Thread Carl Whalley
That's clearer, thanks.
Presumably if you upload apps hacked this way to the Market, your
account will get pulled. And since this is the only way of getting
apps into the Market it remains safe?

On Aug 25, 8:36 am, Dianne Hackborn  wrote:
> On Tue, Aug 24, 2010 at 8:59 PM, Carl Whalley
> wrote:
>
> > I'm curious about something regarding signing. If someone does as this
> > hack shows and patches the apk, they need to resign the new build. If
> > they then put this version out and its widely distributed, can't
> > Google see the certificate used to resign it, compare with the
> > original and just revoke the new one? Following that, what actually
> > happens if a user then tries to install an app signed with a revoked
> > cert via non-Market means?
>
> What do you mean by revoke a cert?  Android uses self-signed certs, and
> Google is not a signing authority.  And we definitely don't apply filters to
> applications people install through side-loading.
>
> --
> 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 Licensing: Now Available!

2010-08-24 Thread Carl Whalley
I'm curious about something regarding signing. If someone does as this
hack shows and patches the apk, they need to resign the new build. If
they then put this version out and its widely distributed, can't
Google see the certificate used to resign it, compare with the
original and just revoke the new one? Following that, what actually
happens if a user then tries to install an app signed with a revoked
cert via non-Market means?

On Aug 24, 9:20 pm, keyeslabs  wrote:
> Seems like I was unfortunately very right on this prediction.  Just
> off by a few days :).
>
> LVL is flawed in the same ways that AAL (and other similar approaches)
> is flawed.  Google could do better, and I hope that they will.
> Obfuscation isn't really going to do much to improve the situation.
> What is really needed is O/S-level and app store support for signing
> apps (in real time) based on user credentials, application authors,
> and phone characteristics.  The dependence on the android market app
> is a single point of failure that is too easy to search for and find
> regardless of how obfuscated your code is.
>
> From a technical standpoint, LVL will help to some degree, but I've
> got to think that in terms of P.R., Google did themselves more harm
> than good here.
>
> Dave
>
> On Jul 31, 5:21 pm, keyeslabs  wrote:
>
>
>
> > Speaking as someone who has traveled this road before with my own
> > implementation of basically the same approach, obfuscation will be
> > critical.  With AAL, it took about three days for someone to crack the
> > app.  The process looks something like this:  decompile the apk using
> > a freely available open source tool, find the code that invokes the
> > licensing check, skip it, recompile and repackage the apk.
> > Obsfucation will make this more difficult, but not all that tough
> > given the usage of intents for communication betweenLVLand the
> > market tool.
>
> > Don't get me wrong, I think thatLVLwill offer a much needed road
> > bump for pirates -- stealing apps will actually require a crack of
> > each app.  This is a viable approach to license verification and
> > that's why I took the same route with AAL months ago.  It certainly
> > seems like google could have gone further though.
>
> > The coverage of this has been very extensive in the press, and I would
> > guess the coverage of the first released crack within a week or two
> > will also make a fairly big splash, which won't look great for the
> > platform.
>
> > All told though, I thinkLVLis a positive step for the platform.
> > Speaking as someone that was seeing 90%+ piracy rates before
> > implementing something very similar toLVLin my own apps, I'm happy
> > to see google addressing the problem.
>
> > DaveKeyes
>
> > On Jul 27, 5:44 pm, sblantipodi  wrote:
>
> > > I haven't understood if using this library external obfuscation
> > > (proguard for example) is needed
> > > for security reason or if we can avoid using external obfuscator, it's
> > > quite a pain using proguard in netbeans plus android sdk.
>
> > > On Jul 27, 10:24 pm, Sebastian Rodriguez  wrote:
>
> > > > I agree with Anton Persson. When will Google realize that opening the 
> > > > paid
> > > > market to all the other countries is crucial for the market environment 
> > > > :(
> > > > We don't have access to them here in Singapore either.
>
> > > > But this is a major step already, let's hope for even better!
>
> > > > Seb
>
> > > > On 28 July 2010 04:19, Kaj Bjurman  wrote:
>
> > > > > I saw that entry, and have a question.
>
> > > > > What will happen if the user doesn't have network connectivity? Many
> > > > > users turn of data traffic when they travel to other countries, but
> > > > > the probably still want to use the licensed applications.
>
> > > > > On 27 Juli, 19:55, Trevor Johns  wrote:
> > > > > > Android fans,
> > > > > > For those of you who haven't already heard through our blog, we've
> > > > > > just launched the Android Market licensing service:
>
> > > > > >http://android-developers.blogspot.com/2010/07/licensing-service-for-...
>
> > > > > > From the above blog post:
>
> > > > > > "This simple and free service provides a secure mechanism to manage
> > > > > > access to all Android Market paid applications targeting Android 1.5
> > > > > > or higher. At run time, with the inclusion of a set of libraries
> > > > > > provided by us, your application can query the Android Market
> > > > > > licensing server to determine the license status of your users. It
> > > > > > returns information on whether your users are authorized to use the
> > > > > > app based on stored sales records."
>
> > > > > > Developer documentation is available here:
>
> > > > > >http://developer.android.com/guide/publishing/licensing.html
>
> > > > > > Happy coding!
>
> > > > > > --
> > > > > > Trevor Johns
> > > > > > Google Developer Programs, Androidhttp://developer.android.com
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > >

[android-developers] Re: Parent activity runs onCreate before onActivityResult is called (sometimes)!

2010-08-05 Thread Carl Whalley
Smells like there will be a pattern, such as they've all installed
another app causing this and don't realise, or all have full internal
memory etc.

On Aug 5, 10:18 am, Pent  wrote:
> Hey Bob,
>
> thanks for taking the time. I was just coming to report that I noticed
> A being destroyed after calling B, didn't expect that
> possibility. Still don't know why it consistently picks on these
> particular users but I'm happy anyway :)
>
> Pent
>
> On Aug 5, 8:50 am, Bob Kerns  wrote:
>
>
>
> > Activities can be destroyed to free memory.
>
> > Check out the left side of the activity lifecycle diagram here:
>
> >http://developer.android.com/intl/de/guide/topics/fundamentals.html#a...
>
> > On Aug 4, 10:50 pm, Pent  wrote:
>
> > > The order is:
>
> > > A: startActivityForResult( B )
> > > B: , call finish()
> > > A: onCreate                  < what's this all about
> > > A: onActivityResult
>
> > > This happens for a tiny minority of users. I havn't been able to
> > > reproduce or find any common elements. A is the launch activity.
>
> > >  > >             android:name=".A"
> > >             android:label="A"
> > >             android:configChanges="orientation|keyboardHidden"
> > >             android:alwaysRetainTaskState="false"      <--- default anyway
> > >             android:launchMode="singleTop"
>
> > >  > >                         android:name=".B"
> > >                         android:label="B"
> > > />
>
> > > Anyone recognize it ?
>
> > > Pent

-- 
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: Dynamic loading of complete layout file.

2010-07-01 Thread Carl Whalley
Check out the layout inflater - in your case you'll want to download
the XML first.
http://developer.android.com/intl/zh-TW/reference/android/view/LayoutInflater.html

--
Android Academy http://www.androidacademy.com

On Jul 1, 6:41 am, ABhi  wrote:
> Hi All,
>
> I'm dealing with a problem you guys might not have faced earlier.
>
> I'm having a use-case in my Android application where the actual
> screen that i want to show to user is not stored in any layout file of
> my application. The layout of the of the screen is designed by server
> in this case, based on selection made by user on first screen.
>
> Let me elaborate here,
> 1st Screen : List of check box with different biller names.  (Imagine
> i've selected 2 billers from this screen)
>
> 2nd Screen :  (The screen that server has decided how it should look
> like)
> * Header,
> * 1st Biller name (Label)
> * Amount for 1st Biller TextBox
> * Image (a Separator image)
> * 2st Biller name (Label)
> * Amount for 2st Biller TextBox.
> * Here there can be a checbox/radio/another TextBox anything.
> * Image (a Separator image)
> * Button (to submit above form back to server)
>
> I hope makes some sense in what i'm planning to design.
>
> -
> The current issues i'm dealing with are as below.
> 1). How to draw this dynamic widgets?
> 2). How to fetch user Inputs from this dynamically created widgets?
>
> Thanks in advance.
> Regards
> Abhishek

-- 
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 increase the memory capacity of my Android emulator?

2010-06-15 Thread Carl H
Thanks for those who helped I was able to increase the memory capacity
of the emulator
and was able to install the huge APK.

Go to Preferences.
Select “Launch”
ADD “-partition-size 1024” on the “Default emulator option”
Click “Apply”


On May 31, 5:19 pm, Carl H  wrote:
> What if I was able to reduced it to 150MB?
>
> Is there away to increase the memory capacity of my Android emulator?
>
> Thank you!
>
> On May 31, 12:49 am, Mark Murphy  wrote:
>
> > Carl H wrote:
> > > Thanks for taking the time to answer.
>
> > > I knew I could use the SD card for my audio files.
> > > But I am required from my specs to use the "built-in flash".
>
> > Since this "is for personal use", change your specs.
>
> > -- There is no Android device in production use today that will support
> > a 1GB APK.
>
> > -- A 1GB APK will cost those on metered data plans a small fortune, and
> > will use up a fair chunk of the bandwidth cap for those on capped data
> > plans.
>
> > -- There is no documented means of changing the emulator in the manner
> > you seek, at least that I can see.
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > _The Busy Coder's Guide to *Advanced* Android Development_
> > Version 1.5 Available!
>
>

-- 
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] What to use to play OTA, RTTL and RTX media formats

2010-06-15 Thread Carl Hernandez
Does anybody know what can I use to play OTA, RTTL and RTX audio formats?

>From the link below
http://developer.android.com/guide/appendix/media-formats.html

it is supported by android but it wouldn't play using Media Player.

Do you know how this was done?

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: How can I increase the memory capacity of my Android emulator?

2010-05-31 Thread Carl H
What if I was able to reduced it to 150MB?

Is there away to increase the memory capacity of my Android emulator?

Thank you!

On May 31, 12:49 am, Mark Murphy  wrote:
> Carl H wrote:
> > Thanks for taking the time to answer.
>
> > I knew I could use the SD card for my audio files.
> > But I am required from my specs to use the "built-in flash".
>
> Since this "is for personal use", change your specs.
>
> -- There is no Android device in production use today that will support
> a 1GB APK.
>
> -- A 1GB APK will cost those on metered data plans a small fortune, and
> will use up a fair chunk of the bandwidth cap for those on capped data
> plans.
>
> -- There is no documented means of changing the emulator in the manner
> you seek, at least that I can see.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_
> Version 1.5 Available!

-- 
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 increase the memory capacity of my Android emulator?

2010-05-30 Thread Carl H
Thanks for taking the time to answer.


I knew I could use the SD card for my audio files.
But I am required from my specs to use the "built-in flash".



On May 28, 11:46 pm, Yahel  wrote:
> Won't exactly answer your question but should work on a real device as
> well if needed :
>
> Store the huge audio file on the sd card then access it from your app.
>
> Yahel
>
> On 28 mai, 12:10, Carl Hernandez  wrote:
>
> > Hi!
>
> > My application is almost 1 gig. I don't intend to sell this. This is
> > for personal use. I have large audio files that NEEDs to be stored
> > folder. The emulator won't launched it since it's big. How can I make
> > the emulator accept a large APK (1gig)?
>
> > 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: How can I increase the memory capacity of my Android emulator?

2010-05-30 Thread Carl H
I'm using Eclipse.

I tried the AVD Manager.

tried to increase cache size
cache partition
ram

to 200MB but my 150 MB APK still won't install.
insufficient memory

On May 28, 7:09 pm, Jay Ganatra  wrote:
> which IDE  r u using ???
>
> On Fri, May 28, 2010 at 4:19 PM, Carl Hernandez 
> wrote:
>
> > Hi Jay!
>
> > Do you know how it is done?
>
> > Thanks!
>
> > On Fri, May 28, 2010 at 6:22 PM, Jay Ganatra 
> > wrote:
> > > or show its property or details u can increase from there itself
>
> > > On Fri, May 28, 2010 at 3:51 PM, Jay Ganatra 
> > > wrote:
>
> > >> create new emulator and  make it as higher space easily !!!
>
> > >> On Fri, May 28, 2010 at 3:40 PM, Carl Hernandez <
> > carl.hernan...@gmail.com>
> > >> wrote:
>
> > >>> Hi!
>
> > >>> My application is almost 1 gig. I don't intend to sell this. This is
> > >>> for personal use. I have large audio files that NEEDs to be stored
> > >>> folder. The emulator won't launched it since it's big. How can I make
> > >>> the emulator accept a large APK (1gig)?
>
> > >>> 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
>
> > --
> > 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


Re: [android-developers] How can I increase the memory capacity of my Android emulator?

2010-05-28 Thread Carl Hernandez
Hi Jay!

Do you know how it is done?

Thanks!

On Fri, May 28, 2010 at 6:22 PM, Jay Ganatra  wrote:
> or show its property or details u can increase from there itself
>
> On Fri, May 28, 2010 at 3:51 PM, Jay Ganatra 
> wrote:
>>
>> create new emulator and  make it as higher space easily !!!
>>
>> On Fri, May 28, 2010 at 3:40 PM, Carl Hernandez 
>> wrote:
>>>
>>> Hi!
>>>
>>> My application is almost 1 gig. I don't intend to sell this. This is
>>> for personal use. I have large audio files that NEEDs to be stored
>>> folder. The emulator won't launched it since it's big. How can I make
>>> the emulator accept a large APK (1gig)?
>>>
>>> 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

-- 
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 can I increase the memory capacity of my Android emulator?

2010-05-28 Thread Carl Hernandez
Hi!

My application is almost 1 gig. I don't intend to sell this. This is
for personal use. I have large audio files that NEEDs to be stored
folder. The emulator won't launched it since it's big. How can I make
the emulator accept a large APK (1gig)?

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] Audio file list

2010-05-24 Thread Carl H
I need to acquire my audio file names in my raw folder.
fileList() of Context class doesn't seem to work. It returns null.

private void makeAudioList(){
String[] audiofiles = this.fileList();
:
:

It tried placing files in the asset folder as well but still the
return is null.

I'm going to create a test application to test a list of audio files
in my res/raw folder.

I'm open in playing from the asset folder but I haven't tried playing
my audio files from there.

I hope somebody could help. m(__)m

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: App released but only tested using the emulator. Could you please test it to me?

2010-04-05 Thread Carl Whalley
I ran into this recently. Try this in your AndroidManifest.xml



--
Android Academy http://androidacademy.com

On Apr 5, 6:01 am, Gabriel Simões  wrote:
> Hi all,
>
> After spending some time learning about Android´s SDK I´ve finally
> "finished" a first version of my first app: a metronome.
> It´s a simple app but I´ve faced some problems with AudioTrack, most
> trying to syncronize the audio with changes on the UI. In the end I
> did all my tests using the Android Emulator (1.6 and 2.1) since I don
> ´t have an Android device right now.
> I´ve posted this first version on some sites to get an initial
> feedback about it: how it works, how is the syncronization between
> audio and UI, how easy it is to understand the UI, if it´s stable,
> etc.
> I would appreciate if you could give me some feedback:
>
> https://slideme.org/application/mobile-metronomehttp://andappstore.com/AndroidApplications/apps/Mobile_Metronome
>
> I will post it on Android market as soon as I confirm it´s stable and
> working properly.
>
> Thanks,
> Gabriel Simões

-- 
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, reply using "remove me" as the subject.


[android-developers] Why is the same dialog sometimes translucent?

2010-04-02 Thread Carl Whalley
I have a Dialog with a Button whos OnClickListener() creates an
AlertDialog:
public void onClick(View v) {
  Dialog confirmDialog = new AlertDialog.Builder( activity )
.setIcon( R.drawable.icon )
...

The problem is in one place in the app, actually a MapActivity derived
Activity, when I run this the confirmDialog is translucent, and I
don't want this. When I run the same code from various other points in
the app, all non MapActivity derived, the confirmDialog has a solid
background. So its unlikely to be anything in the Dialogs xml but more
the context it is launched from, but I can't for the life of me see
where any translucent style is even mentioned in the app. Has anyone
see this before, or got any hints for how I can stop it happening
please?

--
Android Academy: http://androidacademy.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

To unsubscribe, reply using "remove me" as the subject.


[android-developers] Remove default margin inside WebView

2010-02-24 Thread Carl Whalley
There seems to be a default inner border in the WebView - it's about 6
pixels all round. How can this be removed so the size matches the
content?

Simple demo (target is Google API 1.6):

public class Main extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
WebView webview = (WebView) findViewById(R.id.webview);

String html = "Test";
webview.loadData(html, "text/html", "utf-8");
}
}


http://schemas.android.com/apk/res/
android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>



Android Academy http://www.androidacademy.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: Display a picture for few seconds before running into the main stream

2010-02-23 Thread Carl Whalley
This should give you some pointers:
http://www.androidacademy.com/3-tutorials/43-hands-on/167-coolsplash-an-interactive-splash-toy-for-android-apps

On Feb 22, 10:06 am, CMF  wrote:
> Hi all, I would like to display a picture for 2secons before running
> into the main stream of the program
> public void onCreate(Bundle savedInstanceState) {
>       super.onCreate(savedInstanceState);
>       setContentView(R.layout.startupImage);//startupImage contains a
> ImageView
>       //here I want to wait for 2 second
>       SystemClock.sleep(2000);//here the screen becomes blank:(
>       setContentView(R.layout.main);
>
>
>
> }

-- 
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] In-app payment options

2010-02-19 Thread Carl Whalley
Instead of having 2 versions on the market for apps, one lite (free)
and one paid, is it possible to have just the lite one but offer a
payment page in the app which upgraded it once the payment is
received?

--
Android Academy http://www.androidacademy.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: What's his name?

2010-02-08 Thread Carl Whalley
Mikey

Android Academy http://www.androidacademy.com

On Feb 8, 1:59 am, tora  wrote:
> Hello,
>
> I have a simple question.
>
> What's his name?http://www.android.com/intl/ja/media/android_vector.jpg
>
> According to this site, his name is [ android robot 
> ]http://www.android.com/branding.html
>
> And according to this site, his name is [ Droid 
> ]http://www.android.com/intl/ja/media/goodies.html
>
> Or some japanese sites said, his name is [ Goodies ]
>
> Which is correct?

-- 
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] Resume download after app stop/start lifecycle

2010-02-06 Thread Carl Whalley
I've an App which performs a potentially large download in background
thread. When the orientation changes or the keyboard is opened the App
lifecycle system invokes the start/stop/pause/resume etc calls - is
there any strategy available to resume the download rather than just
set a flag so the new onCreate() knows it was interrupted and has to
start it again? Thanks.

Android Academy http://www.androidacademy.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: White Paper - Sony Ericsson Vivaz, the HD ready phone

2010-02-04 Thread Carl Whalley
This double post to a broken link is about a Symbian handset.

On Feb 4, 6:30 am, SonyEricsson DeveloperWorld
 wrote:
> Vivaz has a 3.2 inch 360 x 640 pixel TFT resistive touchscreen with 16
> million color depth. OpenGL ES 1.1 and 2.0 are supported for superb
> graphics.
> The 8.1 megapixel camera has 4x digital zoom and Sony Ericsson’s face
> and smile detection features. Connectivity includes Wi-Fi 802.11g and
> HSPA at 7.2Mbps download; naturally we include seamless integration
> with Facebook™ and Twitter.
>
> Complete specifications and details can be downloaded fromhttp://bit.ly/doGGiA

-- 
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] BitmapFactory.decodeFile() vs BitmapFactory.decodeResource() on Nexus 1

2010-01-26 Thread Carl Whalley
I've an app which shows bitmaps using either of these calls on the G1
(1.6) and they show up correctly at the same size. When I run on the
N1 (or a 2.1 AVD) I find the same file appears much smaller using
BitmapFactory.decodeFile(), but it is correct when using
BitmapFactory.decodeResource().  How can I fix this for a WVGA800
device please?

--
Android Academy http://www.androidacademy.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] Downloading apk to Nexus One from local webserver

2010-01-26 Thread Carl Whalley
When developing for the G1 I set up a local apache site to serve APK's
and pointed the G1 browser to it. The server is on my local P and the
G1 connects via Wifi on its direct IP. The mime types was set up, and
the G1 downloads and installs them fine - these are all signed with
the public key. When I try this with the N1 browser it sees the site
fine but at the point at which the download starts it hangs - I just
see "Waiting for data connection" in the browsers download page. It
does this with the same APK the G1 downloads and installs fine with -
anyone know whats wrong here please?

--
Android Academy http://www.androidacademy.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: Update individual item in listview

2010-01-19 Thread Carl Whalley
You need to be familiar with the ListAdapter. Try here:
http://developerlife.com/tutorials/?p=327

--
Android Academy http://www.androidacademy.com

On Jan 19, 8:28 pm, ls02  wrote:
> How do I update individual row in listview?
-- 
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] Constructing shapes from other objects

2010-01-19 Thread Carl Whalley
In graphics packages you can start with a rectangle, make it a
rounded, then say add another triangle and where they meet join them
to create a path, which can then be treat as a single object, e.g.
filled with a gradient. Can this be done with Androids graphics? I'm
trying to make, for example, a speech balloon rect with rounded
corners. The way I described sounds far easier than specifying each
path co-ordinate manually.

--
Android Academy http://www.androidacademy.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] MapView.setBuiltInZoomControls(true) problem when used in a TabHost

2010-01-09 Thread Carl Whalley
Following http://developer.android.com/guide/tutorials/views/hello-mapview.html
to create a MapView based app works but gives a deprecation warning on
the mapView.getZoomControls() call for 1.6+. The new way is just to
call setBuiltInZoomControls(true) on your MapView and the controls
will appear as before. I just did this on an app where I've placed the
MapView in a tab on a TabHost and its shown another difference. With
the old way, the zoom controls disappear as soon as you change tabs,
but the new one causes just them to persist over the new tab. In other
words, the fading effect that has been applied is too slow, it just
looks plain wrong as they should disappear instantly. Unless anyone
knows differently of course ... ;-)

--
Android Academy http://www.androidacademy.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: Android 2.1 SDK

2010-01-06 Thread Carl Whalley
Fx: Waiting to exhale.
The Nexus One has been out for almost a day now and *still* no 2.1
SDK ;-)

--
Android Academy http://www.androidacademy.com

On Dec 16 2009, 10:04 am, String 
wrote:
> There's been no public announcement of Android2.1, remember, so
> there's noSDKbeen released. No doubt Google has one internally, but
> that's it.
>
> The *rumor* is that Android2.1will release on January 5 with the
> Nexus One handset, but right now, that release date is just rumor.
> While I find the prospect exciting as an Android enthusiast, as a
> developer I'm hoping that it's not true, because it would be a repeat
> of the fiasco with 2.0 - where theSDKonly dropped a couple of weeks
> before live handsets hit the market. I *hope* that Google learned from
> the failures of that experience, that the developer community needs
> more lead time than that to test against a new version, but I *fear*
> that they have not, and will just hang us out to dry again.
>
> String
>
> On Dec 15, 9:45 pm, sazilla  wrote:
>
>
>
> > Hi everyone,
>
> > does anybody have been able to get/build the Android2.1SDK?
>
> > I was wondering if the following issues was fixed 
> > there:http://groups.google.com/group/android-developers/browse_thread/threa...
>
> > Thanks
>
> > Carlo
-- 
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] Keeping Map API keys in sync across a dev team

2010-01-05 Thread Carl Whalley
When an app which uses the Map API is released it must be signed with
the public cert. For individual use the key comes from the local debug
keystore, created each time the Android SDK is installed. In other
words, its different for each developer. When I include a view using
it, then commit, my key goes in the xml, but the next developer to
take an update clobbers his key, which being different to mine results
in no maps being shown for him. Is there a smarter way to prevent this
when a team is using the Maps API please?

Android Academy: http://www.androidacademy.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] Validating a dialog with custom onClick()

2009-12-26 Thread Carl Whalley
I have a handler for the custom onClick thus:

public class DialogValidator implements OnClickListener {
private int id;
private Activity activity;

protected DialogValidator(Activity activity, int id) {
this.activity = activity;
this.id = id;
}

@Override
public void onClick( DialogInterface dialog, int whichButton )
{
if (whichButton == AlertDialog.BUTTON_POSITIVE) {
Toast.makeText(activity, "Ok from DialogValidator",
Toast.LENGTH_SHORT).show();
} else {
activity.dismissDialog(id);
}
}
}

And implement it like this:

@Override
protected Dialog onCreateDialog( int id ) {
...
return new AlertDialog.Builder( this )
.setIcon( R.drawable.icon )
.setTitle( R.string.dialog_title )
.setView( dialogView )
.setPositiveButton( R.string.button_ok, new DialogValidator
(activity, id))
.setNegativeButton(R.string.button_cancel, new
DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton) {
}
})
.create();
}

I see the Toast but the dialog is dismissed anyway when you click Ok.
In a fuller version I want
to access some of the input fields and only dismiss this dialog if
they are valid. To do that I'd flesh out
the above code where the Toast is - but need it to not dismiss itself.
If I have overriden the parents'
onClick() method as seen, and we know it is being called, why does it
still do that?

Android Academy - http://www.androidacademy.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] How to know the encoding of an SMS

2009-12-08 Thread Carl
Hi,

I am writing an SMS application that processes SMSs according to the
encoding type.
Is there anyway to know, without needing to parse the PDU, if the
message is 7-bit encoded or using UCS-2 encoding?

Thank you.

Carl

-- 
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 create SMS PDUs

2009-12-03 Thread Carl
Hello all,

I want to create my own PDUs in Android and catch the PDUs with my own
SMS reading program.
Is there any way to create the PDUs or the only way is to manually
craft them(fill field by field with hex code)?

I have been looking for information for a while, but can only find
information related to extracting information from PDUs.


Thanks in advance.

Carl

-- 
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] Advice on keeping app running/available

2009-11-27 Thread Carl Barton
I have spent a lot of time playing and researching (including subscribing to
the Mark Murphy¹s CommonsGuy stuff...excellent by the way) and I think I
have enough info to be dangerous.
I am just having issues coming up with best practices for doing what I need
to do.

My app is collecting specially formatted incoming SMS messages (currently
default port but will later be processing port-directed using Verizon
proprietary header info). I also need a UI application that will view the
current messages that have been received and allow the user to
read/delete/reply. All this stuff is working at this point but I just need
to make sure it keeps itself running at all times (or will always be
available when needed at least).

My initial thoughts were to have a service which starts at boot handle the
sms messaging (in and out) and incorporate a content provider in it to
provide access to the collection of messages (Sqlite) to other applications
requiring it. I tried launching the service from an activity but if someone
uses a task killer to kill the activity it seems to take the service down
with it. I tried having a service that runs at boot but had trouble getting
it to launch an activity when a new message arrives (probably my issue).

So, after floundering back and forth with my indecisions of how best to
architect it, I figured I would ask around to get some suggestions and then
attack it from there. So, any ideas from anyone?

Thanks,

Carl




-- 
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: Testing on every possible device

2009-11-13 Thread Carl
I have not used this company however I have heard some great things.

they have devices that are busted open and wired up so that you can
control them remotely via the web. You can deploy your apps to them,
see the display on your machine and do whatever you want to them.

You basically rent time from them.

http://www.deviceanywhere.com/

I don't know what they have for Androids at this point but definitely
worth a look.

Carl


On Nov 13, 2:09 am, "SoftwareForMe.com" 
wrote:
> We have many phones, but we don't--and probably never will--have all of
> them.
>
> It's frustrating that some phones cannot see our apps in the market, and
> we'd like to know which phones those are.
>
> We'd like to have a simple way to have our app tested on each phone, but at
> this point there's no easy way to do that.
>
> My question is: what would we as developers be willing to do to get these
> needs met? Is there enough demand for someone to buy all possible Android
> devices and charge a nominal fee for these services?
>
> We would pay a small fee to have out app accessed and downloaded on all
> phones--this would give us a report of which phones could access our app. We
> would pay a fee to have a step-by-step test ran on each possible device so
> we could know it worked on that device, at least minimally.
>
> What about the rest of you? Can we encourage someone to provide us this
> service?
>
> --
> Warm regards,
> Scott
> SoftwareForMe.com
> Makers of PhoneMyPC

-- 
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: Error using InstrumentationTestRunner with multiple projects

2009-10-19 Thread Carl H.

I get this error as well, I believe it depends on the order of imports
within your test project. If you have lib1 added to both the test and
tested project, you ll get something of that sort Still trying to
sort it out.

On Oct 14, 4:31 am, Brett Chabot  wrote:
> I'm not sure what that exact error message means, but my guess is the
> problem has to do with your test to project mapping. An
> instrumentation (which is what your test project uses to access
> classes in your project under test), can only be targeted to one
> android application. Try splitting up your test project into
> ProjectATest and ProjectBTest, and see if that helps.
>
> Regards,
> Brett.
>
> On Wed, Oct 7, 2009 at 10:42 PM, takashi  wrote:
>
> > My application is seperated into three projects in eclipse.
> > The first one is a client Android Project called "Project A".
> > The second is a server Android Project called "ProjectB".
> > Lastly, I have "ProjectATest" for testing that has references
> > dependencies to "ProjectA" and "ProjectB".
>
> > When excuting InstrumentationTestRunner in "ProjectATest," I get the
> > following error message:
>
> > [2009-10-08 13:11:47 - ProjectATest]Launching instrumentation
> > android.test.InstrumentationTestRunner on device emulator-5554
> > [2009-10-08 13:12:01 - ProjectATest]Test run failed: cross-loader
> > access from pre-verified class
>
> > This is the error as pulled from LogCat:
>
> > 10-08 04:11:44.089: ERROR/AndroidRuntime(760): Uncaught handler:
> > thread main exiting due to uncaught exception
> > 10-08 04:11:44.110: ERROR/AndroidRuntime(760):
> > java.lang.IllegalAccessError: cross-loader access from pre-verified
> > class
> > 10-08 04:11:44.110: ERROR/AndroidRuntime(760):     at
> > org.gynoid.db.ClassMetadata.initRelation(ClassMetadata.java:181)
> > 10-08 04:11:44.110: ERROR/AndroidRuntime(760):     at
> > org.gynoid.GynApplication.onCreate(GynApplication.java:41)
> > 10-08 04:11:44.110: ERROR/AndroidRuntime(760):     at
> > android.app.Instrumentation.callApplicationOnCreate
> > (Instrumentation.java:1045)
> > 10-08 04:11:44.110: ERROR/AndroidRuntime(760):     at
> > android.app.ActivityThread.handleBindApplication(ActivityThread.java:
> > 3622)
> > 10-08 04:11:44.110: ERROR/AndroidRuntime(760):     at
> > android.app.ActivityThread.access$2500(ActivityThread.java:112)
> > 10-08 04:11:44.110: ERROR/AndroidRuntime(760):     at
> > android.app.ActivityThread$H.handleMessage(ActivityThread.java:1729)
> > 10-08 04:11:44.110: ERROR/AndroidRuntime(760):     at
> > android.os.Handler.dispatchMessage(Handler.java:99)
> > 10-08 04:11:44.110: ERROR/AndroidRuntime(760):     at
> > android.os.Looper.loop(Looper.java:123)
> > 10-08 04:11:44.110: ERROR/AndroidRuntime(760):     at
> > android.app.ActivityThread.main(ActivityThread.java:3948)
> > 10-08 04:11:44.110: ERROR/AndroidRuntime(760):     at
> > java.lang.reflect.Method.invokeNative(Native Method)
> > 10-08 04:11:44.110: ERROR/AndroidRuntime(760):     at
> > java.lang.reflect.Method.invoke(Method.java:521)
> > 10-08 04:11:44.110: ERROR/AndroidRuntime(760):     at
> > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
> > (ZygoteInit.java:782)
> > 10-08 04:11:44.110: ERROR/AndroidRuntime(760):     at
> > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
> > 10-08 04:11:44.110: ERROR/AndroidRuntime(760):     at
> > dalvik.system.NativeStart.main(Native Method)
>
> > Has anyone been able to accomplish this or have any suggestions as to
> > what I am doing wrong?
--~--~-~--~~~---~--~~
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: Google wave invitations...?

2009-10-16 Thread Carl Whalley

I'd love an invite too ... anyone ... thanks!

On Oct 16, 2:26 pm, Gavin Aiken  wrote:
> Takes at least 24 hours in my experience :) have fun waving!
> On Fri, Oct 16, 2009 at 2:09 PM, Kenneth Adam Miller <
>
>
>
> kennethadammil...@gmail.com> wrote:
> >  Have any of you gotten an email yet?
> > I swear I've sent them out...
> > perhaps they're just nominations for a possible invite to google wave and
> > not you know actual concrete invitations
> > I don't know, but I'm guessing that you guys would still want it.
> > Hahah
>
> > :)
> > I'm in class right now, but I'll review all you guys
>
> > On Fri, Oct 16, 2009 at 7:40 AM, GSC  wrote:
>
> >> If anyone else has an available invitiation, please send me one.
>
> >> Thanks
>
> >> On Oct 16, 7:31 am, ColletJb  wrote:
> >> > I think there are no invitation left from Kenneth Adam Miller.
>
> >> > But if anyone invited by him has invitation and can invite me, It
> >> > would be great ;)
--~--~-~--~~~---~--~~
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 use commands in command prompt.

2009-10-14 Thread Carl

Thanks, i was a bit off there. It is working now.

Regards

Carl Magnus

On 14 Okt, 18:23, Marco Nelissen  wrote:
> On Wed, Oct 14, 2009 at 9:09 AM, Carl  wrote:
>
> > I've copied the folder from the JDK and put it in the SDK. Nothing
> > changed.
>
> Copying the folder is probably not the right thing to do, especially
> if you didn't add the new folder to your path either (by 'path' I mean
> the windows path environment variable, which IIRC you can view and
> edit somewhere under the "my computer" right click menu)
>
> > Noticed another problem, it is telling me that i'm missing a SWT
> > folder. That i need to point ANDROID_SWT to the folder containing
> > swt.jar.
> > But i've looked in the android.bat and ANDROID_SWT is pointing to that
> > folder.
>
> > what now?
>
> > On 14 Okt, 00:20, Marco Nelissen  wrote:
> >> Well, given the error message you mentioned in your original post, the
> >> folder where java.exe is located would be good to have in your path.
>
> >> On Tue, Oct 13, 2009 at 3:15 PM, Carl  wrote:
>
> >> > Could you maybe then tell me the relevant parts of the JDK? so that i
> >> > can check if they are there.
>
> >> > Thanks.
>
> >> > On 14 Okt, 00:12, Marco Nelissen  wrote:
> >> >> Sorry, I meant 'JDK'.
>
> >> >> On Tue, Oct 13, 2009 at 3:11 PM, Marco Nelissen  
> >> >> wrote:
> >> >> > I don't think it matters as long as the relevant parts of the SDK are
> >> >> > in your path.
>
> >> >> > On Tue, Oct 13, 2009 at 1:48 PM, Carl  wrote:
>
> >> >> >> I have a JDK installed on C: but put the SDK on D:. Does it matter?
>
> >> >> >> On 13 Okt, 22:24, Marco Nelissen  wrote:
> >> >> >>> Sounds like you didn't install a JDK, or it's not in your path.
>
> >> >> >>> On Tue, Oct 13, 2009 at 12:49 PM, Carl  
> >> >> >>> wrote:
>
> >> >> >>> > Hi,
>
> >> >> >>> > When i'm in the directory tools and try to use "android create 
> >> >> >>> > avd..."
> >> >> >>> > i get an error like " ' java is not recognizable as an internal or
> >> >> >>> > externalcommand, operable program or batch. "
>
> >> >> >>> > What's wrong?
>
> >> >> >>> > I'm using Windows 7 prof
> >> >> >>> > Have added android to the system environment variables. (Maybe 
> >> >> >>> > doesn't
> >> >> >>> > change anything.)
>
> >> >> >>> > Tanks
>
> >> >> >>> > Carl
--~--~-~--~~~---~--~~
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 use commands in command prompt.

2009-10-14 Thread Carl

I've copied the folder from the JDK and put it in the SDK. Nothing
changed.
Noticed another problem, it is telling me that i'm missing a SWT
folder. That i need to point ANDROID_SWT to the folder containing
swt.jar.
But i've looked in the android.bat and ANDROID_SWT is pointing to that
folder.

what now?

On 14 Okt, 00:20, Marco Nelissen  wrote:
> Well, given the error message you mentioned in your original post, the
> folder where java.exe is located would be good to have in your path.
>
> On Tue, Oct 13, 2009 at 3:15 PM, Carl  wrote:
>
> > Could you maybe then tell me the relevant parts of the JDK? so that i
> > can check if they are there.
>
> > Thanks.
>
> > On 14 Okt, 00:12, Marco Nelissen  wrote:
> >> Sorry, I meant 'JDK'.
>
> >> On Tue, Oct 13, 2009 at 3:11 PM, Marco Nelissen  
> >> wrote:
> >> > I don't think it matters as long as the relevant parts of the SDK are
> >> > in your path.
>
> >> > On Tue, Oct 13, 2009 at 1:48 PM, Carl  wrote:
>
> >> >> I have a JDK installed on C: but put the SDK on D:. Does it matter?
>
> >> >> On 13 Okt, 22:24, Marco Nelissen  wrote:
> >> >>> Sounds like you didn't install a JDK, or it's not in your path.
>
> >> >>> On Tue, Oct 13, 2009 at 12:49 PM, Carl  wrote:
>
> >> >>> > Hi,
>
> >> >>> > When i'm in the directory tools and try to use "android create 
> >> >>> > avd..."
> >> >>> > i get an error like " ' java is not recognizable as an internal or
> >> >>> > external command, operable program or batch. "
>
> >> >>> > What's wrong?
>
> >> >>> > I'm using Windows 7 prof
> >> >>> > Have added android to the system environment variables. (Maybe 
> >> >>> > doesn't
> >> >>> > change anything.)
>
> >> >>> > Tanks
>
> >> >>> > Carl
--~--~-~--~~~---~--~~
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 use commands in command prompt.

2009-10-14 Thread Carl

I've copied the folder from the JDK and put it in the SDK. Nothing
changed.
Noticed another problem, it is telling me that i'm missing a SWT
folder. That i need to point ANDROID_SWT to the folder containing
swt.jar.
But i've looked in the android.bat and ANDROID_SWT is pointing to that
folder.

what now?

On 14 Okt, 00:20, Marco Nelissen  wrote:
> Well, given the error message you mentioned in your original post, the
> folder where java.exe is located would be good to have in your path.
>
> On Tue, Oct 13, 2009 at 3:15 PM, Carl  wrote:
>
> > Could you maybe then tell me the relevant parts of the JDK? so that i
> > can check if they are there.
>
> > Thanks.
>
> > On 14 Okt, 00:12, Marco Nelissen  wrote:
> >> Sorry, I meant 'JDK'.
>
> >> On Tue, Oct 13, 2009 at 3:11 PM, Marco Nelissen  
> >> wrote:
> >> > I don't think it matters as long as the relevant parts of the SDK are
> >> > in your path.
>
> >> > On Tue, Oct 13, 2009 at 1:48 PM, Carl  wrote:
>
> >> >> I have a JDK installed on C: but put the SDK on D:. Does it matter?
>
> >> >> On 13 Okt, 22:24, Marco Nelissen  wrote:
> >> >>> Sounds like you didn't install a JDK, or it's not in your path.
>
> >> >>> On Tue, Oct 13, 2009 at 12:49 PM, Carl  wrote:
>
> >> >>> > Hi,
>
> >> >>> > When i'm in the directory tools and try to use "android create 
> >> >>> > avd..."
> >> >>> > i get an error like " ' java is not recognizable as an internal or
> >> >>> > external command, operable program or batch. "
>
> >> >>> > What's wrong?
>
> >> >>> > I'm using Windows 7 prof
> >> >>> > Have added android to the system environment variables. (Maybe 
> >> >>> > doesn't
> >> >>> > change anything.)
>
> >> >>> > Tanks
>
> >> >>> > Carl
--~--~-~--~~~---~--~~
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 use commands in command prompt.

2009-10-14 Thread Carl

I've copied the folder from the JDK and put it in the SDK. Nothing
changed.
Noticed another problem, it is telling me that i'm missing a SWT
folder. That i need to point ANDROID_SWT to the folder containing
swt.jar.
But i've looked in the android.bat and ANDROID_SWT is pointing to that
folder.

what now?

On 14 Okt, 00:20, Marco Nelissen  wrote:
> Well, given the error message you mentioned in your original post, the
> folder where java.exe is located would be good to have in your path.
>
> On Tue, Oct 13, 2009 at 3:15 PM, Carl  wrote:
>
> > Could you maybe then tell me the relevant parts of the JDK? so that i
> > can check if they are there.
>
> > Thanks.
>
> > On 14 Okt, 00:12, Marco Nelissen  wrote:
> >> Sorry, I meant 'JDK'.
>
> >> On Tue, Oct 13, 2009 at 3:11 PM, Marco Nelissen  
> >> wrote:
> >> > I don't think it matters as long as the relevant parts of the SDK are
> >> > in your path.
>
> >> > On Tue, Oct 13, 2009 at 1:48 PM, Carl  wrote:
>
> >> >> I have a JDK installed on C: but put the SDK on D:. Does it matter?
>
> >> >> On 13 Okt, 22:24, Marco Nelissen  wrote:
> >> >>> Sounds like you didn't install a JDK, or it's not in your path.
>
> >> >>> On Tue, Oct 13, 2009 at 12:49 PM, Carl  wrote:
>
> >> >>> > Hi,
>
> >> >>> > When i'm in the directory tools and try to use "android create 
> >> >>> > avd..."
> >> >>> > i get an error like " ' java is not recognizable as an internal or
> >> >>> > external command, operable program or batch. "
>
> >> >>> > What's wrong?
>
> >> >>> > I'm using Windows 7 prof
> >> >>> > Have added android to the system environment variables. (Maybe 
> >> >>> > doesn't
> >> >>> > change anything.)
>
> >> >>> > Tanks
>
> >> >>> > Carl
--~--~-~--~~~---~--~~
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 use commands in command prompt.

2009-10-13 Thread Carl

Could you maybe then tell me the relevant parts of the JDK? so that i
can check if they are there.

Thanks.

On 14 Okt, 00:12, Marco Nelissen  wrote:
> Sorry, I meant 'JDK'.
>
> On Tue, Oct 13, 2009 at 3:11 PM, Marco Nelissen  wrote:
> > I don't think it matters as long as the relevant parts of the SDK are
> > in your path.
>
> > On Tue, Oct 13, 2009 at 1:48 PM, Carl  wrote:
>
> >> I have a JDK installed on C: but put the SDK on D:. Does it matter?
>
> >> On 13 Okt, 22:24, Marco Nelissen  wrote:
> >>> Sounds like you didn't install a JDK, or it's not in your path.
>
> >>> On Tue, Oct 13, 2009 at 12:49 PM, Carl  wrote:
>
> >>> > Hi,
>
> >>> > When i'm in the directory tools and try to use "android create avd..."
> >>> > i get an error like " ' java is not recognizable as an internal or
> >>> > external command, operable program or batch. "
>
> >>> > What's wrong?
>
> >>> > I'm using Windows 7 prof
> >>> > Have added android to the system environment variables. (Maybe doesn't
> >>> > change anything.)
>
> >>> > Tanks
>
> >>> > Carl
--~--~-~--~~~---~--~~
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 use commands in command prompt.

2009-10-13 Thread Carl

I have a JDK installed on C: but put the SDK on D:. Does it matter?



On 13 Okt, 22:24, Marco Nelissen  wrote:
> Sounds like you didn't install a JDK, or it's not in your path.
>
> On Tue, Oct 13, 2009 at 12:49 PM, Carl  wrote:
>
> > Hi,
>
> > When i'm in the directory tools and try to use "android create avd..."
> > i get an error like " ' java is not recognizable as an internal or
> > external command, operable program or batch. "
>
> > What's wrong?
>
> > I'm using Windows 7 prof
> > Have added android to the system environment variables. (Maybe doesn't
> > change anything.)
>
> > Tanks
>
> > Carl
--~--~-~--~~~---~--~~
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't use commands in command prompt.

2009-10-13 Thread Carl

Hi,

When i'm in the directory tools and try to use "android create avd..."
i get an error like " ' java is not recognizable as an internal or
external command, operable program or batch. "

What's wrong?

I'm using Windows 7 prof
Have added android to the system environment variables. (Maybe doesn't
change anything.)

Tanks

Carl

--~--~-~--~~~---~--~~
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: Crossword Puzzle in Android

2009-09-28 Thread Carl Whalley

I just put a tutorial up on making tiles scale correctly. Its not
exactly what you are doing but theres enough overlap to get you
going.
http://www.androidacademy.com/3-tutorials/43-hands-on/154-device-independent-display-scaling

--
http://www.androidacademy.com

On Sep 28, 1:05 pm, Kwan Toh Choong  wrote:
> Hi All,
>
> Thanks for the advice from everyone. I've done a little bit of research, but
> I m not sure the idea of rendering the boxes with numbering is correct or
> not.
> Is it true that I can draw on a canvas? I m reading this 
> tutorialhttp://www.anddev.org/the_pizza_timer_-_threading-drawing_on_canvas-t...
>
> It seems like after I draw a box, I can still draw on the same place,
> overlapping it. So I can do something like "drawing" the numbers on top of
> the boxes right?
>
> In face I'm not doing a crossword. It looks similar to crossword but it is
> called CodeCracker instead. I did a google on "CodeCracker" but the result
> it returns are mostly something else. Here are a few link on the
> "CodeCracker" I m saying:
>
> http://www.codecracker.co.nz/samples/samples.htmhttp://www.puzzco.com/knight%20features/interactive/samples/Interacti...http://www.thepuzzlecompany.co.nz/samples/Interactive%20Samples/code-...
>
> Regards
> Kwan
>
>
>
> On Mon, Sep 28, 2009 at 2:00 PM, Seth Mould  wrote:
>
> > Hi Kwan,
>
> > I have a project on SourceForge called xW which seeks to establish a
> > standard XML format for word puzzles, so you might want to look at
> > that for your input. Try looking for open Sudoku projects -- there is
> > more interest in Sudoku than crosswords and the rendering of cells is
> > the same except for numbering.
>
> > Please remember that advanced UK crosswords use bars instead of black
> > squares, so a typical bitwise enumeration for the cell's appearance
> > will be 0 - Blank, 1 - Black, 2 - Left bar, 4 - Top bar.
>
> > I haven't got round to writing a generic renderer for Android but when
> > I do it will be Open. Regards Seth
--~--~-~--~~~---~--~~
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: Why are the save/restore lifecycle events called twice when switching the emulator from landscape to portrait?

2009-09-28 Thread Carl Whalley

Cheers. I think you're right, but this looks just plain wrong. If
there was a reason for the double Activity creation it should at least
happen in both cases, not just in the landscape to portrait case. Its
actually a little worse than that, because I came across this when
chasing a "bug" in some code which was causing the width in an onLayout
() call to *sometimes* come in as 0, which it turns out is this
spurious lifecycle event.

--
http://www.androidacademy.com

On Sep 28, 9:27 am, skink  wrote:
> On Sep 27, 1:31 pm, Carl Whalley  wrote:
>
>
>
> > This is with the 1.6 & 1.5 SDKs, not tried earlier ones. When you
> > switch from portrait to landscape the onSaveInstanceState()/
> > onRestoreInstanceState() pair are called once, but when going back
> > from landscape to portrait they are called twice, unless I've missed
> > something.
> > To test, see the log after creating a default Hello World app and
> > change the main class like this:
>
> > public class MainActivity extends Activity {
> >     private static final String TAG = "activity";
>
> >     /** Called when the activity is first created. */
> >     @Override
> >     public void onCreate(Bundle savedInstanceState) {
> >         super.onCreate(savedInstanceState);
> >         setContentView(new MainView(this));
> >     }
>
> >         @Override
> >         protected void onRestoreInstanceState(Bundle savedInstanceState) {
> >                 super.onRestoreInstanceState(savedInstanceState);
> >                 Log.d(TAG, "onRestoreInstanceState()");
> >         }
>
> >         @Override
> >         protected void onSaveInstanceState(Bundle outState) {
> >                 Log.d(TAG, "onSaveInstanceState()");
> >                 super.onSaveInstanceState(outState);
> >         }
>
> >         public class MainView extends LinearLayout {
> >             public MainView(Context context) {
> >                 super(context);
> >                 inflate(context, R.layout.main, this);
> >             }
> >         }
>
> > }
>
> > --http://www.androidacademy.com
>
> hi,
>
> it's called twice because two activities are created: first one lives
> for a very short time - it's immediately onDestroy()ed.
>
> i posted about this couple of months ago but nobody seemed to answer
>
> oskink
--~--~-~--~~~---~--~~
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] Why are the save/restore lifecycle events called twice when switching the emulator from landscape to portrait?

2009-09-27 Thread Carl Whalley

This is with the 1.6 & 1.5 SDKs, not tried earlier ones. When you
switch from portrait to landscape the onSaveInstanceState()/
onRestoreInstanceState() pair are called once, but when going back
from landscape to portrait they are called twice, unless I've missed
something.
To test, see the log after creating a default Hello World app and
change the main class like this:

public class MainActivity extends Activity {
private static final String TAG = "activity";

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(new MainView(this));
}

@Override
protected void onRestoreInstanceState(Bundle savedInstanceState) {
super.onRestoreInstanceState(savedInstanceState);
Log.d(TAG, "onRestoreInstanceState()");
}

@Override
protected void onSaveInstanceState(Bundle outState) {
Log.d(TAG, "onSaveInstanceState()");
super.onSaveInstanceState(outState);
}

public class MainView extends LinearLayout {
public MainView(Context context) {
super(context);
inflate(context, R.layout.main, this);
}
}
}

--
http://www.androidacademy.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: AVD for Motorola Cliq?

2009-09-11 Thread Carl Whalley

Ok, sorry for posting before I read the link - the DPAD does adjust as
you'd expect and it is explained further at the page Anna pointed to..

On Sep 11, 10:21 pm, Carl Whalley  wrote:
> Small point raised in my original post: if you do as you suggest and
> keep the app in portrait mode when the keyboard is opened, assuming
> the user turns the handset so they are holding it in portrait mode is
> the DPAD to the lower right or upper left of the screen? Also,
> thinking about this further, is the UP/DOWN of the DPAD itself
> adjusted to reflect this?
>
> --
> Android Academy:http://www.androidacademy.com
>
> On Sep 11, 7:35 pm, "anna.schal...@motorola.com"
>
>
>
>  wrote:
> > As Dianne stated, it works very much like the G1. The short answer is
> > that there are still only two modes: portrait and landscape.  The
> > DPAD, or 5-way navigation, on the keyboard is only available when you
> > open the keyboard.  By default this automatically rotates the display
> > to landscape. You can override this and keep your application in
> > portrait mode by specifying android:screenOrientation="portrait" in
> > your manifest. There is an article on coding for 5-way on our MOTODev
> > Android Technical Library (http://developer.motorola.com/docstools/
> > library/Navigating_Around_Your_Application/) that may answer your
> > question in more detail.
>
> > On Sep 11, 10:02 am, Dianne Hackborn  wrote:
>
> > > I am pretty sure it is basically like the G1, except you can only access 
> > > the
> > > DPAD when the screen is open instead of it being on the front.  So opening
> > > the screen would rotate it unless an application has explicitly forced an
> > > orientation, and the platform should rotate the DPAD key events for you
> > > based on the current orientation like it does for the trackball on other
> > > devices.
>
> > > On Fri, Sep 11, 2009 at 12:57 AM, Carl Whalley
> > > wrote:
>
> > > > Anything around?
> > > > In particular, exactly what do those buttons do and are we to assume
> > > > to use the DPAD in portrait mode the phone is turned 180 from what
> > > > you'd expect "normal" portrait mode to be (see the pic, you'll see
> > > > what I mean:http://ota.cc/az). I'm just guessing here but as a
> > > > developer would like to know how to handle this.
> > > > Do we need to code for a new orientation: keyboard closed portrait,
> > > > keyboard open portrait and landscape?
>
> > > > --
> > > > Android Academy:http://www.androidacademy.com
>
> > > --
> > > 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: AVD for Motorola Cliq?

2009-09-11 Thread Carl Whalley

Small point raised in my original post: if you do as you suggest and
keep the app in portrait mode when the keyboard is opened, assuming
the user turns the handset so they are holding it in portrait mode is
the DPAD to the lower right or upper left of the screen? Also,
thinking about this further, is the UP/DOWN of the DPAD itself
adjusted to reflect this?

--
Android Academy: http://www.androidacademy.com

On Sep 11, 7:35 pm, "anna.schal...@motorola.com"
 wrote:
> As Dianne stated, it works very much like the G1. The short answer is
> that there are still only two modes: portrait and landscape.  The
> DPAD, or 5-way navigation, on the keyboard is only available when you
> open the keyboard.  By default this automatically rotates the display
> to landscape. You can override this and keep your application in
> portrait mode by specifying android:screenOrientation="portrait" in
> your manifest. There is an article on coding for 5-way on our MOTODev
> Android Technical Library (http://developer.motorola.com/docstools/
> library/Navigating_Around_Your_Application/) that may answer your
> question in more detail.
>
> On Sep 11, 10:02 am, Dianne Hackborn  wrote:
>
>
>
> > I am pretty sure it is basically like the G1, except you can only access the
> > DPAD when the screen is open instead of it being on the front.  So opening
> > the screen would rotate it unless an application has explicitly forced an
> > orientation, and the platform should rotate the DPAD key events for you
> > based on the current orientation like it does for the trackball on other
> > devices.
>
> > On Fri, Sep 11, 2009 at 12:57 AM, Carl Whalley
> > wrote:
>
> > > Anything around?
> > > In particular, exactly what do those buttons do and are we to assume
> > > to use the DPAD in portrait mode the phone is turned 180 from what
> > > you'd expect "normal" portrait mode to be (see the pic, you'll see
> > > what I mean:http://ota.cc/az). I'm just guessing here but as a
> > > developer would like to know how to handle this.
> > > Do we need to code for a new orientation: keyboard closed portrait,
> > > keyboard open portrait and landscape?
>
> > > --
> > > Android Academy:http://www.androidacademy.com
>
> > --
> > 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] AVD for Motorola Cliq?

2009-09-11 Thread Carl Whalley

Anything around?
In particular, exactly what do those buttons do and are we to assume
to use the DPAD in portrait mode the phone is turned 180 from what
you'd expect "normal" portrait mode to be (see the pic, you'll see
what I mean: http://ota.cc/az). I'm just guessing here but as a
developer would like to know how to handle this.
Do we need to code for a new orientation: keyboard closed portrait,
keyboard open portrait and landscape?

--
Android Academy: http://www.androidacademy.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: buttons hidden

2009-09-06 Thread Carl

Thanks, I'm such an idiot! The docs say "LinearLayout aligns all
children in a single direction", I expected the items to wrap around
and continue underneath.
I followed this layout you specified and was able to get the results
within minutes. I really do need to RTFM.

Sorry about that

On 6 Sep, 23:13, Mark Murphy  wrote:
> Carl wrote:
> > What I'm trying to achieve is this:
>
> > A label with "Band" in it, and next to it a textbox in which to type
> > the band's name, then underneath the "Band" label a label "Members",
> > and next to it a textbox to type the members.
> > Then underneath all of this, a save button and a cancel button.
>
> LinearLayout
>         LinearLayout
>                 TextView
>                 EditText
>         LinearLayout
>                 TextView
>                 EditText
>         LinearLayout
>                 Button
>                 Button
>
> > Undortunately, all my attempts to use a linearlayout have caused the
> > buttons to disappear
>
> > Thanks for the advice on the hierarchyviewer though. I'm now able to
> > see whats happening, but it still makes no difference. I can't make it
> > display the way I want it to
>
> Did you follow the other steps I outlined? If yes, and it still does not
> work, post the layout XML.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android Training in Germany, 18-22 January 2010:http://bignerdranch.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: buttons hidden

2009-09-06 Thread Carl

What I'm trying to achieve is this:

A label with "Band" in it, and next to it a textbox in which to type
the band's name, then underneath the "Band" label a label "Members",
and next to it a textbox to type the members.
Then underneath all of this, a save button and a cancel button.

Undortunately, all my attempts to use a linearlayout have caused the
buttons to disappear

Thanks for the advice on the hierarchyviewer though. I'm now able to
see whats happening, but it still makes no difference. I can't make it
display the way I want it to

On 5 Sep, 22:30, Mark Murphy  wrote:
> Carl wrote:
> > I'm trying to show a simple layout where I can call this activity and
> > fill in some values, then hit the save or cancel button. Unfortunately
> > the save and cancel buttons never appear. Can someone help please?
>
> Use hierarchyviewer to figure out where your missing widgets are:
>
> http://developer.android.com/guide/developing/tools/hierarchy-viewer
>
> Here are some things that are unusual about your XML:
>
> > 
> > http://schemas.android.com/apk/res/
> > android"
> >    android:layout_width="fill_parent"
> >    android:layout_height="wrap_content"
>
> It is strange that you have the top-level container have a layout_height
> of wrap_content, particularly when you later attempt to use a
> layout_height of fill_parent for the second of the children. Consider
> making layout_height fill_parent here.
>
> >     >            android:orientation="horizontal"
>
> TableLayout does not have an android:orientation attribute.
>
>
>
>
>
> >     >            android:orientation="horizontal"
> >            android:layout_width="fill_parent"
> >            android:layout_height="fill_parent">
>
> >            
>
> >                     >                            android:id="@+id/save"
> >                            android:text="@string/save"
> >                            android:layout_width="fill_parent"
> >                            android:layout_height="wrap_content"
> >                            android:layout_weight="1" />
>
> >                     >                            android:id="@+id/cancel"
> >                            android:text="@string/cancel"
> >                            android:layout_width="fill_parent"
> >                            android:layout_height="wrap_content"
> >                            android:layout_weight="1" />
>
> >            
>
> >    
>
> It is unclear why you are using TableLayout here versus a LinearLayout,
> since you have a one-row, one-column table.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 1.0 In Print!- 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] buttons hidden

2009-09-05 Thread Carl

I'm trying to show a simple layout where I can call this activity and
fill in some values, then hit the save or cancel button. Unfortunately
the save and cancel buttons never appear. Can someone help please?



http://schemas.android.com/apk/res/
android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:paddingTop="8dp">



































--~--~-~--~~~---~--~~
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   >