[android-developers] How to change title/menu bar background colour in Android Studio 2.2

2016-11-25 Thread Simon Nixon
Hi,

How do I change the colour of the title/menu bar background.

Simnix



-- 
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/a240c324-e031-4ae7-ae65-fb6988b2c9e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Android Nougat / 7.0 issues with utilizing IIS https web services

2016-11-09 Thread Simon Marcinkowski
Hello there,
I have an app which connects perfectly with our IIS services on all SDK 
versions <24. 
When installed on Pixel phone, it doesn't want to connect with same 
services. I checked changes to Android N related with network security and 
it looks that those changes affects network behavior. 
I followed instructions on google here  
but 
I'm not 100% sure it works for me. So the first question is: 
1. If correctly implemented network_security_config.xml with certs issued 
for my website, do I need any code changes when using ksoap2 or it will 
just work?
Version used in current app is 
app/libs/ksoap2-android-assembly-3.0.0-RC.2-jar-with-dependencies.jar I 
know is old but works perfectly so far. 
2. Are there any changes in current versions of ksoap2 which possibly 
affects network connection on Pixel phone? Should I update it?

Now I have this error javax.net.ssl.SSLHandshakeException: Connection 
closed by peer . 
I'm not sure how properly embed cert in my app. I'm using GoDaddy certs and 
there are only *.cer certs available and Google mention about PEM and DER 
formats. 
3. If anybody could point me how to properly embed certs, that would be 
great. I found https://blog.sagaoftherealms.net/?p=578 procedure to embed 
certs but on linux and I'm on windows platform.
Just a while ago I exported certs using Chrome export cert (DER encoded 
binary X.509 cer) when browsing our page, embedded in app under res/raw but 
I got this message Caused by: 
android.security.net.config.XmlConfigSource$ParserException: Unknown 
certificates src. Should be one of system|user|@resourceVal at: Binary XML 
file line #13 so I belive it is in the wrong format.
4. Is it a big difference when I refer to sources using @ (at) char at the 
beginning? For some reason when I use @ system can't recognize this 
resource, but when I remove it, it works.

I would be very appreciated for any help. I'm not Java Android developer 
but I need to fix this quickly,
Thanks in advance! :)

-- 
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/b6e600d5-e83e-4626-8484-cec8874a84f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] How to move an image between an activity to another

2016-06-14 Thread Simon Usardi
I refer only to the java code...
Thank you in advance for your time.







-- 
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/a432950d-0170-42f9-af0d-20f6bf90de72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: where am I wrong?

2016-06-13 Thread Simon Usardi
sardan Khan tnks for your time

Il giorno domenica 12 giugno 2016 17:14:52 UTC+2, Simon Usardi ha scritto:
>
> package com.example.non.inizializzareunaltraactivity;
>
> import android.content.Intent;
>
> import android.support.v7.app.AppCompatActivity;
> import android.os.Bundle;
> import android.view.View;
> import android.widget.EditText;
>
> public class MainActivity extends AppCompatActivity {
> public  final static String messaggioExtra = 
> "com.example.non.inizializzareunaltraactivity.MESSAGE";
>
> @Override
> protected void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
> setContentView(R.layout.activity_main);
>
> }
> public void invia(View view){
>
> Intent Portale = new Intent(this, PaginaMessaggio.class);
>
> EditText nascoasto = (EditText)findViewById(R.id.Hint);
> String y = nascoasto.getText().toString();
>
> Portale.putExtra(messaggioExtra, y);
> startActivity(Portale);
> }
> }
>
>

-- 
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/f12fd1e0-7029-4464-b1ea-e92e585dfe4d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] where am I wrong?

2016-06-12 Thread Simon Usardi


package com.example.non.inizializzareunaltraactivity;

import android.content.Intent;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;

public class MainActivity extends AppCompatActivity {
public  final static String messaggioExtra = 
"com.example.non.inizializzareunaltraactivity.MESSAGE";

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

}
public void invia(View view){

Intent Portale = new Intent(this, PaginaMessaggio.class);

EditText nascoasto = (EditText)findViewById(R.id.Hint);
String y = nascoasto.getText().toString();

Portale.putExtra(messaggioExtra, y);
startActivity(Portale);
}
}

-- 
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/baf053d4-dd01-4ef0-86c5-c001c35323ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] ScrollView not erasing all of top line

2016-06-01 Thread Simon Giddings
I have a custom view embedded within a ScrollView which displays music 
scores.
When I scroll the view, after a time, parts of the top row are not erased.
Here is an example which illustrates the problem -



Here is another closeup view



I have no code which does any erasing.

Is this a known problem ?

Does anyone know of a solution or workaround ?


-- 
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/328d904b-ce6c-492c-98f7-4c01e27999c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Screen on event

2016-04-24 Thread chen Simon
 
How can I know if the screen is turned on due to user's pressing power 
button or other event like incoming call? Thanks for your help.

-- 
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/81fadf62-dd65-45d4-baa5-d1ba36fecefb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: App uninstall doesn't remove SQL database

2016-04-03 Thread 'Simon Ho' via Android Developers
This is getting stranger. This only seems to happen on Windows. This is the 
process I tried:

1. Delete/uninstall the app from the phone
2. Run app from android studio on Windows. Problem: database still exists 
and app sees all old data (even though I uninstalled the app)
3. Uninstall app
4. Run app from android studio on my macbook. No problem! The database is 
fresh, and no existing data is found
5. Uninstall app again
6. Test again on my Windows machine. Now, the database comes back and the 
app sees the old old database info (from step 2!). Uninstall at this point 
doesn't get rid of it

So I really am at a loss now. Why would running on a Mac be OK? And why 
would, after running on a Mac and cleaning out the database, then bring the 
old Windows database again? Should this not all be OS independent?

-- 
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/9bd2d742-39bf-4494-9309-22f4a28429af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: App uninstall doesn't remove SQL database

2016-04-03 Thread 'Simon Ho' via Android Developers
This is getting stranger. This only seems to happen on Windows. This is the 
process I tried:

1. Delete/uninstall the app from the phone
2. Run app from android studio on Windows. Problem: database still exists 
and app sees all old data (even though I uninstalled the app)
3. Uninstall app
4. Run app from android studio on my macbook. No problem! The database is 
fresh, and no existing data is found
5. Uninstall app again
6. Test again on my Windows machine. Now, the database comes back and the 
app sees the old old database info (from step 2!). Uninstall at this point 
doesn't get rid of it

So I really am at a loss now. Why would running on a Mac be OK? And why 
would, after running on a Mac and cleaning out the database, then bring the 
old Windows database again? Should this not all be OS independent?



On Sunday, 3 April 2016 03:55:29 UTC-7, Simon Ho wrote:
>
> I posted this on stackoverflow, but I thought maybe I'd have more luck 
> here...
>
> I have a strange problem where my SQL database doesn't remove itself when 
> I uninstall the app
>
> I'm not creating the database in any external storage directories, and the 
> database is confirmed to be in its default location: 
> /data/data/com.example.app/databases/
>
> After I uninstall the app, I expect all the data in that location to be 
> wiped, but when I run the app again from android studio the new install can 
> still see all of the old data
>
> I have tried using adb to manually delete the .db file from the databases 
> directory, but when I run the app again the old data can still be seen
>
> I have also tried going into the app settings and clearing the data and 
> cache, but that doesn't seem to help
>
> The only places in my code where I'm doing anything "strange" with regards 
> to the database is I'm copying the database file to a new location on 
> button click:
>
> String pathToExternalStorage = Environment.getExternalStorageDirectory
> ().toString();
> File exportDir = new File(pathToExternalStorage, "/SensorData");
> File subjectDataDir = new File(exportDir, "/subjects");
> 
> File data = Environment.getDataDirectory();
> String currentDBPath = "//data//com.example.app//databases//" + 
> DBHelper.DATABASE_NAME;
> File currentDB = new File(data, currentDBPath);
> File destDB = new File(exportDir, DBHelper.DATABASE_NAME);
> 
> FileChannel src = new FileInputStream(currentDB).getChannel();
> FileChannel dst = new FileOutputStream(destDB).getChannel();
> dst.transferFrom(src, 0, src.size());
> src.close();
> dst.close();
>
>
> And then running mediascanner on the newly created file so I can get 
> instant MTP access to it
>
> I doubt that either of these processes could cause this to happen though?
>
> My immediate question is how do I manually remove the database from the 
> phone without root access?
>
> The bigger question is what could be causing the uninstall process to not 
> remove the database files? And how does a newly installed version of the 
> app (after an uninstall) still see the old database information?
>
> I'm not sure how to begin figuring this out...
>

-- 
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/ef1c0034-9473-4179-b08a-3a431a27d14b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] App uninstall doesn't remove SQL database

2016-04-03 Thread 'Simon Ho' via Android Developers
I posted this on stackoverflow, but I thought maybe I'd have more luck 
here...

I have a strange problem where my SQL database doesn't remove itself when I 
uninstall the app

I'm not creating the database in any external storage directories, and the 
database is confirmed to be in its default location: 
/data/data/com.example.app/databases/

After I uninstall the app, I expect all the data in that location to be 
wiped, but when I run the app again from android studio the new install can 
still see all of the old data

I have tried using adb to manually delete the .db file from the databases 
directory, but when I run the app again the old data can still be seen

I have also tried going into the app settings and clearing the data and 
cache, but that doesn't seem to help

The only places in my code where I'm doing anything "strange" with regards 
to the database is I'm copying the database file to a new location on 
button click:

String pathToExternalStorage = Environment.getExternalStorageDirectory
().toString();
File exportDir = new File(pathToExternalStorage, "/SensorData");
File subjectDataDir = new File(exportDir, "/subjects");

File data = Environment.getDataDirectory();
String currentDBPath = "//data//com.example.app//databases//" + DBHelper
.DATABASE_NAME;
File currentDB = new File(data, currentDBPath);
File destDB = new File(exportDir, DBHelper.DATABASE_NAME);

FileChannel src = new FileInputStream(currentDB).getChannel();
FileChannel dst = new FileOutputStream(destDB).getChannel();
dst.transferFrom(src, 0, src.size());
src.close();
dst.close();


And then running mediascanner on the newly created file so I can get 
instant MTP access to it

I doubt that either of these processes could cause this to happen though?

My immediate question is how do I manually remove the database from the 
phone without root access?

The bigger question is what could be causing the uninstall process to not 
remove the database files? And how does a newly installed version of the 
app (after an uninstall) still see the old database information?

I'm not sure how to begin figuring this out...

-- 
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/690f04d7-ae01-448c-b26b-eaae0295e8b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Emulators for WebView versions

2016-03-24 Thread simon
We make an Android wallet app called Jaxx. We have had recurring issues 
with some of our Javascript middleware in different versions of Android, 
and it's relating to the user's version of the WebView component that is 
installed. We are looking to obtain emulators of the different versions of 
the WebView component that have been published for each Android OS version, 
so that we can determine how the problem has arisen, and deterministically 
recover our clients' lost funds. Is this the best place to explore this, or 
is there some more direct route to speaking with Google developers about 
this?

-- 
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/6f554dc3-2c80-45de-8d58-77f1bfe950c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Google Maps Android GPS App

2016-03-02 Thread Simon Leen
Hi gjs, Thanks for the reply but without trying to sound rude that doesn't 
really help much in answering my question.
I've been looking up way points, the Directions API and more but the 
problem is I can't anything that will get me on the right track.
Regards 

On Thursday, March 3, 2016 at 6:40:30 AM UTC, gjs wrote:
>
> Hi
>
> You can probably do this by also using the various maps API eg
>
> https://developers.google.com/maps/documentation/directions/intro#Waypoints
>
> Regards
>
>

-- 
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/79d4d5a6-f2fd-4244-b192-b1804b66ce6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Google Maps Android GPS App

2016-03-02 Thread Simon Leen
I am working on an Android Running App and currently trying to implement a 
user chosen distance route. 
I have been looking with a few weeks and cant seem to find anything that 
can help. 
I have user location and updates working but the problem is I don't want to 
set a defined destination. 
I would like to be able to input a chosen distance be it 5 km and have a 
route/multiple routes displayed with the destination being the end of the 
distance.
Any help would be greatly appreciated.
Thanks

-- 
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/20a09ef4-d72f-48d7-8811-8b4d9db0eb4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Why does NdsManager not work on Android Wear?

2016-02-17 Thread Simon East
scovery.start();
}

All I get back is


E/ServerDiscovery: Discovery failed: Error code:0

Error code 0 apparently means Internal Error which does not help much.


The phone the watch is paired to is off, and the watch is connected to the 
WiFi network and in fact in other tests I can open a socket to the server 
fine - so I think the networking side of things is all working - it is just 
NdsManager that is not working for some reason.


Anyone got any idea why this is not working?


Thanks, Simon.

-- 
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/c834a59e-c7f3-46a8-a29d-2bd6aafddeb1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: ZipInputStream getNextEntry does not return file header info

2015-12-10 Thread Simon Giddings
Shame I didn't get any answers here.

Here is my solution, which might not be the best but is good for me.
Use the class ZipFile to open and read the zip contents.
Inspired from here ZipInputStream: getting file size of -1 when reading 
<http://www.coderanch.com/t/563455/java/java/ZipInputStream-file-size-reading>

Le samedi 5 décembre 2015 18:16:28 UTC+1, Simon Giddings a écrit :
>
> This would appear to be a bug.
>
> I create a zip file using ZipOutputStream with success.
> I can then transfer it from the tablet to my PC and look at it with WinZip.
> All files have the corresponding size, compressed size, and CRC values.
>
> Now, if I open the zip with ZipInputStream and call getNextEntry, these 
> values are not set.
> Here is how I am reading the file :
>
> try
> {
> // open the archive
> FileInputStream fis = new FileInputStream(fArchive);
> ZipInputStream zis = new ZipInputStream(new BufferedInputStream(fis));
> bBuffer = new byte[2048];
>
> // iterate through all files, putting them back into the same place
> ze = zis.getNextEntry();
> while(ze != null)
> {
> strFileName = ze.getName();
> strFileName = FILE_PATH + "/" + strFileName;
> fCheck = new File(strFileName);
> lZipFileSize = ze.getSize(); // <--- returns -1 systematically
> lTargetFileSize = fCheck.length();
> fCheck = null;
> FileOutputStream fos = new FileOutputStream(strFileName);
>
> // read the data
> while((iCount = zis.read(bBuffer)) != -1)
> {
> fos.write(bBuffer, 0, iCount);
> }
> fos.close();
>
> ze = zis.getNextEntry();
> }
> zis.close();
> fis.close();
> bOk = true;
> }
> catch(Exception e)
> {
> e.printStackTrace();
> }
>
>
> When I look into the source for ZipInputStream, I see the following code :
> if (!hasDD) {
> ceCrc = ((long) Memory.peekInt(hdrBuf, LOCCRC - LOCVER, ByteOrder.
> LITTLE_ENDIAN)) & 0xL;
> ceCompressedSize = ((long) Memory.peekInt(hdrBuf, LOCSIZ - LOCVER, 
> ByteOrder.LITTLE_ENDIAN)) & 0xL;
> ceSize = ((long) Memory.peekInt(hdrBuf, LOCLEN - LOCVER, ByteOrder.
> LITTLE_ENDIAN)) & 0xL;
> }
>
> This is the only position that I can see where the values are retrieved, 
> yet it is ignored because of the !hasDD condition.
>
> Have I misunderstood something here ?
> Is this a real bug or is there an extra step to be taken ?
>

-- 
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 http://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/5ba7c710-99ae-4b6f-9c55-947870c3ccbc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] ZipInputStream getNextEntry does not return file header info

2015-12-05 Thread Simon Giddings
This would appear to be a bug.

I create a zip file using ZipOutputStream with success.
I can then transfer it from the tablet to my PC and look at it with WinZip.
All files have the corresponding size, compressed size, and CRC values.

Now, if I open the zip with ZipInputStream and call getNextEntry, these 
values are not set.
Here is how I am reading the file :

try
{
// open the archive
FileInputStream fis = new FileInputStream(fArchive);
ZipInputStream zis = new ZipInputStream(new BufferedInputStream(fis));
bBuffer = new byte[2048];

// iterate through all files, putting them back into the same place
ze = zis.getNextEntry();
while(ze != null)
{
strFileName = ze.getName();
strFileName = FILE_PATH + "/" + strFileName;
fCheck = new File(strFileName);
lZipFileSize = ze.getSize(); // <--- returns -1 systematically
lTargetFileSize = fCheck.length();
fCheck = null;
FileOutputStream fos = new FileOutputStream(strFileName);

// read the data
while((iCount = zis.read(bBuffer)) != -1)
{
fos.write(bBuffer, 0, iCount);
}
fos.close();

ze = zis.getNextEntry();
}
zis.close();
fis.close();
bOk = true;
}
catch(Exception e)
{
e.printStackTrace();
}


When I look into the source for ZipInputStream, I see the following code :
if (!hasDD) {
ceCrc = ((long) Memory.peekInt(hdrBuf, LOCCRC - LOCVER, ByteOrder.
LITTLE_ENDIAN)) & 0xL;
ceCompressedSize = ((long) Memory.peekInt(hdrBuf, LOCSIZ - LOCVER, 
ByteOrder.LITTLE_ENDIAN)) & 0xL;
ceSize = ((long) Memory.peekInt(hdrBuf, LOCLEN - LOCVER, ByteOrder.
LITTLE_ENDIAN)) & 0xL;
}

This is the only position that I can see where the values are retrieved, 
yet it is ignored because of the !hasDD condition.

Have I misunderstood something here ?
Is this a real bug or is there an extra step to be taken ?

-- 
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 http://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/e76679a5-d150-4657-85fd-85db8fdad45f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Getting the list of supported devices - encoding problems

2015-09-23 Thread Simon Giddings
I wanted to obtain the list of supported devices and then automatically 
process them.
I found this page : 
https://support.google.com/googleplay/android-developer/answer/6154891?hl=en

However, the file is encoded as UCS2 Little endian.

Is there a UTF-8 or unicode version available ?

It is important for me to be able to get this automatically, ie via php 
scripting which is unable to convert from UCS2-LE to UTF-8.

-- 
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] Re: How to change actionbar text case

2015-07-29 Thread Simon Giddings
If anyone is needing to do the same thing, here is my working solution.

Note that I am targeting API 14 and above.

style name=AppTheme parent=android:Theme.Holo.Light.DarkActionBar 
item name=android:actionMenuTextAppearance
@style/myActionBarMenuText/item
/style

!-- Override actionbar menu text appearance --
style name=myActionBarMenuText parent=
android:TextAppearance.Holo.Widget.ActionBar.Menu
item name=android:textAllCapsfalse/item
!-- was 12sp, which is too small for me in mixed case --
item name=android:textSize16sp/item
/style


I hope this will be useful for someone ...

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


[android-developers] How to change actionbar text case

2015-07-28 Thread Simon Giddings


I have developed an application which contains this app theme style :
 style name=AppTheme parent=android:Theme.Holo.Light.DarkActionBar /

I have tried various means to change the actionbar text to be mixed case 
instead of all uppercase.
To illustrate, here is a screen shot -

https://lh3.googleusercontent.com/-fL-5_3uD_z0/VbeuwHo1THI/ArM/4ZcuCqB2spU/s1600/actionbar-uppercase-text.jpg

The styles I have tried thus far have produced anything but the desired 
effect.

How do I restyle just the letter case of these items ?

-- 
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] Re: How to stop ActionBar getting focus

2015-07-15 Thread Simon Giddings
Ok, here is my solution ...

When the pedal keyEvent is processed in dispatchKeyEvent, send a message to 
the same activity to call requestFocus on the main content view.

Le mardi 14 juillet 2015 17:29:49 UTC+2, Simon Giddings a écrit :

 I have integrated the use of Bluetooth pedals, which declare themselves as 
 being a keyboard.

 When the pedal is pressed, my activity gets the keypress and, in 
 dispatchKeyEvent, I return true to indicate that I have consumed the 
 event.
 However, the ActionBar is still responding to the keypress by highlighting 
 the title button - I have already set setDisplayHomeAsUpEnabled as true.

 I then captured the corresponding area in the action bar and removed 
 focusable like this -
 int iActionBarTitle = 
 getResources().getIdentifier(action_bar_title, id, android);
 View v = findViewById(iActionBarTitle);
 v = (View)v.getParent().getParent();
 v.setFocusable(false);

 However, this just moved the focus to the first action item.

 I do not want to do a lot of hacking so as to avoid further difficulties 
 down the line.
 Not sure of how I can overcome this problem correctly.

 Can anyone guide me with this ?


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


[android-developers] How to stop ActionBar getting focus

2015-07-14 Thread Simon Giddings
I have integrated the use of Bluetooth pedals, which declare themselves as 
being a keyboard.

When the pedal is pressed, my activity gets the keypress and, in 
dispatchKeyEvent, I return true to indicate that I have consumed the event.
However, the ActionBar is still responding to the keypress by highlighting 
the title button - I have already set setDisplayHomeAsUpEnabled as true.

I then captured the corresponding area in the action bar and removed 
focusable like this -
int iActionBarTitle = 
getResources().getIdentifier(action_bar_title, id, android);
View v = findViewById(iActionBarTitle);
v = (View)v.getParent().getParent();
v.setFocusable(false);

However, this just moved the focus to the first action item.

I do not want to do a lot of hacking so as to avoid further difficulties 
down the line.
Not sure of how I can overcome this problem correctly.

Can anyone guide me with this ?

-- 
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] Re: How to remove blue cast on views

2015-04-27 Thread Simon Giddings
Can you give any guidance, help, as to how to achieve this ?

On Monday, 27 April 2015 09:12:51 UTC+2, Diogo Henrique wrote:

 Simon, check your style, and try change the main Parentor create a 
 default background in your entire app.

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


[android-developers] How to remove blue cast on views

2015-04-25 Thread Simon Giddings
In my app, I create a music score dynamically in a custom view.
This is held within a fragment, which does not have any custom background 
colour or resource applied to it.
Here is a screen shot illustrating the situation ...

https://lh3.googleusercontent.com/-UMUzpvlsKeY/VTtaNU0ZG2I/AqQ/ZA9tSIjNIbM/s1600/573%2B-%2BHosanna.jpg

How can I remove this blue cast correctly ?

Can this be done once in a global manner so that all view are impacted ?
https://lh3.googleusercontent.com/-UMUzpvlsKeY/VTtaNU0ZG2I/AqQ/ZA9tSIjNIbM/s1600/573%2B-%2BHosanna.jpg

-- 
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] Migrating to Android Studio

2015-01-10 Thread Simon Giddings
I have been developing a large project for a long time now and am nearly at 
the point of wanting to release it.

However, I have seen that the official IDE is no longer Eclipse but Android 
Studio.
In addition, I have seen a number of discussions passing by where people 
are complaining about bugs within Studio.
Is Studio really in a production stable state yet ?

So, my obvious question here is - should I be migrating to Studio *now* ?

If so, are there any accurate guides for doing this ?
I have seen the, very, succinct description on the developers site which 
appears to skip certain steps.
For example, it says to import the project .gradle file - without 
explaining how to generate this file !

Hopefully someone will be patient enough to help me with this ... please ?

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


Re: [android-developers] Migrating to Android Studio

2015-01-10 Thread Simon Giddings
This is great - first class answer !
Thanks for reassuring me about this move - which I will indeed undertake 
after my first release.

On Saturday, January 10, 2015 at 8:29:27 PM UTC+1, TreKing wrote:


 On Sat, Jan 10, 2015 at 11:24 AM, Simon Giddings mr.s.g...@gmail.com 
 javascript: wrote:

 Is Studio really in a production stable state yet ?


 http://android-developers.blogspot.com/2014/12/android-studio-10.html 
  

 So, my obvious question here is - should I be migrating to Studio *now* ?


 You should probably have migrated months ago. But at this point, do you 
 need to migrate this second? No. If Eclipse is working for you and you're 
 about to release, why complicate things with a new environment? I'd get 
 that release out the door, back up everything, create a new branch in your 
 repo, and start the process there.
  

 If so, are there any accurate guides for doing this ?
 I have seen the, very, succinct description on the developers site which 
 appears to skip certain steps.
 For example, it says to import the project .gradle file - without 
 explaining how to generate this file !


 I assume you're referring to this: 
 https://developer.android.com/sdk/installing/migrate.html, where in step 
 3 it says Locate the project you exported from Eclipse. So, while it's 
 not 100% explicit, it is indicating that you should have done an export 
 from Ecipse. Did you try that?

 Personally I found that transition fairly smooth. You don't even have to 
 export Eclipse first anymore. Just do an import in Android Studio and it 
 will detect the Eclipse project structure and import it for you. Give that 
 a shot.


 -
 TreKing http://sites.google.com/site/rezmobileapps/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
--- 
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] Re: Connect tablet to locally hosted web site

2014-09-27 Thread Simon Giddings
For the solution to this question, see my stackoverflow question and answer 
here :
Android: HTTP connection to localhost web site 
http://stackoverflow.com/questions/26053675/android-http-connection-to-localhost-web-site

Rather disappointed that nobody bothered to answer here on this dedicated 
forum, though.

On Thursday, 25 September 2014 10:36:02 UTC+2, Simon Giddings wrote:

 I have an application developed which needs to connect to a web site to 
 collect online content.

 I have seen that we can indeed connect to a web server on a local system 
 by addressing it via it's ip address.
 However, I am using virtual hosts on my system, so as to use virtual 
 domains.
 This is setup on my system in the apache httpd-vhosts.conf file like this 
 -
 #
 # Project wordpress dev site
 #
 VirtualHost *:80
 DocumentRoot C:/web/www/boutique
 ServerName boutique.project.dev
 /VirtualHost

 with my hosts file having the following entry
 127.0.0.1boutique.project.dev# project woocommerce site

 I am using the HttpPost and HttpClient classes and I cannot see how I can 
 provide the real IP address whilst still transmitting the host name in the 
 URL request.

 So, what I need to know is how can I make queries from my application 
 using the virtual address  boutique.project.dev  ?
 Is this possible ?


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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] Connect tablet to locally hosted web site

2014-09-25 Thread Simon Giddings
I have an application developed which needs to connect to a web site to 
collect online content.

I have seen that we can indeed connect to a web server on a local system by 
addressing it via it's ip address.
However, I am using virtual hosts on my system, so as to use virtual 
domains.
This is setup on my system in the apache httpd-vhosts.conf file like this -
#
# Project wordpress dev site
#
VirtualHost *:80
DocumentRoot C:/web/www/boutique
ServerName boutique.project.dev
/VirtualHost

with my hosts file having the following entry
127.0.0.1boutique.project.dev# project woocommerce site

I am using the HttpPost and HttpClient classes and I cannot see how I can 
provide the real IP address whilst still transmitting the host name in the 
URL request.

So, what I need to know is how can I make queries from my application using 
the virtual address  boutique.project.dev  ?
Is this possible ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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] Allowing underlying ScrollView to scroll

2014-07-31 Thread Simon Giddings
I have a ScrollView which fills the screen, within a RelativeLayout.
Positioned over this are a series of transparent Views placed in each 
corner as hotspots.
Their only purpose is to capture tap/click events.

However, I do not see how I can let dragging events be passed onto the 
underlying ScrollView.
This is needed as these hotspots are large.

Is there a simple way of doing this ?

-- 
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] Re: Fragment animations using objectAnimator to slide over the previous fragment

2014-06-06 Thread Simon Giddings
Thanks for your suggestion.
No, you are right, I have not considered this as yet (didn't know I could 
to be honest).
I'll look into this option, unless anyone else has already done this and 
could share here ?

On Friday, 6 June 2014 10:10:44 UTC+2, Doug wrote:

 I have not thought through this myself thoroughly, but have you considered 
 using a FragmentPagerAdapter with a ViewPager?

 Doug

 On Thursday, June 5, 2014 11:41:02 AM UTC-7, Simon Giddings wrote:


 I have seen the kind of effect I want being demonstrated with the 
 ViewPager 
 http://developer.android.com/training/animation/screen-slide.html#depth-page
  
 - but I am using Fragments.
 Can this kind of transition (just the moving in from the left bit shown 
 at the end) be achieved with fragment animation ?



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


Re: [android-developers] Re: Fragment animations using objectAnimator to slide over the previous fragment

2014-06-06 Thread Simon Giddings
Thanks for this Harri,

Tried it, to no avail.
In fact, what I have found is that the new fragment, when it is animated 
in, comes in *under* the existing fragment.
What I need is for it to be inserted *over* or *before* the existing 
fragment.
Cannot see how to do  this.

Not too happy about ViewPager as it is in the support library - which for 
me means that it is not stable code, at least not as stable as system code.

Any other thoughts ?

On Friday, 6 June 2014 15:16:22 UTC+2, Harri Smatt wrote:

 Hmm.. Maybe I misunderstood the problem but does it help if you simply use 
 non-transparent Fragment background colour?
 On Jun 6, 2014 2:14 PM, Simon Giddings mr.s.g...@gmail.com 
 javascript: wrote:

 Thanks for your suggestion.
 No, you are right, I have not considered this as yet (didn't know I could 
 to be honest).
 I'll look into this option, unless anyone else has already done this and 
 could share here ?

 On Friday, 6 June 2014 10:10:44 UTC+2, Doug wrote:

 I have not thought through this myself thoroughly, but have you 
 considered using a FragmentPagerAdapter with a ViewPager?

 Doug

 On Thursday, June 5, 2014 11:41:02 AM UTC-7, Simon Giddings wrote:


 I have seen the kind of effect I want being demonstrated with the 
 ViewPager 
 http://developer.android.com/training/animation/screen-slide.html#depth-page
  
 - but I am using Fragments.
 Can this kind of transition (just the moving in from the left bit shown 
 at the end) be achieved with fragment animation ?

  -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-d...@googlegroups.com 
 javascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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 javascript:.
 For more options, visit https://groups.google.com/d/optout.



-- 
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] Fragment animations using objectAnimator to slide over the previous fragment

2014-06-05 Thread Simon Giddings
After having spent quite a bit of time searching for this, I need to 
request help here.

I have a series of fragments each representing a page.
I want to give the user a nice animation effect when going to the next page 
he has requested.

I want that the new fragment slides in *over* the previous fragment, hiding 
it as if it were a solid page.
At present I can slide in the new fragment, but we can still see the 
underlying fragment during the transition.

Here is my slide in transition definition :
?xml version=1.0 encoding=utf-8?
set xmlns:android=http://schemas.android.com/apk/res/android;
android:fillAfter=false 

objectAnimator
android:duration=500
android:propertyName=x
android:valueFrom=-1280
android:valueTo=0
android:valueType=floatType /
/set

And here is my fade out transition
set xmlns:android=http://schemas.android.com/apk/res/android; 
android:fillAfter=false 
objectAnimator
android:propertyName=alpha
android:duration=500
android:valueFrom=1.0
android:valueTo=0
android:valueType=floatType /
/set

I apply it with :
Fragment f = (Fragment)FragClass.newInstance();
FragmentTransactionft = getFragmentManager().beginTransaction();
ft.setCustomAnimations(R.animator.fragment_slide_in, 
R.animator.fragment_fade_out);
ft.replace(R.id.fl_frame, f);
ft.commit();

I have seen the kind of effect I want being demonstrated with the ViewPager 
http://developer.android.com/training/animation/screen-slide.html#depth-page 
- but I am using Fragments.
Can this kind of transition (just the moving in from the left bit shown at 
the end) be achieved with fragment animation ?

-- 
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] Unable to see installed app via DDMS

2014-05-27 Thread Simon Giddings
I have just purchased and received my Samsung Galaxy Tab Pro 10.1 tablet 
(Android 4.4.2).
Just got over the panic of not seeing the developer options in settings = 
had to tap 7 times on the version number to get this displayed.

Now, I have started a debug session to install my app for continuing 
development.
I need to add data files to the installation location, but when I go into 
DDMS file explorer, it refuses to open the /data directory.
Is there a way of opening this, somehow ?

The file permissions are : drwxrwx--x
I presume that I will need to change it to drwxrwxrwx ?

Is this right ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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] Creating a custom PreferenceScreen for configuring connected devices

2014-05-23 Thread Simon Giddings
My app will receive input from external bluetooth devices.
I want to be able to let the user configure the application according to 
the paired device present.

The obvious place for this is within the shared preference activity.
As I am only targeting tablets for this, I was wanting to take advantage of 
the side-by-side display as shown here =


So, the right hand screen (2) will need to permit the selection of the 
supported device, display a picture of it and permit the configuring of 
relevant parts.

Should I be deriving a new class from PreferenceScreen for this ?
If so, what do I need to do to get this form of flexibility ?
Is there a better way ?

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


Re: [android-developers] Re: How to calculate a tablets resolution before purchasing the tablet

2014-05-22 Thread Simon Giddings
Great Tobias,

This is a great help, thank you for taking the time to put this here !

On Wednesday, 21 May 2014 21:37:20 UTC+2, Tobias wrote:

 I found this dpi/ppi calculator to be useful: http://www.sven.de/dpi/
 It will give you the actual physical dpi. Taking this value and then 
 rounding it to the closet dpi bucket (
 http://developer.android.com/reference/android/util/DisplayMetrics.html) 
 would be a good bet, even though the manufacturer could choose a different 
 bucket.

 Tobias

 Den onsdagen den 16:e april 2014 kl. 09:14:48 UTC+2 skrev Simon Giddings:

 Thank you Marina for your reply which is much more useful.

 Even if it means that I am stuck at this point.  After all, as 
 independent developers, we are not all sufficiently rich to be able to 
 purchase a number of tablet devices to be able to run our tests.

 Thank you again Marina, I won't be wasting my time searching further.

 On Tuesday, 15 April 2014 15:27:10 UTC+2, Marina Cuello wrote:

 You can search for/make an app that detects the bucket and install it, 
 if you have access to the device. A quick search gives me 
 https://play.google.com/store/apps/details?id=com.pmc.android.checkscreensize,
  
 but there are plenty.
 Otherwise, as far as I can recall it depends on the manufacturer's 
 decision which bucket it takes. So no, you can't calculate the bucket 
 given the physical screen size and dpi specs.

 Marina


 On Tue, Apr 15, 2014 at 4:06 AM, Simon Giddings mr.s.g...@gmail.comwrote:

 The effort I made did not reveal this result and it certainly does 
 not answer the question !

 My question was more general, if you hadn't noticed.
 Given that most tablets will give a horizontal and vertical pixel size 
 as well as a diagonal size in inches, is it possible to determine the 
 density bucket (to use googles term) ie: MDPI or HDPI or XHDPI, etc

 From what you have managed to find, this device would appear to fall 
 between two buckets - HDPI and XHDPI because
 - HDPI screens are ~240dpi
 - XHDPI screens are ~320dpi
 (according to Supporting Multiple 
 Screenshttp://developer.android.com/guide/practices/screens_support.html
 )

 So the question remains open 


 On Monday, 14 April 2014 20:21:31 UTC+2, Chris wrote:

 Googling the exact phrase Toshiba eXcite Pro AT10LE-A-10D screen DPI 
 yields in the first result a screen DPI of 300.  

 At least give it an effort.

 - C

 On Tuesday, April 1, 2014 3:28:39 AM UTC-4, Simon Giddings wrote:

 I am looking at buying a Toshiba eXcite Pro AT10LE-A-10D, which 
 boasts a screen resolution of 2560 x 1600 pixels for a screen diagonal 
 of 
 10.1.

 Is it possible to calculate the DP value - ie MDPI / HDPI / XHDPI etc 
 ?

 I haven't been able to find any form of developer support on the 
 toshiba web site, which could have helped.
  
  -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-d...@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.




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


Re: [android-developers] Re: How to calculate a tablets resolution before purchasing the tablet

2014-04-16 Thread Simon Giddings
Thank you Marina for your reply which is much more useful.

Even if it means that I am stuck at this point.  After all, as independent 
developers, we are not all sufficiently rich to be able to purchase a 
number of tablet devices to be able to run our tests.

Thank you again Marina, I won't be wasting my time searching further.

On Tuesday, 15 April 2014 15:27:10 UTC+2, Marina Cuello wrote:

 You can search for/make an app that detects the bucket and install it, if 
 you have access to the device. A quick search gives me 
 https://play.google.com/store/apps/details?id=com.pmc.android.checkscreensize,
  
 but there are plenty.
 Otherwise, as far as I can recall it depends on the manufacturer's 
 decision which bucket it takes. So no, you can't calculate the bucket 
 given the physical screen size and dpi specs.

 Marina


 On Tue, Apr 15, 2014 at 4:06 AM, Simon Giddings 
 mr.s.g...@gmail.comjavascript:
  wrote:

 The effort I made did not reveal this result and it certainly does not 
 answer the question !

 My question was more general, if you hadn't noticed.
 Given that most tablets will give a horizontal and vertical pixel size as 
 well as a diagonal size in inches, is it possible to determine the density 
 bucket (to use googles term) ie: MDPI or HDPI or XHDPI, etc

 From what you have managed to find, this device would appear to fall 
 between two buckets - HDPI and XHDPI because
 - HDPI screens are ~240dpi
 - XHDPI screens are ~320dpi
 (according to Supporting Multiple 
 Screenshttp://developer.android.com/guide/practices/screens_support.html
 )

 So the question remains open 


 On Monday, 14 April 2014 20:21:31 UTC+2, Chris wrote:

 Googling the exact phrase Toshiba eXcite Pro AT10LE-A-10D screen DPI 
 yields in the first result a screen DPI of 300.  

 At least give it an effort.

 - C

 On Tuesday, April 1, 2014 3:28:39 AM UTC-4, Simon Giddings wrote:

 I am looking at buying a Toshiba eXcite Pro AT10LE-A-10D, which boasts 
 a screen resolution of 2560 x 1600 pixels for a screen diagonal of 10.1.

 Is it possible to calculate the DP value - ie MDPI / HDPI / XHDPI etc ?

 I haven't been able to find any form of developer support on the 
 toshiba web site, which could have helped.
  
  -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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 javascript:.
 For more options, visit https://groups.google.com/d/optout.




-- 
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] Re: How to calculate a tablets resolution before purchasing the tablet

2014-04-15 Thread Simon Giddings
The effort I made did not reveal this result and it certainly does not 
answer the question !

My question was more general, if you hadn't noticed.
Given that most tablets will give a horizontal and vertical pixel size as 
well as a diagonal size in inches, is it possible to determine the density 
bucket (to use googles term) ie: MDPI or HDPI or XHDPI, etc

From what you have managed to find, this device would appear to fall 
between two buckets - HDPI and XHDPI because
- HDPI screens are ~240dpi
- XHDPI screens are ~320dpi
(according to Supporting Multiple 
Screenshttp://developer.android.com/guide/practices/screens_support.html
)

So the question remains open 

On Monday, 14 April 2014 20:21:31 UTC+2, Chris wrote:

 Googling the exact phrase Toshiba eXcite Pro AT10LE-A-10D screen DPI 
 yields in the first result a screen DPI of 300.  

 At least give it an effort.

 - C

 On Tuesday, April 1, 2014 3:28:39 AM UTC-4, Simon Giddings wrote:

 I am looking at buying a Toshiba eXcite Pro AT10LE-A-10D, which boasts a 
 screen resolution of 2560 x 1600 pixels for a screen diagonal of 10.1.

 Is it possible to calculate the DP value - ie MDPI / HDPI / XHDPI etc ?

 I haven't been able to find any form of developer support on the toshiba 
 web site, which could have helped.



-- 
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] Seeking layout advice

2014-04-04 Thread Simon Giddings
I am working on an application where the user can create a list of items 
(songs).
The user can also add a text block to the list - text to be read as an 
introduction to the next sequence of songs, for example.

It is with this text editer activity that I am having trouble deciding 
where to put things.
I am displaying it as a dialog and have therefore placed cancel and ok 
buttons at the bottom of the layout.
However, this means that they are hidden by the virtual keyboard when the 
focus is on the edittext widget.

In addition, I wanted to add the ability to paste text copied from 
elsewhere - another app, a web page.

After having looked in the design guides ... I am no further forward.

Should I rather be placing the cancel and ok buttons at the top of the 
layout ?
Should this rather be a full screen activity where I use the action bar to 
place a paste button ?
If I do this, should the cancel and ok buttons also be in the action bar ?

I hope someone can advise me with this as I am stuck at this point.

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


[android-developers] How to calculate a tablets resolution before purchasing the tablet

2014-04-01 Thread Simon Giddings
I am looking at buying a Toshiba eXcite Pro AT10LE-A-10D, which boasts a 
screen resolution of 2560 x 1600 pixels for a screen diagonal of 10.1.

Is it possible to calculate the DP value - ie MDPI / HDPI / XHDPI etc ?

I haven't been able to find any form of developer support on the toshiba 
web site, which could have helped.

-- 
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] Re: Padding offsets for a TextView to perfectly align with an EditText

2014-03-28 Thread Simon Giddings
I agree, in the same way as using the relative alignments above.
However, as I stated, the displayed text is *not* at the same position - 
the EditText widget is higer and so there are offsets applied to the 
beginning of the text.


On Friday, 28 March 2014 00:21:52 UTC+1, yaturner wrote:

 Try wrapping  both views in a FrameLayout. That should guarantee that they 
 both occupy the same space 

-- 
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] Padding offsets for a TextView to perfectly align with an EditText

2014-03-26 Thread Simon Giddings
I am building a layout where text is displayed in a TextView.
When the user taps on the text, I want to display an EditText widget to 
allow for the text to be modified.

I use a relative layout to ensure have the two widgets in the same position.
The edit text is declared first and then the the TextView is made to align 
to the top and bottom of the EditText.

However, I have seen that the text displayed in the EditText is offset down 
and to the left.
I need to ensure that, for the user, the text does not appear to move at 
all when switching to the EditText.

Do I need to use padding values to align the text displays ?
If I do, is this guaranteed to work on all displays ?

Here is the relevant part of my layout :

RelativeLayout
android:layout_width=0dp
android:layout_height=match_parent
android:layout_weight=1
android:paddingTop=15dp
android:paddingLeft=20dp

EditText
android:id=@+id/etListName
android:layout_width=match_parent
android:layout_height=wrap_content
android:layout_alignParentTop=true
android:layout_alignParentLeft=true
android:visibility=visible
android:textAppearance=?android:attr/textAppearanceLarge
android:text=List name /

TextView
android:id=@+id/tvListName
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_alignTop=@+id/etListName
android:layout_alignBottom=@+id/etListName
android:layout_alignParentLeft=true
android:textAppearance=?android:attr/textAppearanceLarge
android:visibility=visible
android:text=List name /

/RelativeLayout


-- 
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] Re: Seperate display on HDMI device

2014-02-24 Thread Simon Giddings
After having looked at this, it would seem to be a bit overkill.
Is there not another, more direct way to output to an HDMI display ?

On Saturday, 22 February 2014 07:20:32 UTC+1, gjs wrote:

 Hi

 Try https://developers.google.com/cast/

 Regards



-- 
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] Seperate display on HDMI device

2014-02-21 Thread Simon Giddings
I am creating an application which needs to display on an HDMI connected 
screen, display content which is different to that displayed on the tablet.

This could be used in the context of presentations where the presenters 
notes are only displayed on the tablet and the illustration content on 
the HDMI output device.

Is there any resource which describes how to go about writing specifically 
to the HDMI output screen ?
Tutorials even ?

-- 
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] ActionBar strange behaviour

2013-11-22 Thread Simon Giddings


I am writing an application for Android tablets - version 4.0 (min sdk 14)

Here is the content at the start of the activity :

https://lh4.googleusercontent.com/-s7H2b2yp8Gk/Uo9E9VZP1XI/Am8/W0maYf5wefQ/s1600/actionbar_prb1.jpg

When I click (I am working in the emulator) on the plus button (to zoom in 
one level),  this is the result :

https://lh4.googleusercontent.com/-YP1eyEF13RM/Uo9FY9thC6I/AnE/VX-FuuZILZk/s1600/actionbar_prb2.jpghttps://lh4.googleusercontent.com/-s7H2b2yp8Gk/Uo9E9VZP1XI/Am8/W0maYf5wefQ/s1600/actionbar_prb1.jpg



If I remove the TextView control at the head of the ActionBar, this is the 
resulting visual behaviour :

https://lh5.googleusercontent.com/-D52Fjc3_60c/Uo9QWtiXGwI/AnU/WbKsz70aZ98/s1600/actionbar_prb3.jpg

https://lh6.googleusercontent.com/-CiWez7jbELA/Uo9QpMeOZuI/Anc/O11uYPVre7U/s1600/actionbar_prb4.jpg

The number button is defined in the menu as -

item
android:id=@+id/partion_songnumber
android:title=Numéro du chant
android:showAsAction=always 
android:actionLayout=@layout/actionbar_songnumber_btn /

The layout file is defined as

TextView xmlns:android=http://schemas.android.com/apk/res/android;
android:id=@+id/tv_songnumber
android:layout_width=match_parent
android:layout_height=match_parent
android:paddingLeft=5dp
android:paddingRight=5dp
android:layout_gravity=center_vertical
android:clickable=true
android:textSize=29dp /

The menu is modified via the method onPrepareOptionsMenu

The content of this method is like this :

@Override
public boolean onPrepareOptionsMenu(Menu menu)
{
boolean bOk = super.onPrepareOptionsMenu(menu);
TextView tv;
int iZoomLevel = m_ZoomListHandler.GetCurrentPosition();

if(bOk)
{
menu.findItem(R.id.partition_zoomin).setEnabled(iZoomLevel  7);
menu.findItem(R.id.partition_zoomout).setEnabled(iZoomLevel  
0);

// set the songnumber
tv = (TextView)menu.findItem(R.id.partion_songnumber)
.getActionView();
tv.setText(String.format(%d, m_iSongNumber));
}

return true;
}
I have tried searching for why this happens, with no success.

Can anyone help me resolve this ?

-- 
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] ListPopupWindow - align to right edge of the anchor

2013-10-15 Thread Simon Giddings
I am creating a custom drop down menu initiated from the action bar in a 
tablet application.
When the button is pressed in the action bar, I need the ListPopupWindow to 
align it's right edge with the right edge of the action view button.

However, I have not be able to find how to do this.
Can it be done - or will I need to create my own implementation of this ?

-- 
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] Correcting the style of a drop down spinner in ActionBar

2013-10-09 Thread Simon Giddings
I am using the following theme : Theme.Holo.Light.DarkActionBar
My application targets a minimum SDK of v14 and I am inserting a spinner to 
enable selection of items - ie this is NOT navigation.

I have been searching for the correct way to correct the styling of the 
spinner so that it is visible within the actionbar - at present it is dark 
on dark.

How do I assign the correct, existing, system, holo styles to the spinner 
to get it to display correctly ?
I would prefer to not have to re-create the styles and have to copy 
resources from the SDK files if possible.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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] Correcting the styles of a drop down spinner in the ActionBar

2013-10-09 Thread Simon Giddings
I am using the following theme : Theme.Holo.Light.DarkActionBar
My application targets a minimum SDK of v14 and I am inserting a spinner to 
enable selection of items - ie this is NOT navigation.

I have been searching for the correct way to correct the styling of the 
spinner so that it is visible within the actionbar - at present it is dark 
on dark.

How do I assign the correct, existing, system, holo styles to the spinner 
to get it to display correctly ?
I would prefer to not have to re-create the styles and have to copy 
resources from the SDK files if possible.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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] Navigation Drawer and using - over sized - icons

2013-09-28 Thread Simon Giddings
I would like to be able to use oversized icons within the Navigation Drawer 
listview items.

However, I have seen that, even if I put larger icons in the resource 
directories, they are all scaled down.
This is for working exclusively within a tablet application.

Is there a way around this automatic re-scaling ?

-- 
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] Navigation Drawer, Activities and Fragments

2013-09-28 Thread Simon Giddings
I am a bit confused here with this.

With the examples that I have seen for using the Navigation Drawer, they 
all point to using one unique Activity, with Fragments giving the actual 
content.
The advantage with this is that there is only one instance of the 
Navigation Drawer created.

However, in my application, I have distinct Activities which have distinct 
tasks (and, yes, there are indeed more than three).
Should I therefore be creating the same navigation drawer in each Activity ?
It is obvious that I would like to be able to preserve my existing 
activities and not have to re-write them as fragments.

My understanding is that fragments are not activities and activities are 
not fragments, are they ?

Have I correctly understood this ?
Can anyone give some advice here ?

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


Re: [android-developers] Navite Navigation Drawer

2013-09-27 Thread Simon Giddings
Well my, previous, understanding was that the support library was to 
provide functionality found in the most recent APIs, for earlier APIs.
So, stuff in the v4.0 could be used in v2.3 via the support library.

Perhaps you could clear something up for me.
When I use just *one *item in the support library, will I get *only* that 
item included in my apps files, or will *all of the support library* be 
packaged all the same ?

On Friday, September 27, 2013 2:05:31 PM UTC+2, alice wrote:

 So what if it is in the support library?. it is as native as it could 
 be!


 On Thu, Sep 26, 2013 at 10:50 AM, Simon Giddings 
 mr.s.g...@gmail.comjavascript:
  wrote:

 I have seen the Navigation Drawer and am interested in it for my v4.1 
 tablet application.
 However, I see that the documentation describes it as being within the 
 support library.

 My understanding was that this library was mainly for apps in and before 
 v2.3 of android.

 Is there not a native version of this feature available, or are we 
 condemned to using the support library ?
  
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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 javascript:.
 For more options, visit https://groups.google.com/groups/opt_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
--- 
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] Navite Navigation Drawer

2013-09-26 Thread Simon Giddings
I have seen the Navigation Drawer and am interested in it for my v4.1 
tablet application.
However, I see that the documentation describes it as being within the 
support library.

My understanding was that this library was mainly for apps in and before 
v2.3 of android.

Is there not a native version of this feature available, or are we 
condemned to using the support library ?

-- 
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: Dispalying PDF files within a tablet application

2013-05-13 Thread Simon Giddings
Because the users will be opening PDF files and not images !

On Monday, 13 May 2013 16:31:28 UTC+2, bob wrote:

 Why not just use an image?

 Thanks.


 On Saturday, May 11, 2013 10:33:23 AM UTC-5, Simon Giddings wrote:

 I have seen that this topic has been raised a number of times over the 
 last few years.
 I am surprised that Google has not thought of adding a native API to 
 keep up with the other side (IOS and iPad).

 I am needing to display PDF files of sheet music within my application
 - this might be a scanned image
 - or a real print to PDF format, which means mixed text and image

 Commercial libraries are way over priced for what I could ever hope for 
 in terms of revenue as this will be distributed in France to 
 evangelical/protestant churches.
 So I will not be able to charge high prices for this.

 Can anyone recommend a good, robust PDF display engine which will allow 
 me to determine how the user can navigate within the file, zoom levels, etc 
 ?
 Or perhaps there is a commercial engine provider who would be willing to 
 make a commercial gesture for this case ? :-D


On Monday, 13 May 2013 16:31:28 UTC+2, bob wrote:

 Why not just use an image?

 Thanks.


 On Saturday, May 11, 2013 10:33:23 AM UTC-5, Simon Giddings wrote:

 I have seen that this topic has been raised a number of times over the 
 last few years.
 I am surprised that Google has not thought of adding a native API to 
 keep up with the other side (IOS and iPad).

 I am needing to display PDF files of sheet music within my application
 - this might be a scanned image
 - or a real print to PDF format, which means mixed text and image

 Commercial libraries are way over priced for what I could ever hope for 
 in terms of revenue as this will be distributed in France to 
 evangelical/protestant churches.
 So I will not be able to charge high prices for this.

 Can anyone recommend a good, robust PDF display engine which will allow 
 me to determine how the user can navigate within the file, zoom levels, etc 
 ?
 Or perhaps there is a commercial engine provider who would be willing to 
 make a commercial gesture for this case ? :-D



-- 
-- 
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] Dispalying PDF files within a tablet application

2013-05-11 Thread Simon Giddings
I have seen that this topic has been raised a number of times over the last 
few years.
I am surprised that Google has not thought of adding a native API to keep 
up with the other side (IOS and iPad).

I am needing to display PDF files of sheet music within my application
- this might be a scanned image
- or a real print to PDF format, which means mixed text and image

Commercial libraries are way over priced for what I could ever hope for in 
terms of revenue as this will be distributed in France to 
evangelical/protestant churches.
So I will not be able to charge high prices for this.

Can anyone recommend a good, robust PDF display engine which will allow me 
to determine how the user can navigate within the file, zoom levels, etc ?
Or perhaps there is a commercial engine provider who would be willing to 
make a commercial gesture for this case ? :-D

-- 
-- 
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] Seeking font tool

2013-05-02 Thread Simon Giddings
Does anyone know of a tool to correctly convert a truetype font so that it 
is compatible with Android ?
At least with Android 4.0.

-- 
-- 
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] Emulator plus HAXM blocks hibernation

2013-04-29 Thread Simon Giddings
I am developing a tablet app and have installed HAXM release 03 from intel.

When I want to put my PC into hibernate mode (Dell Vostro 1710 - Windows XP 
Pro SP3), I exit the emulator and eclipse, before going to hibernate mode.

However, the screen goes black and then nothing else occurs, leaving the 
only choice of turning off via the power button.

Has anyone else had this problem ?
Is there a workaround, fix ?

-- 
-- 
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] How to compress text data before saving in a database

2013-04-20 Thread Simon Giddings
I have a more than 800 records of data, of which each record will contain a 
variable size of text data.
It is this text data (anything between 800 bytes and 4kb) which I need to 
compress before putting it into the database.

It doesn't matter if the saving of the data is a bit long, it will be the 
reading and decompressing which needs to be fast and efficient.

Note that I am targetting tablet devices here.

Is there a recommended / best way to go about this ?

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




Re: [android-developers] Re: Optimise drawing speed

2013-04-01 Thread Simon Giddings
Thank you for the comments.
Yes you are right, I am targeting Android 4.0+.
I'll keep with my current rendering choice then.

On Monday, 1 April 2013 00:19:49 UTC+2, Romain Guy (Google) wrote:

 On Mar 31, 2013 12:15 PM, Jason jason@gmail.com javascript: 
 wrote:
 
  My first reaction is that if you really want render speed then you need 
 to be leveraging the GPU which is going to be most reliable with OpenGL (as 
 I understanding it more recent versions of Android will actually hardware 
 accelerate for you, but there are many variables that affect whether this 
 works, not least of which is the Android version running on the user's 
 device).

 There are only two variables: are you running Android 3.0+ and are you 
 using supported operations.

 In this particular case I doubt using OpenGL directly is necessary. 
 Android tablets run on Android 3.0+ so you can simply rely on built-in 
 hardware acceleration. Your first step should be to test your app with 
 hardware acceleration on and see whether you are running into 


-- 
-- 
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] Optimise drawing speed

2013-03-31 Thread Simon Giddings
I am writing a music notation app for android tablets.
As I draw everything (ie. this is not a simple image (jpg, pdf, etc) 
which needs displaying), I need to ensure that the choice of drawing method 
is the fastest possible.

My options, as I see them at present, are

   1. Classic on-screen drawing.
   2. Draw on a memory based canvas and bitblt the resulting bitmap onto 
   the screen

Will either option give better rendering time results ?

I have chosen to use classic drawing methods, rather than an OpenGL type 
surface.
Is this a mistake ?

Any help will be appreciated.
Thank you

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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] SMSManger sendTextMessage - never get deliveryIntent

2013-03-10 Thread Lindsey Simon
Do you need RECEIVE_SMS permission to receive the deliveryIntent by any 
chance?

Here is my code - any help would be CRAZY appreciated =)
I always get the sent intent but never the delivery one.

// The intent action to be unique so that we can have multiple
// concurrent  pending intents.
// 
http://developer.android.com/reference/android/app/PendingIntent.html
String intentAction = TAG + - + callbackId;  // callbackId is 
unique per call
Intent intent = new Intent(intentAction);

PendingIntent sentPI = PendingIntent.getBroadcast(ctx, 0, 
intent, 0);

cordova.getActivity().registerReceiver(new BroadcastReceiver() {
@Override
public void onReceive(Context ctx, Intent intent) {
int resultCode = getResultCode();
int status = -1;
String details = ;
switch (resultCode) {
case Activity.RESULT_OK:
status = 0;
break;
case SmsManager.RESULT_ERROR_NO_SERVICE:
details = No service;
case SmsManager.RESULT_ERROR_NULL_PDU:
details = Null PDU;
case SmsManager.RESULT_ERROR_RADIO_OFF:
details = Radio off;
status = 1;
break;
}

JSONObject obj = new JSONObject();
try {
obj.put(status, status);
obj.put(details, details);
} catch (JSONException e) {
throw new RuntimeException(e);
}
sendAsyncResultStatus(callbackId, obj);
ctx.unregisterReceiver(this);
}
}, new IntentFilter(intentAction));

// The intent action to be unique so that we can have multiple
// concurrent  pending intents.
// 
http://developer.android.com/reference/android/app/PendingIntent.html
String deliveryIntentAction = TAG + -Delivery- + callbackId;
Intent deliveryIntent = new Intent(deliveryIntentAction);

PendingIntent deliveryPI = PendingIntent.getBroadcast(
cordova.getActivity(), 0, deliveryIntent, 0);

cordova.getActivity().registerReceiver(new BroadcastReceiver() {
@Override
public void onReceive(Context ctx, Intent intent) {
logger.log(Level.INFO, TAG +  DELIVERY intent YOYO!!);
String pdu = intent.getStringExtra(pdu);
logger.log(Level.INFO, TAG +  DELIVERY intent!! to:  +
sentToPhoneNumber + , pdu:  + pdu);

JSONObject obj = new JSONObject();
try {
obj.put(pdu, pdu);
} catch (JSONException e) {
throw new RuntimeException(e);
}
sendAsyncResultStatus(callbackId, obj);
ctx.unregisterReceiver(this);
}
}, new IntentFilter(deliveryIntentAction));

smsManager.sendTextMessage(phoneNumber, null, message, sentPI, 
deliveryPI);

-- 
-- 
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] Might locationManager requestLocationUpdates / removeUpdates for dynamic config cause the GPS to completely stop working?

2013-02-28 Thread Lindsey Simon
I've got an app where we want to have dynamic values for minTime and 
minDistance depending on someone's proximity to their destination.

To accomplish this I'm just calling removeUpdates and then 
requestLocationUpdates after a period with different values. We pause 
anywhere from 15seconds to 3 minutes between these start/stops.

The problem is that on some devices we're seeing a situation where we just 
stop getting location updates. On a Galaxy S3 for instance, the GPS 
completely stops working - no app can get a location in fact. Only 
rebooting the phone seems to fix the problem.

Maybe I'm start/stopping the watches too aggressively and hitting some sort 
of bug?

Any insights would be extremely helpful.

I've found a few similar reports of this situation:
http://stackoverflow.com/questions/13594932/network-provider-not-providing-updated-locations
http://stackoverflow.com/questions/12630413/has-network-provider-behavior-changed-in-android-4-1-1

-- 
-- 
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: Might locationManager requestLocationUpdates / removeUpdates for dynamic config cause the GPS to completely stop working?

2013-02-28 Thread Lindsey Simon
I should add that while no other app can get a location, it seems like 
Google Maps is working aok.

On Thursday, February 28, 2013 6:14:33 PM UTC-8, Lindsey Simon wrote:

 I've got an app where we want to have dynamic values for minTime and 
 minDistance depending on someone's proximity to their destination.

 To accomplish this I'm just calling removeUpdates and then 
 requestLocationUpdates after a period with different values. We pause 
 anywhere from 15seconds to 3 minutes between these start/stops.

 The problem is that on some devices we're seeing a situation where we just 
 stop getting location updates. On a Galaxy S3 for instance, the GPS 
 completely stops working - no app can get a location in fact. Only 
 rebooting the phone seems to fix the problem.

 Maybe I'm start/stopping the watches too aggressively and hitting some 
 sort of bug?

 Any insights would be extremely helpful.

 I've found a few similar reports of this situation:

 http://stackoverflow.com/questions/13594932/network-provider-not-providing-updated-locations

 http://stackoverflow.com/questions/12630413/has-network-provider-behavior-changed-in-android-4-1-1


-- 
-- 
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] High Resolution Application Icon Spec

2013-02-12 Thread Simon Giddings
In the current spec, the high resolution application icon said to have to 
be a 32bit PNG.
However, in the version of photoshop I have, I can only output to a 24bit 
PNG.

Is this acceptable or will my images be rejected ?

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




Re: [android-developers] Unable to obtain Google Maps Android v1 API Key

2013-02-08 Thread Simon Giddings
Thanks for that Mark, it works great.
Sorry to not have replied before, but I didn't have a working connection.

On Thursday, 7 February 2013 17:23:07 UTC+1, Mark Murphy (a Commons Guy) 
wrote:

 Add -v to your list of command-line switches. 

 On Thu, Feb 7, 2013 at 11:13 AM, Simon Giddings 
 mr.s.g...@gmail.comjavascript: 
 wrote: 
  Yep, you are right, I am getting the SHA-1 hash. 
  Looked at the command line options and cannot see how I can force MD5 
  output. 
  Can you help here ? 
  
  
  On Thursday, 7 February 2013 17:02:50 UTC+1, Mark Murphy (a Commons Guy) 
  wrote: 
  
  It just worked for me. Make sure that you are using MD5 -- if you have 
  Java 7 installed, you might be getting the SHA-1 hash instead, for 
  example. 
  
  On Thu, Feb 7, 2013 at 10:28 AM, Simon Giddings mr.s.g...@gmail.com 
  wrote: 
   I have followed the instructions to create a private key and then 
 obtain 
   the 
   MD5 signature. 
   I paste this signature into the signup input field and click submit. 
   
   I then get a page which says that the MD5 signature is incorrect ! 
   Tried with and without the colons (:). 
   
   Has the key generation been disabled, even though documentation 
 states 
   that 
   it will be open until 3 Mars ? 
   
   -- 
   -- 
   You received this message because you are subscribed to the Google 
   Groups Android Developers group. 
   To post to this group, send email to android-d...@googlegroups.com 
   To unsubscribe from this group, send email to 
   android-developers+unsubscr...@googlegroups.com javascript: 
   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.comjavascript:. 

   For more options, visit https://groups.google.com/groups/opt_out. 
   
   
  
  
  
  -- 
  Mark Murphy (a Commons Guy) 
  http://commonsware.com | http://github.com/commonsguy 
  http://commonsware.com/blog | http://twitter.com/commonsguy 
  
  _The Busy Coder's Guide to Android Development_ Version 4.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-d...@googlegroups.comjavascript: 
  To unsubscribe from this group, send email to 
  android-developers+unsubscr...@googlegroups.com javascript: 
  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 javascript:. 
  For more options, visit https://groups.google.com/groups/opt_out. 
  
  



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

 _The Busy Coder's Guide to Android Development_ Version 4.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
--- 
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] Unable to obtain Google Maps Android v1 API Key

2013-02-07 Thread Simon Giddings
I have followed the instructions to create a private key and then obtain 
the MD5 signature.
I paste this signature into the signup input field and click submit.

I then get a page which says that the MD5 signature is incorrect !
Tried with and without the colons (:).

Has the key generation been disabled, even though documentation states that 
it will be open until 3 Mars ?

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




Re: [android-developers] Unable to obtain Google Maps Android v1 API Key

2013-02-07 Thread Simon Giddings
Yep, you are right, I am getting the SHA-1 hash.
Looked at the command line options and cannot see how I can force MD5 
output.
Can you help here ?

On Thursday, 7 February 2013 17:02:50 UTC+1, Mark Murphy (a Commons Guy) 
wrote:

 It just worked for me. Make sure that you are using MD5 -- if you have 
 Java 7 installed, you might be getting the SHA-1 hash instead, for 
 example. 

 On Thu, Feb 7, 2013 at 10:28 AM, Simon Giddings 
 mr.s.g...@gmail.comjavascript: 
 wrote: 
  I have followed the instructions to create a private key and then obtain 
 the 
  MD5 signature. 
  I paste this signature into the signup input field and click submit. 
  
  I then get a page which says that the MD5 signature is incorrect ! 
  Tried with and without the colons (:). 
  
  Has the key generation been disabled, even though documentation states 
 that 
  it will be open until 3 Mars ? 
  
  -- 
  -- 
  You received this message because you are subscribed to the Google 
  Groups Android Developers group. 
  To post to this group, send email to 
  android-d...@googlegroups.comjavascript: 
  To unsubscribe from this group, send email to 
  android-developers+unsubscr...@googlegroups.com javascript: 
  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 javascript:. 
  For more options, visit https://groups.google.com/groups/opt_out. 
  
  



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

 _The Busy Coder's Guide to Android Development_ Version 4.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
--- 
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: Help: My app has violated the spam provisions of the Content Policy

2013-02-03 Thread Simon Frederic
Hi Everyone,
I am facing a similar issue with an app I posted last year for testing. 
Event Animals.
the app was downloaded  10 times (for testing only)

I received a similar email. No explanation whatsoever for the suspension; 
and unfortunately no response whatsoever to email.
 Post suspension I can see five install to 31 ratings.  Which might very 
well be the reason for the suspension- 

I don't think it is possible from backend to remove comment (or else 
everyone would remove bad ratings) - 
I don't think it is possible for me to re-submit the apk (right?)

This apk took one year of developement to create and now it is forced out 
the market for reasons that are being my control. 
I am not asking how to get reinstated but would like to get information to 
logical step that would potentially solve this issue from people that might 
have experience something similar.
Google China tell me they don't have the authority to manage the app from 
here.
Google US developer dont reply to emails (they never did - even when I had 
trouble paying the developer fee )


Any word of advice. or shared experience would be greatly appreciated.

Frederic

-- 
-- 
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] Detect whether a user has Google Voice installed?

2013-01-16 Thread Lindsey Simon
I have a feature in my app I'd like to not turn on for users who have 
Google Voice installed.. Is there any way on Android to detect the presence 
of the App?
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] Video editor API

2013-01-08 Thread Simon Buckle
I have a question about the Android SDK (for Jellybean). In the Android 
source tree there is a 'videoeditor' package (
https://github.com/android/platform_frameworks_base/tree/master/media/java/android/media/videoeditor)
 
yet when I try to import the classes in this package into my project, they 
don't appear. I had a look at the contents of android.jar and sure enough 
the classes in that package are not present in the JAR file; I've tried the 
SDK on both Mac and Linux.

How can I use these classes in my Android projects? If they are in the 
source tree then I assume I must be able to use them somehow.

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] Creating data files as compiled (binary) xml

2012-12-06 Thread Simon Giddings
I am developing a tablet application where I want my data files to be 
stored as compiled xml.
The application will not, itself, be creating these files.
These files will be added at a later stage - the user will be able to 
purchase them separately.

So, my question is, how can I create the compiled xml in a format which I 
can then read within my application ?
Is this even possible, or will I need to create my own compiler ?

-- 
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] Creating data files as compiled (binary) xml

2012-12-06 Thread Simon Giddings
Hi Mark,

Why - to create my data files - sheet music data - and distribute them in 
a fairly protected manner.
Yes, I am indeed referring to the xml binary format used by the build 
process.

On Thursday, 6 December 2012 17:33:40 UTC+1, Mark Murphy (a Commons Guy) 
wrote:

 On Thu, Dec 6, 2012 at 11:27 AM, Simon Giddings 
 mr.s.g...@gmail.comjavascript: 
 wrote: 
  I am developing a tablet application where I want my data files to be 
 stored 
  as compiled xml. 

 Why? 

 Furthermore, what do you consider compiled xml to be? 

 If you are referring to the binary XML format created by the build 
 process for XML resources, you would have to root around in the source 
 code to find both the compiler and their version of the 
 XmlPullParser that reads it in, and modify those to suit your needs. 

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

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


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

[android-developers] Scaling emulator size to real size from eclipse

2012-12-03 Thread Simon Giddings
I know that we can start the emulator from the AVD manager and use the 
Scale to real size parameters.

However, when the emulator is started from within eclipse via a debug 
request, it will start a new instance of the emulator without scaling the 
window size.
How can I start the emulator from a debug request within eclipse and 
include the scaling parameters?

-- 
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: Scaling emulator size to real size from eclipse

2012-12-03 Thread Simon Giddings
Ok, found it !

I need to specify the emulator options 
(http://developer.android.com/tools/help/emulator.html) within the target 
parameters for the emulator :
Project Properties - Run/Debug settings - Edit - Target - Emulator 
Launch parameters

Just needed to search abit first of all.
Hope this will help others

On Monday, 3 December 2012 11:43:22 UTC+1, Simon Giddings wrote:

 I know that we can start the emulator from the AVD manager and use the 
 Scale to real size parameters.

 However, when the emulator is started from within eclipse via a debug 
 request, it will start a new instance of the emulator without scaling the 
 window size.
 How can I start the emulator from a debug request within eclipse and 
 include the scaling parameters?


-- 
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] Intel x86 image for 4.1.2

2012-11-29 Thread Simon Giddings
I have installed the intel x86 image for 4.1.2 (API 16) via the SDK Manager.
Now, when I go into the AVD Manager and select a target of Android 4.1.2 - 
API Level 16, it still automatically selects the ARM CPU/ABI and disables 
the dropdown list.

How do I get it to recognise that the x86 system image has been installed 
and is 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: Intel x86 image for 4.1.2

2012-11-29 Thread Simon Giddings
The only way I found to get this to work is to reboot the system.
A bit extreme, but it works.

On Thursday, 29 November 2012 11:24:53 UTC+1, Simon Giddings wrote:

 I have installed the intel x86 image for 4.1.2 (API 16) via the SDK 
 Manager.
 Now, when I go into the AVD Manager and select a target of Android 4.1.2 
 - API Level 16, it still automatically selects the ARM CPU/ABI and 
 disables the dropdown list.

 How do I get it to recognise that the x86 system image has been installed 
 and is 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] extend class and constructors

2012-11-29 Thread Simon Giddings
This may seem a bit basic, but I come from a C++ background and it is 
confusing me a little.

When I extend a base class, do I need to create a constructor for each base 
class constructor ?
What I mean is this. Given :

public class base
{
protected int m_iValue;

public base()
{
m_iValue = 0;
}

public base(int iVal)
{
m_iValue = iVal;
}
}

If I want to create a new class based on this base class, will I need to 
declare the two constructors again for them to be visible ?
The following seems to hide the second constructor of the base class.

public class Derived extends base
{
public Derived()
{
super();
}
}

What is the correct way to do this ?

-- 
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] Defining custom xml file in eclipse

2012-11-26 Thread Simon Giddings
I have a series of custom xml data files that I need to create.
I would like to tell eclipse what its format is so that when I do a 
CTRL+SPACE, it will give me the possible node or attribute options.

Is this possible ?
If so, how do I go about this ?

-- 
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: Defining custom xml file in eclipse

2012-11-26 Thread Simon Giddings
I don't see how this will help.
I need to inform eclipse what the format of my custom xml is - tag names, 
attribute names, etc

On Monday, 26 November 2012 19:38:13 UTC+1, bob wrote:

 Maybe add something like this to your first tag:

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


 On Monday, November 26, 2012 10:55:50 AM UTC-6, Simon Giddings wrote:

 I have a series of custom xml data files that I need to create.
 I would like to tell eclipse what its format is so that when I do a 
 CTRL+SPACE, it will give me the possible node or attribute options.

 Is this possible ?
 If so, how do I go about this ?



-- 
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] Defining custom xml file in eclipse

2012-11-26 Thread Simon Giddings
I thought the xml editor was specific to the Android SDK

On Monday, 26 November 2012 20:33:23 UTC+1, TreKing wrote:

 On Mon, Nov 26, 2012 at 10:55 AM, Simon Giddings 
 mr.s.g...@gmail.comjavascript:
  wrote:

 Is this possible ?
 If so, how do I go about this ?


 Sounds like your questions are specific to Eclipse and not Android 
 Development. Try the Eclipse docs or an Eclipse-specific group or forum.


 -
 TreKing http://sites.google.com/site/rezmobileapps/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: Drawing complex shapes with hollow parts

2012-11-23 Thread Simon Giddings
In fact, after doing some further work on this, this is what I have found :

The simplest way of achieving this is to 

   1. Create the path object
   2. Set the fill type to  Path.FillType.WINDING .
   3. draw the outline segments using lineTo, cubicTo, etc, ensuring that 
   the outline closes itself.
   4. draw the inner holes, each one using a different direction. ie: if 
   the outline was drawn clockwise, then the first hole must be 
   anti-clockwise, the second clockwise, etc...
   5. Draw the path on the canvas with  Canvas.drawPath(...) .
   

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

[android-developers] Re: webview can not display twitter page

2012-11-16 Thread Simon
Looks like this can be fixed by setting the user-agent:

webView.getSettings().setUserAgentString(Mozilla/5.0 (Linux; U; Android 2.0; 
en-us; Droid Build/ESD20) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 
Mobile Safari/530.17);


See also: 

http://stackoverflow.com/questions/6625316/webview-not-displaying-twitter-on-some-droids
http://stackoverflow.com/questions/8056063/android-mobile-twitter-page-in-webview-not-opening
http://stackoverflow.com/questions/8951251/getting-blank-page-in-android-webviewclient

and others.

-- Simon

On Friday, July 29, 2011 4:05:10 AM UTC-6, Ethan Gao wrote:

I am developing an app with twitter sharing feature. User can 
 share information via twitter. After user click the twitter image in 
 app view, a webView is brought up with a twitter share url. But the 
 webview is always a blank page. 
 Only twitter url does not work, facebook url works very well. It 
 looks like webview does not support redirecting, right? 

 PS: I've set the javascript enable of webview, still do not work 
 for twitter share url.

-- 
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 a simulator for the screen size is 1920X1080?

2012-11-15 Thread Simon Miao
As Subject.

-- 
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] Drawing complex shapes with hollow parts

2012-11-12 Thread Simon Giddings
I am needing to draw shapes which will have hollow regions.
To simplify the idea, take an ampersand sign : 
This is just to illustrate the kind of task I need to do.

I can create the outline by using a path.
However, I have not been able to see how to create the two holes such 
that when the paths are painted, they will appear as ... holes.

Can anyone guide me with this one ?

-- 
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: Drawing complex shapes with hollow parts

2012-11-12 Thread Simon Giddings
Thank you for this.
One thing I am not clear with is the problem with hardware acceleration.
Some people say that this will not work with hardware acceleration ON, 
whilst others say that this is precisely what is needed when it is ON.

Is there some definitive answer for this aspect ?

On Monday, 12 November 2012 11:58:07 UTC+1, Piren wrote:


 http://stackoverflow.com/questions/11337679/porterduffxfermode-clear-a-section-of-a-bitmap

 On Monday, November 12, 2012 12:16:17 PM UTC+2, Simon Giddings wrote:

 I am needing to draw shapes which will have hollow regions.
 To simplify the idea, take an ampersand sign : 
 This is just to illustrate the kind of task I need to do.

 I can create the outline by using a path.
 However, I have not been able to see how to create the two holes such 
 that when the paths are painted, they will appear as ... holes.

 Can anyone guide me with this one ?



-- 
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: Drawing complex shapes with hollow parts

2012-11-12 Thread Simon Giddings
Great, thanks for this

On Monday, 12 November 2012 15:27:32 UTC+1, Piren wrote:

 I haven't had any issues with hardware acceleration using porter duff, at 
 least not under the circumstances i had to use it in.

 just try it and see how it goes.

 On Monday, November 12, 2012 1:06:04 PM UTC+2, Simon Giddings wrote:

 Thank you for this.
 One thing I am not clear with is the problem with hardware acceleration.
 Some people say that this will not work with hardware acceleration ON, 
 whilst others say that this is precisely what is needed when it is ON.

 Is there some definitive answer for this aspect ?

 On Monday, 12 November 2012 11:58:07 UTC+1, Piren wrote:


 http://stackoverflow.com/questions/11337679/porterduffxfermode-clear-a-section-of-a-bitmap

 On Monday, November 12, 2012 12:16:17 PM UTC+2, Simon Giddings wrote:

 I am needing to draw shapes which will have hollow regions.
 To simplify the idea, take an ampersand sign : 
 This is just to illustrate the kind of task I need to do.

 I can create the outline by using a path.
 However, I have not been able to see how to create the two holes such 
 that when the paths are painted, they will appear as ... holes.

 Can anyone guide me with this one ?



-- 
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] Samsung not in SDK manager list

2012-11-12 Thread Simon Giddings
I am using Eclipse Indigo service release 2.
The version of the ADK is 20.0.3.v201208082019-427395.

When I open the SDK Manager, I noticed that there is no mention of anything 
from Samsung.
Looking into the Add-on sites, Samsung is not there and the User Defined 
Sites is empty.

Are we able to get SDK and device stuff from Samsung via this method any 
more ?
If so, what do I need to put into the user defined sites to get this to 
work ?

-- 
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] Equivelant of NavUtils when not using the support library

2012-11-12 Thread Simon Giddings
I am starting to build an application which will only be distributed on 
tablets running Honeycomb or later.
I created my project specifying this and yet it still imports the support 
library.
So, I have been cleaning out all references to this and have come to a 
stop.

What am I to use to replace the support library class NavUtils ?
Can anyone help me with this ?

-- 
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] Specifying the language of the application

2012-08-30 Thread Simon Giddings
I need to create individual language versions of my application - due to 
resource size.

How can I specify the language of the application ?

I could not see how to do this within the manifest.
Is it only possible when creating the product in Google Play ?

-- 
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] Two independant ProgressBar instances

2012-08-27 Thread Simon Giddings
Is there a limit to only one ProgressBar per Activity ?

I have a layout which needs two independent progress bar instances, but 
only one is displayed at runtime.
Why do I need two ?
Because they represent two separate progress actions.

-- 
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: Enabling/Disabling activities at run time

2012-08-27 Thread Jean-Simon Vaillant
How did you guys used the method setComponentEnabledSetting() ? I've been 
trying to use it to disabled my own activiy-alias. What parameters do you 
give to the method ?
On Monday, August 3, 2009 10:28:25 AM UTC-4, Ashutosh Sharma wrote:

 Thanks - That seems to be exactly what I was loooking for! 

 Thanks again, 
 Ashutosh 

 On Aug 3, 7:09 pm, Mark Murphy mmur...@commonsware.com wrote: 
  Ashutosh Sharma wrote: 
   Hi, 
  
   I have an application that has multiple activities with the intent 
   action.MAIN (category LAUNCHER), so that multiple shortcuts appear in 
   the Applications list. 
  
   Is it possible to disable some of these activities at run-time (so 
   that the corresponding shortcuts disappear from the Applications 
   list)? 
  
  You can try PackageManager#setComponentEnabledSetting(), though I'm not 
  sure what permission or other security issues are tied into that. 
  
  -- 
  Mark Murphy (a Commons Guy)http://commonsware.com|
 http://twitter.com/commonsguy 
  
  Looking for Android opportunities?http://wiki.andmob.org/hado

-- 
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] Two independant ProgressBar instances

2012-08-27 Thread Simon Giddings
Ok, here is my layout :
?xml version=1.0 encoding=utf-8?
RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android;
android:id=@+id/PoiActionsTab
android:layout_width=fill_parent
android:layout_height=wrap_content 

LinearLayout
android:id=@+id/btncontainer
android:layout_width=150dip
android:layout_height=wrap_content
android:orientation=vertical 

Button ... /
Button ... /
Button ... /

ProgressBar
android:id=@+id/waitStreetViewCheck
style=?android:attr/progressBarStyleHorizontal
android:layout_width=fill_parent
android:layout_height=wrap_content
android:indeterminate=true
android:padding=7dip
android:visibility=visible /

/LinearLayout

ImageView
android:id=@+id/imgMapLocation
android:layout_width=fill_parent
android:layout_height=wrap_content
android:layout_alignTop=@+id/btncontainer
android:layout_alignBottom=@+id/btncontainer
android:layout_toRightOf=@+id/btncontainer
android:padding=5dip
android:scaleType=fitCenter
android:visibility=gone /

RelativeLayout 
android:id=@+id/imgLoading
android:layout_width=fill_parent
android:layout_height=wrap_content
android:layout_alignTop=@+id/btncontainer
android:layout_alignBottom=@+id/btncontainer
android:layout_toRightOf=@+id/btncontainer 

ProgressBar
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_centerVertical=true
android:layout_centerHorizontal=true /

/RelativeLayout

/RelativeLayout

It is the second ProgressBar which does not show at runtime.
I do not hide it or the RelativeLayout container at the onCreate stage - 
have checked.


On Monday, 27 August 2012 19:27:30 UTC+2, TreKing wrote:

 On Mon, Aug 27, 2012 at 11:06 AM, Simon Giddings 
 mr.s.g...@gmail.comjavascript:
  wrote:

 Is there a limit to only one ProgressBar per Activity ?


 I can't imagine there would be.
  

 I have a layout which needs two independent progress bar instances, but 
 only one is displayed at runtime.


 Maybe you're doing something wrong? Perhaps a better explanation of your 
 problem and some sample code of what you're doing is in order?


 -
 TreKing http://sites.google.com/site/rezmobileapps/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] Using a symbol font

2012-08-14 Thread Simon Giddings
I have seen that it is possible to use custom fonts within our Android apps.
I am starting to build an app for tablets and need to use a specific symbol 
font.

I place it in a font directory under assets and load it via the 
Typeface.*createFromAsset* method.
I get back a Typeface object and assign it to my Paint object and then 
paint it out onto the canvas.

However, instead of getting the symbols, I get normal text.

Is there a special step necessary to get symbol fonts to output correctly ?

-- 
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] Using a symbol font

2012-08-14 Thread Simon Giddings
Thanks Mark,

I had created a very simple project to try this out.
So, it would appear that I will have to look at a different method for 
drawing symbols.

Thanks again

On Tuesday, 14 August 2012 12:09:18 UTC+2, Mark Murphy (a Commons Guy) 
wrote:

 On Tue, Aug 14, 2012 at 5:46 AM, Simon Giddings 
 mr.s.g...@gmail.comjavascript: 
 wrote: 
  I have seen that it is possible to use custom fonts within our Android 
 apps. 
  I am starting to build an app for tablets and need to use a specific 
 symbol 
  font. 
  
  I place it in a font directory under assets and load it via the 
  Typeface.createFromAsset method. 
  I get back a Typeface object and assign it to my Paint object and then 
 paint 
  it out onto the canvas. 
  
  However, instead of getting the symbols, I get normal text. 
  
  Is there a special step necessary to get symbol fonts to output 
 correctly ? 

 Android does not honor all custom fonts, substituting the default font 
 silently. 

 I'd start with a font that is known to work, such as the one in this 
 sample project: 

 https://github.com/commonsguy/cw-omnibus/tree/master/Fonts/FontSampler 

 If that fails, then there is something wrong with the application 
 logic (or that font has started failing on devices, where it has 
 worked for years). If that font succeeds and your symbol font fails... 
 you will need to find another symbol font, or perhaps try slightly 
 modifying that symbol font in some font editor in hopes that the 
 newly-saved font will work with Android. 

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

 _The Busy Coder's Guide to Android Development_ Version 4.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

Re: [android-developers] Canvas or OpenGL

2012-08-12 Thread Simon Giddings
Thank you to every one for their responses.

It would seem, however, that my question was not clear enough (you are 
right James).

I am going to write a music notation app.
So, will simply be writing the music score on the display - no animation 
needed.
My question was about visual scaling - reproducing a sheet of music paper 
and then permitting the user to zoom in and out.
Hence the reference to world coordinate and screen coordinate conversions.

Please note - this will *not* be using pdf documents !

Can I still achieve this with Canvas ?
Is there an example of the correct way of producing this kind of scaling 
when using Canvas ?
I will be targeting tablet systems with this.


On Sunday, 12 August 2012 06:15:06 UTC+2, Dianne Hackborn wrote:

 On Sat, Aug 11, 2012 at 2:50 PM, James Black planit...@gmail.comjavascript:
  wrote:

 Do you need a fast refresh rate for example?  One music program I wrote 
 had to turn notes on and off at the correct millisecond, under windows; 
 that accuracy won't work on mobile devices.

 You can do 60fps drawing with either OpenGL or Canvas.  That is the best 
 you are going to get for accuracy since that is the screen refresh rate.

 -- 
 Dianne Hackborn
 Android framework engineer
 hac...@android.com javascript:

 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

Re: [android-developers] Canvas or OpenGL

2012-08-12 Thread Simon Giddings
Thank you Richard,

I tried to find examples, without success.
Do you know of any ?

On Sunday, 12 August 2012 10:49:10 UTC+2, RichardC wrote:

 Canvas does zooming, scaling, rotation, translation etc. via stackable 
 transformations see:
 http://developer.android.com/reference/android/graphics/Canvas.html 
 and look for functions like:

 save

 restore

 scale

 translate

 setMatrix

 etc...

  

  

  

  

  

  


 On Sunday, August 12, 2012 9:44:47 AM UTC+1, Simon Giddings wrote:

 Thank you to every one for their responses.

 It would seem, however, that my question was not clear enough (you are 
 right James).

 I am going to write a music notation app.
 So, will simply be writing the music score on the display - no 
 animation needed.
 My question was about visual scaling - reproducing a sheet of music 
 paper and then permitting the user to zoom in and out.
 Hence the reference to world coordinate and screen coordinate conversions.

 Please note - this will *not* be using pdf documents !

 Can I still achieve this with Canvas ?
 Is there an example of the correct way of producing this kind of scaling 
 when using Canvas ?
 I will be targeting tablet systems with this.


 On Sunday, 12 August 2012 06:15:06 UTC+2, Dianne Hackborn wrote:

 On Sat, Aug 11, 2012 at 2:50 PM, James Black planit...@gmail.comwrote:

 Do you need a fast refresh rate for example?  One music program I wrote 
 had to turn notes on and off at the correct millisecond, under windows; 
 that accuracy won't work on mobile devices.

 You can do 60fps drawing with either OpenGL or Canvas.  That is the best 
 you are going to get for accuracy since that is the screen refresh rate.

 -- 
 Dianne Hackborn
 Android framework engineer
 hac...@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] Canvas or OpenGL

2012-08-11 Thread Simon Giddings
I am going to start the development of a Music document app.
In the past, when I developed under widows, I used world coordinates and 
screen coordinates to provide scaling/zooming.

I am unclear as to weather I should go to OpenGL under Android, or if I 
could still use Canvas.

Can anyone advise me here?

-- 
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] Fragments : Advanced example or tutorials?

2012-08-06 Thread Simon Engler
Good Day,

I am trying to create a user interface for driving a robotic platform 
around. I have a number of programs that work indpendantly displaying 
video, logs, or graphical representation of a compass etc.

I follow tutorials given online, but when I try to implement my programs 
crash. The tutorials are simply, fragmenting lists to display text. They do 
not seem to work for displaying two different activities which are 
converted into fragments.

Are there any advanced user interface tutorials or shareware available that 
I can work with?


-- 
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] Creating custom icons with Photoshop - dip

2012-08-06 Thread Simon Giddings
This subject is causing me some conceptual problems.

In the official documentation, it states that 1dip represents 1 pixel in a 
160dpi screen.
Does this mean that we should be creating graphic elements at a resolution 
of 160 dpi instead of 72 dpi ?

I hope someone will be able to give an authoritative answer to this 
question.

-- 
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] Odd launch fail with r20 SDK

2012-07-26 Thread Simon T
I updated to SDK r20.0.1 a few days ago and since then my application fails 
to launch on an emulator or handset. I get 'unable to instantiate launch 
activity (class not found) error' - it seems the main activity is not in 
the APK. However there is no sign of any bug in Eclipse. My code worked 
fine before the update, and continues to work fine on another machine with 
an older SDK. The manifest and R,java etc all tie up. I'm developing for 
API 8 by the way - it is a game so it uses a simple stub as the activity 
that sets up an update thread for the main class and a Frame Layout. I have 
uninstalled the SDK and re-loaded it and simple 'Hello World' applications 
will work. Anyone any ideas - I'm completely 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

Re: [android-developers] DialogFragment - show soft keyboard upon creation

2012-07-17 Thread Simon Giddings
Ok, all is working now.
The problem came from wanting to only enable the ok button once a minimum 
number of characters had been entered.
I was doing this through setOnKeyListener - this blocked the soft keyboard 
appearing automatically (if the user touched the edittext, the soft 
keyboard showed anyway).
So, I have removed this call and now use the following with success :
getDialog().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);


On Monday, 16 July 2012 19:49:18 UTC+2, MagouyaWare wrote:

 Do any of these attributes help?  In particular I am thinking of the 
 stateVisible or stateAlwaysVisible options:

 http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Mon, Jul 16, 2012 at 11:46 AM, dnkoutso wrote:

 Everything around the Android keyboard feels hacky. 

 Try one of the following:

 1) Set requestFocus/ in your XML in the edittext.
 2) do a post such as et.post(new Runnable() { et.requestFocus() }} etc.
 3) do a post again but your use own code in your original post.

 Good luck.


 On Monday, July 16, 2012 9:26:40 AM UTC-7, Simon Giddings wrote:

 Yes, I use this as well, but forgot to include it in the code I posted 
 here.

 On Monday, 16 July 2012 18:06:41 UTC+2, Kostya Vasilyev wrote:

 Have you tried et.requestFocus() ?

 2012/7/16 Simon Giddings 

 I have a simple dialog built with the compatibility libraries 
 DialogFragment.
 It holds only 

1. EditText 
2. 2 buttons

 When the dialog is shown, the edit text control has the focus.
 At this point, I want to open the soft keyboard automatically.

 Here is what I am doing within the onCreateView method :
 EditText et;
 et = (EditText)v.findViewById(R.id.**txtAddress);
 Activity act = getActivity();
 if(act != null)
 {
 InputMethodManager imm = (InputMethodManager)act.**
 getSystemService(Context.**INPUT_METHOD_SERVICE);
 if(imm != null)
 imm.showSoftInput(et, InputMethodManager.SHOW_**FORCED);
 }

 Even though I get to the showSoftInput step with no problem, the 
 keyboard is still not displayed.

 So, how can I correctly get the soft keyboard to be shown ?

 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@**
 googlegroups.com android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://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] DialogFragment - show soft keyboard upon creation

2012-07-16 Thread Simon Giddings
I have a simple dialog built with the compatibility libraries 
DialogFragment.
It holds only 

   1. EditText
   2. 2 buttons

When the dialog is shown, the edit text control has the focus.
At this point, I want to open the soft keyboard automatically.

Here is what I am doing within the onCreateView method :
EditText et;
et = (EditText)v.findViewById(R.id.txtAddress);
Activity act = getActivity();
if(act != null)
{
InputMethodManager imm = 
(InputMethodManager)act.getSystemService(Context.INPUT_METHOD_SERVICE);
if(imm != null)
imm.showSoftInput(et, InputMethodManager.SHOW_FORCED);
}

Even though I get to the showSoftInput step with no problem, the keyboard 
is still not displayed.

So, how can I correctly get the soft keyboard to be shown ?

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

Re: [android-developers] DialogFragment - show soft keyboard upon creation

2012-07-16 Thread Simon Giddings
Yes, I use this as well, but forgot to include it in the code I posted here.

On Monday, 16 July 2012 18:06:41 UTC+2, Kostya Vasilyev wrote:

 Have you tried et.requestFocus() ?

 2012/7/16 Simon Giddings 

 I have a simple dialog built with the compatibility libraries 
 DialogFragment.
 It holds only 

1. EditText 
2. 2 buttons

 When the dialog is shown, the edit text control has the focus.
 At this point, I want to open the soft keyboard automatically.

 Here is what I am doing within the onCreateView method :
 EditText et;
 et = (EditText)v.findViewById(R.id.txtAddress);
 Activity act = getActivity();
 if(act != null)
 {
 InputMethodManager imm = 
 (InputMethodManager)act.getSystemService(Context.INPUT_METHOD_SERVICE);
 if(imm != null)
 imm.showSoftInput(et, InputMethodManager.SHOW_FORCED);
 }

 Even though I get to the showSoftInput step with no problem, the keyboard 
 is still not displayed.

 So, how can I correctly get the soft keyboard to be shown ?

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




-- 
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   3   4   >