[android-developers] Android Emulator

2012-11-19 Thread Vykes Mac
Hey how do you get the GPU Emulator to work. i tick the option to enable it 
when is setup the emulator but when i run an app it gives me an error 
saying OpenGL ES 2.0 not supported by the device

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

[android-developers] android emulator

2012-11-19 Thread Vykes Mac
Does anyone knows y i'm getting error: OpenGL ES 2.0 is not supported by 
device, even though i set GPU emulation on in the emulator settings

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Update Cursor Adapter on single row

2011-11-01 Thread mac-systems
Hello,

I render an UI rely on Cursor entries, meanwhile is can happen that an
update of an row get updated in my ContentProvider, so i use
getContext().getContentResolver().notifyChange(uri, null); to inform
the CursorAdapter, but it forces the Adapter to reload everything and
the UI beginns to stutter. Is there any good practice doing that ?

best regards,
Jens

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Anyone got an example using CipherInputStream and PBE to work ?

2011-10-03 Thread mac-systems
Thanks, i will have a look. Sounds like i may completely have a wrong
impression how the cipherstream have to be used.


I was curious about how this can work:


/*
 * Read a predefined data block. If the password is incorrect, we'll
get a
security
 * exception here. Without this, we will only get an IOException later
when
reading
 * the CipherInputStream, which is not specific enough for a good
error
message.
 */
int count = streamIn.read();
if (count <= 0 || count > 1024) {
throw new IOException(
mContext.getString(R.string.backup_restore_error_bad_file));
}

byte[] input = new byte[count];
streamIn.read(input);
pbeCipher.doFinal(input);

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Anyone got an example using CipherInputStream and PBE to work ?

2011-10-02 Thread mac-systems
Just give me a bit more Info there please.

I througth the CipherInputStream / CipherOutputStream deal with the
details there ?

PS: I've got an JUnit Test an it works there pretty well.


On 2 Okt., 21:21, Nikolay Elenkov  wrote:
> On Mon, Oct 3, 2011 at 2:36 AM, mac-systems  wrote:
> > I try to read encrypted data, but always get java.io.IOException: last
> > block incomplete in decryption
>
> Dump the encrypted stream to file and check its length. It must be a
> multiple of 8 (block size is 64 bits for DES) for decryption to work.
> If it's not, check your code, you probably have a bug somewhere.
>
> And don't use DES if you can avoid it.

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


[android-developers] Anyone got an example using CipherInputStream and PBE to work ?

2011-10-02 Thread mac-systems
I try to read encrypted data, but always get java.io.IOException: last
block incomplete in decryption



Setup works like this:

final KeySpec keySpec = new PBEKeySpec(passPhrase.toCharArray(),
SALT, ITERATIONS);
key =
SecretKeyFactory.getInstance("PBEWithMD5AndDES").generateSecret(keySpec);
//
ecipher = Cipher.getInstance(key.getAlgorithm());
paramSpec = new PBEParameterSpec(SALT, ITERATIONS);
// Create the ciphers
ecipher.init(Cipher.ENCRYPT_MODE, key, paramSpec);


Reading the Input:

public InputStream getDecryptStream(final InputStream out) throws
IOException
{
try
{
ecipher.init(Cipher.DECRYPT_MODE, key, paramSpec);
}
catch (InvalidKeyException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
catch (InvalidAlgorithmParameterException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
return new CipherInputStream(out, ecipher);
}



Anyone can give me an Advice how to get it to work ?

Best regards,
Jens

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: getSharedPreferences for a wallpaper

2011-03-30 Thread mac-systems
I do not understood your question quite right i think.

So, where is the benefit that u want to access the prefs. in the loop
instead get a callback when their change ?

- Jens

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: AutoCompleteTextView and a ContentProvider

2011-03-17 Thread mac-systems
Thanks a lot.
Im a bit confused about the fact that the (Subclass) of
ResourceCursorAdapter needs an Cursor in its Constructor
as i do the query in the runQueryOnBackgroundThread Method. Any hint
why this is done like this ?

regards,
Jens




On 17 Mrz., 12:22, Kostya Vasilyev  wrote:
> I don't know if there are - never looked there.
>
> However, it's literally just a few lines of code:
>
> - Subclass ResourceCursorAdapter;
> - Override bindView to do the usual thing;
> - Override runQueryOnBackgroundThread to do something like:
>
>      @Override
>      public Cursor runQueryOnBackgroundThread(CharSequence constraint) {
>          String filter = constraint == null ? "" : constraint.toString();
>          Cursor c = mContentResolver.query();
>          if (c != null) {
>              c.getCount();        // Force data to be sent over right here
>          }
>          return c;
>      }
>
> 17.03.2011 14:10, mac-systems пишет:
>
>
>
> > Is there any API Example about this stuff in the SDK ?
> > Looks like what i have to use...
>
> > On 17 Mrz., 11:56, Kostya Vasilyev  wrote:
> >> 17.03.2011 13:47, mac-systems пишет:
>
> >>> Hello,
> >>> what would be the best approach to use an ContentProvider and a
> >>> AutoCompleteTextView ?
> >>> Looks like i have to use the CursorAdapter ?
> >>> regards,
> >>> Jens
> >> Yep.
>
> >> It needs a ListAdapter that implements Filterable.
>
> >> CursorAdapter satisfies those requirements, as does
> >> ResourceCursorAdapter (one less method to override).
>
> >> You will then need to either override runQueryOnBackgroundThread in the
> >> adapter, or delegate through a FilterQueryProvider.
>
> >> --
> >> Kostya Vasilyev --http://kmansoft.wordpress.com
>
> --
> Kostya Vasilyev --http://kmansoft.wordpress.com

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


[android-developers] Re: AutoCompleteTextView and a ContentProvider

2011-03-17 Thread mac-systems
Is there any API Example about this stuff in the SDK ?
Looks like what i have to use...



On 17 Mrz., 11:56, Kostya Vasilyev  wrote:
> 17.03.2011 13:47, mac-systems пишет:
>
> > Hello,
>
> > what would be the best approach to use an ContentProvider and a
> > AutoCompleteTextView ?
> > Looks like i have to use the CursorAdapter ?
>
> > regards,
> > Jens
>
> Yep.
>
> It needs a ListAdapter that implements Filterable.
>
> CursorAdapter satisfies those requirements, as does
> ResourceCursorAdapter (one less method to override).
>
> You will then need to either override runQueryOnBackgroundThread in the
> adapter, or delegate through a FilterQueryProvider.
>
> --
> Kostya Vasilyev --http://kmansoft.wordpress.com

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


[android-developers] AutoCompleteTextView and a ContentProvider

2011-03-17 Thread mac-systems
Hello,

what would be the best approach to use an ContentProvider and a
AutoCompleteTextView ?
Looks like i have to use the CursorAdapter ?

regards,
Jens

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


[android-developers] Re: How to set Parent ImageView Style

2011-03-09 Thread mac-systems
I'm still curios about that there is no parent style, my understanding
was
that a lot of the default behaviour comes from this styles?
For example the scaletype has a default value,i think

Thx a lot,
Jens

On 9 Mrz., 11:34, Kostya Vasilyev  wrote:
> 09.03.2011 13:31, mac-systems пишет:
>
> > Eclipse complain about the parent :error: Error retrieving parent for
> > item: No resource found that matches the given name '@android:style/
> > Widget.ImageView'.
>
> > Whats is different for an ImageView ?
>
> There isn't a Widget.ImageView style in Android as far as I can tell.
>
> Check styles.xml in android-sdk\platforms\android-X\res\values.
>
> Besides, your definition looks quite complete enough to not need a
> parent style.
>
> --
> Kostya Vasilyev --http://kmansoft.wordpress.com

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


[android-developers] How to set Parent ImageView Style

2011-03-09 Thread mac-systems
Hello,

i've just cant figure out why this should be wrong ?


wrap_content
@dimen/title_height
@drawable/mv_logo
5dp
5dp


Eclipse complain about the parent :error: Error retrieving parent for
item: No resource found that matches the given name '@android:style/
Widget.ImageView'.

Whats is different for an ImageView ?

Thx,
Jens


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Disable dictionary on softkeyboard ?

2011-02-02 Thread mac-systems
Hello,

my target version is still 1.6, how can i prevent the dictionary to
appear ?
I want that the user simply enters text as he types it.
Since SDK Target Version 5 theres the Option
android:inputType="textNoSuggestions"




best regards,
Jens

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Styles and Background

2011-02-01 Thread mac-systems
Hello, i try to create a style for a TextView which also get the
Background using a Gradient declared in another xml. Its not got
displayed, any sugestion why ?



#
#ff88
0.5
0.5
0.9
24dip
bold
@drawable/small_bg_gradient





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








-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Control rotation of a 3D object using the touchscreen

2011-01-26 Thread Mac
Hello all, I'm a 4th year computer engineering student and have some
experience with Android dev.

I am working on an application that has a 3D component to it which
requires me to be able to rotate it around. I was looking at the
example at the android resources site.

http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/TouchRotateActivity.html

This example does not talk about rotation around the z-axis. I have
already tried using Quaternion for the rotations but I don't
understand how to get rotations around the z-axis

I was wondering if anyone can help me with learning how to just be
able to rotate around an object. like the example above but also
around the z-axis. I have already spend about 24 hours searching and
trying to figure this out.

The bigger issue is that once you rotate 90 degrees around the y-axis
how can you detect that the next rotation (going vertically on the
touchscreen) should be around the z-axis.

Thank you in advance.
Mac

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 align SurfaceView on Bottom ?

2011-01-13 Thread mac-systems
Hello,

i cant figure out whats wrong, and slowly this turnes into an
"showstopper" for me...
if i use a simple ImageView like this everything works fine (ImageView
is centered on bottom)


http://schemas.android.com/apk/res/
android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#269" android:gravity="center_horizontal"
>












Using a SurfaceView instead just get layouted on top of the Screen,
why ?

Thanks for any advice,
Jens

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Wrong Position when using Big Images

2010-12-17 Thread mac-systems
Hallo,

i just stumpled over this:

In want to place an Image on the Bottom of the Screen, so i used an
RelativeLayout placed an ImageView in it:


http://schemas.android.com/apk/res/
android"
 android:layout_width="wrap_content"
android:layout_height="wrap_content" >

 


My Emulator ist API Version 8, with Screen Dimension 480x800. The
Image in the HDPI Folder was 652x652 in 240DPI. If i run it with this
Image (hand) i always get the Image Scaled but it shows up much more
over the Bottom as i would expect. The Image has NO transparent Border
that may would cause this.

When i scale the Image down to apx. width of the Screen (480x480) i
get a result i would expect.

Anybody can explain why Android Layout like this ?

PS: I did not put any other Images of that in the folders "mdpi" or
"ldpi" as alternatives !

best regards,
Jens




-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] request-response messaging with C2DM

2010-08-25 Thread mac
Hi,

Is it possible to implement a request/request messaging pattern with
C2DM?

I mean, some application issues a HTTP POST request to the C2DM server
to send a message to a device. If the device is online, the
application processing the intent could respond with a custom message
that could be delivered back to the caller within the same HTTP
transaction in the HTTP Response payload.

Reading the documentation I haven't found this is feasible, ... In
case it is not, have you considered adding this feature in further
releases?

Regards,

Angel

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


[android-developers] Re: Problem with PhoneStateListener.onSignalStrengthsChanged

2010-07-23 Thread mac
Hi TAO,

Have you figured this out? I'm having the exact same problem.

I've tested my app on G1 (1.5), Nexus One (2.1), Droid (2.1), and EVO
(2.1).

The new API  onSignalStrengthsChanged(SignalStrength signalStrength)
never got called on all 2.1 devices. But the funny part is the old API
onSignalStrengthChanged(int asu) worked correctly on Nexus One, but
not on Droid or EVO.

Please let me know if you are able to fix this problem.

Thanks.

Mac

On Jul 3, 12:12 pm, TheArchedOne  wrote:
> I have written an android app which listens to the phone signal
> strength. The app works perfectly with Android 1.6 and lower using
> PhoneStateListener.SignalStrengthChanged(int asu), but I can't get it
> to work on Android 2.1.
>
> I know that I have to use onSignalStrengthsChanged(SignalStrength
> signalStrength) but this override never seems to be called in my code.
> SignalStrengthChanged(int asu) is called, but this always returns a
> signal strength of -1 asu because its been depecated. I need to get
> the onSignalStrengthsChanged(SignalStrength signalStrength) to
> work does anyone know what I'm doing wrong?
>
> I'm testing on a EVO with Android 2.1. The phone type
> (TelephonyManager.getPhoneType) is CDMA and
> TelephonyManager.getNetworkType returns "EVDO_A".
>
> Here's the code:
>
> mSignalListener = new PhoneStateListener(){
>   @Override
>     public void onSignalStrengthChanged(int asu){
>       Log.d(Utils.LOGTAG, "#1. " + String.valueOf(asu));
>       if (mStrength != asu){
>         mStrength = asu;
>         NotifyUI();
>       }
>       super.onSignalStrengthChanged(asu);
>     }
>
>   @Override
>   public void onSignalStrengthsChanged(SignalStrength signalStrength)
> {
>     Log.d(Utils.LOGTAG, "#2.");  // this never gets called
>
>     if (signalStrength.isGsm())
>       mStrength = signalStrength.getGsmSignalStrength();
>     else{
>       int strength = -1;
>       if (signalStrength.getEvdoDbm() < 0)
>         strength = signalStrength.getEvdoDbm();
>       else if (signalStrength.getCdmaDbm() < 0)
>         strength = signalStrength.getCdmaDbm();
>
>       if (strength < 0){
>         // convert to asu
>         mStrength = Math.round((strength + 113f) / 2f);
>       }
>
>       NotifyUI();
>     }
>     super.onSignalStrengthsChanged(signalStrength);
>   }
>
> };
>
> mTelManager =
> (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
> mTelManager.listen(mSignalListener,
> PhoneStateListener.LISTEN_SIGNAL_STRENGTH);
>
> Thanks in advance
>
> TAO

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Anyone has expereiences in developing an audio visualizer?!

2010-07-21 Thread mac-systems
U just need the RAW data.

On 12 Jul., 08:56, CMF  wrote:
> Seems that there is no API in doing theaudiovisualizer?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: am trying to start my service on device boot up.

2010-07-21 Thread mac-systems
Add:



To you Manifest

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 respekt volume preferences ?

2010-07-19 Thread mac-systems
Hello,

i have Code which plays a notification sound using the MediaPlayer :

AssetFileDescriptor afd = null;
try
{
afd = getContext().getResources().openRawResourceFd(_resourceID);
player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(),
afd.getLength());
player.setVolume(VOLUME, VOLUME);
player.prepare();
player.start();
...
...


How can i respekt the Volume Settings of the User ? VOLUME is set to
1.0f there.

I thought it would possible to read the Volume using the AudioManager,
but it will return an integer:

final AudioManager audioManager = (AudioManager)
_context.getSystemService(Context.AUDIO_SERVICE);
final int volume =
audioManager.getStreamVolume(AudioManager.STREAM_NOTIFICATION);


Thx,
Jens


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: BufferedInputStream buffer size

2010-07-07 Thread mac-systems
The problem is that available() is not what to use there:

Just read from the screen like this:


public class CopyBytes {
public static void main(String[] args) throws IOException {
FileInputStream in = null;
FileOutputStream out = null;
try {
in = new FileInputStream("xanadu.txt");
out = new FileOutputStream("outagain.txt");
int c;

while ((c = in.read()) != -1) {
out.write(c);
}

} finally {
if (in != null) {
in.close();
}
if (out != null) {
out.close();
}
}
}
}

PS: Please read: http://java.sun.com/docs/books/tutorial/essential/io/

hth.
Jens

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


[android-developers] Re: how to catch a http 403 error

2010-07-06 Thread mac-systems
using HttpClient its easy:


final HttpResponse response = getHTTPClient().execute(httpGet);
if (Logging.isLoggingEnabled())
{
final StatusLine status = response.getStatusLine();
Log.d(LOG_TAG, "Response Code was : " + 
status.getStatusCode() + "
- " + status.getReasonPhrase());
}

if (HttpStatus.SC_OK != 
response.getStatusLine().getStatusCode())



- Jens

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Best Way to detect online connection ?

2010-07-06 Thread mac-systems
Hello,

whats the best way to detect that the App is able to download data
from somewhere ?

At the mo. is do something like this:

public static boolean isNetworkReachable(final Context _context)
{
final ConnectivityManager systemService = (ConnectivityManager)
_context
.getSystemService(Context.CONNECTIVITY_SERVICE);

/**
 * Avoid NullPointerException when offline
 */
if (systemService.getActiveNetworkInfo() == null)
{
Log.i(LOG_TAG, "Network not reachable");
return false;
}

final State networkState =
systemService.getActiveNetworkInfo().getState();
final boolean isRoamingNow =
systemService.getActiveNetworkInfo().isRoaming();


Anyone else can point me to a better way to do it ?

thx,
Jens


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Alarms after an update ?

2010-07-01 Thread mac-systems
Cant find any Infos about : android:authority="your.package.name"

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Alarms after an update ?

2010-06-30 Thread mac-systems
Found the Problem, the  is twice there :/

thx,
Jens

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


[android-developers] Audio Output pending ?

2010-06-29 Thread mac-systems
Hello,

i have a Alarm which invoke a BroadcastReciever. This
BroadcastReciever enqueues an Task into my Service. The Task get
executed. On a failure i that Task i play a Sound (mostly for me at
the moment so i can check via aLogcat to see the stacktrace).

If the Phone (Nexus One) is sleeping and the Alarm gets on i have the
feeling that the Audio will not played. When i touch my Phone later
(in the morning) i hear all the Audio Failure Feedback. It that
correct behaviour ?

My Audio get Played with this Code:


player = new MediaPlayer();
player.setLooping(false);
player.setOnCompletionListener(this);
...
...
AssetFileDescriptor afd = null;
try
{
afd = 
getContext().getResources().openRawResourceFd(_resourceID);
player.setDataSource(afd.getFileDescriptor(),
afd.getStartOffset(), afd.getLength());
player.setVolume(VOLUME, VOLUME);
player.prepare();
player.start();
}
...



-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Alarms after an update ?

2010-06-26 Thread mac-systems
I try to get my Reciever running, but at the moment it fails:

My Reciever:

public final class ReplaceReceiver extends BroadcastReceiver
{

private final static String LOG_TAG =
ReplaceReceiver.class.getSimpleName();

/*
 * (non-Javadoc)
 *
 * @see
android.content.BroadcastReceiver#onReceive(android.content.Context,
 * android.content.Intent)
 */
@Override
public void onReceive(final Context _context, final Intent _intent)
{
Log.i(LOG_TAG, "Enqueue Alerts, Action is :" + 
_intent.getAction());
Toast.makeText(_context, "Package Installer ",
Toast.LENGTH_LONG).show();
startService(_context);
}


In the Manifest:















What i do is, i install the App in the Emulator and just do a "project
clean" and do an reinstall (using Eclipse). Should my reciever be call
or what is missing there ? I also tried with




which also is not working. So any help would be nice to get it
working! I do not see any Toast or Info Massage in the Logcat.

regards,
Jens



-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Alarms after an update ?

2010-06-24 Thread mac-systems
Ok, i thought i have to do this.
Is there any Intent which get broadcasted on update ? Or simlar
mechanism ?

rega

On 24 Jun., 18:47, Dianne Hackborn  wrote:
> You need to re-schedule your alarms.  Since anything about the app could
> have changed, including the component that the alarms are targeting, that
> state can't be kept around.
>
>
>
>
>
> On Thu, Jun 24, 2010 at 7:31 AM, mac-systems  wrote:
> > Hello,
>
> > how will android handle an update of an app which comes from the
> > market ? Will pending alarm intents still invoked ?
>
> > thanks for reply,
> > Jens
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

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


[android-developers] Alarms after an update ?

2010-06-24 Thread mac-systems
Hello,

how will android handle an update of an app which comes from the
market ? Will pending alarm intents still invoked ?

thanks for reply,
Jens

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Unmarshal Parcleable in Broadcast Reviever

2010-06-17 Thread mac-systems
Of course this is always an option. But sometimes its just annoying.
But its always wise to keep informations together without always
asking the Database.

thx,
Jens



On 17 Jun., 15:56, Mark Murphy  wrote:
> On Thu, Jun 17, 2010 at 9:51 AM, mac-systems  wrote:
> > Yes, docu sucks big time there, no bock even has examples how to do
> > this!
>
> > Any way to go around this ?
>
> Don't use custom Parcelables in Intents used with alarms. Whatever you
> are putting in the Parcelable is hopefully backed by a database or
> other persistent storage. If so, put the key to the data in the Intent
> as a primitive extra (e.g., string, integer), and load in the rest of
> the data as needed.
>
> --
> Mark Murphy
> CommonsWare
> mmur...@commonsware.comhttp://commonsware.com

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


[android-developers] Re: Unmarshal Parcleable in Broadcast Reviever

2010-06-17 Thread mac-systems
Yes, docu sucks big time there, no bock even has examples how to do
this!

Any way to go around this ? If tried to set the ClassLoader like this:

@Override
public void onReceive(final Context context, final Intent intent)
{
intent.setExtrasClassLoader(Alert.class.getClassLoader());




Now i get new exception output (first line):

06-17 15:37:45.456: ERROR/Bundle(226): readBundle: bad magic number
06-17 15:37:45.456: ERROR/Bundle(226): readBundle: trace =
java.lang.RuntimeException
06-17 15:37:45.456: ERROR/Bundle(226): at
android.os.Bundle.readFromParcelInner(Bundle.java:1473)
06-17 15:37:45.456: ERROR/Bundle(226): at
android.os.Bundle.(Bundle.java:82)
06-17 15:37:45.456: ERROR/Bundle(226): at
android.os.Parcel.readBundle(Parcel.java:1344)
06-17 15:37:45.456: ERROR/Bundle(226): at
de.macsystems.windroid.alarm.Alert$1.createFromParcel(Alert.java:182)
06-17 15:37:45.456: ERROR/Bundle(226): at
de.macsystems.windroid.alarm.Alert$1.createFromParcel(Alert.java:1)

Whatever Magic Number there means, i beginn to think google wont like
to fix any bugs just add features!

regards,
Jens

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Unmarshal Parcleable in Broadcast Reviever

2010-06-17 Thread mac-systems
Hello,

anyone can point me why i get alway a ClassNotFoundException in my
BroadcastReviever using a custom Parcleable ?

I enqueue Alarms, which trigger the BroadcastReciever:

for (int i = 0; i < alertsToEnqueue.size(); i++)
{
final Alert alert = alertsToEnqueue.get(i);
final Intent intent = new Intent(_context,
AlarmBroadcastReciever.class);
intent.putExtra(IntentConstants.ALERT, alert);

intent.setAction(IntentConstants.DE_MACSYSTEMS_WINDROID_ALERT_TRIGGER);
final PendingIntent pendingIntent =
PendingIntent.getBroadcast(_context,
REQUEST_COUNTER.incrementAndGet(),
intent, PendingIntent.FLAG_ONE_SHOT);

alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, now +
INITIAL_DELAY, (10L * 1000L), pendingIntent);

if (Logging.isLoggingEnabled())
{
Log.d(LOG_TAG, "Enqueued Alert " + 
alert.toString());
}
}


// In my Manifest:








Thx for your help,
Jens

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Interpolators and how to repeat endless

2010-05-07 Thread mac-systems
Hello,

im a bit lost in all that Animation Framework Interpolators.

I really looking for some Documentation about the Interpolators and
how i can group sets.

I trying to zoom a View in and then endless zoom out it bit and in
again. How can i obtain this effect ?





-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ubuntu 10.04 emulator not launching

2010-05-05 Thread mac-systems
Works all Fine on my 10.04.

On 3 Mai, 21:25, Greg Donald  wrote:
> On Mon, May 3, 2010 at 2:30 AM, riazrahaman  wrote:
> > Was not able to launch the emulator on Ubuntu 10.04.
>
> > Is this a known issue with the 10.04 Lucid lynx ubuntu?
>
> Works fine for me.  Just tested, all mine work.
>
> --
> Greg Donald
> destiney.com | gregdonald.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: UncaughtExceptionHandler not called ?

2010-04-16 Thread mac-systems
Just to make this Complete, there some J2SE Code which shows whats
expected:

public final class ThreadLogger implements
Thread.UncaughtExceptionHandler
{
private final static String LOG_TAG =
ThreadLogger.class.getSimpleName();

/*
 * (non-Javadoc)
 *
 * @see
 *
java.lang.Thread.UncaughtExceptionHandler#uncaughtException(java.lang
 * .Thread, java.lang.Throwable)
 */
@Override
public void uncaughtException(final Thread _thread, final Throwable
_ex)
{
System.out.println("uncaughtException, Name " + 
_thread.getName() +
" prio " + _thread.getPriority());
_ex.printStackTrace();
}

public static void main(String[] args)
{
Thread.currentThread().setUncaughtExceptionHandler(new
ThreadLogger());
throw new RuntimeException("You just caught me..");
}

}

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


[android-developers] UncaughtExceptionHandler not called ?

2010-04-16 Thread mac-systems
Hello,

i use a ScheduledThreadPoolExecutor combined with a ThreadFactory,
their all combined should
cause an unchaught Exception to be logged so that i can see what
happening if any thread is dying in the ThreadPool:

threadPool = new ScheduledThreadPoolExecutor(poolSize, new
ThreadFactory());


My ThreadFactory, also sets a UncaughtExceptionHandler :

public Thread newThread(final Runnable r)
{
final Thread thread = new Thread(r);
thread.setUncaughtExceptionHandler(new ThreadLogger());
final int counter = count.getAndIncrement();
final String name = threadName + counter;
thread.setName(threadName + counter);
if (Logging.isLoggingEnabled())
{
Log.d(LOG_TAG, "Thread created :" + name);
}
return thread;
}


The ThreadLogger :

public final class ThreadLogger implements
Thread.UncaughtExceptionHandler
{
private final static String LOG_TAG =
ThreadLogger.class.getSimpleName();

/*
 * (non-Javadoc)
 *
 * @see
 *
java.lang.Thread.UncaughtExceptionHandler#uncaughtException(java.lang
 * .Thread, java.lang.Throwable)
 */
@Override
public void uncaughtException(final Thread _thread, final Throwable
_ex)
{
Log.e(LOG_TAG, "uncaughtException, Name" + _thread.getName() + "
prio " + _thread.getPriority(), _ex);
}


But when a RuntimeException is thrown the Handler never get called. Is
this a Bug ?

Best regards,
Jens

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Cancel Alarms / Filtering

2010-04-16 Thread mac-systems
Created an Issue for that: 
http://code.google.com/p/android/issues/detail?id=7780

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Cancel Alarms / Filtering

2010-04-16 Thread mac-systems
I made some Test to terminate the pending Alarms.

I figured out that the API Doc seems to be wrong for Method:

 PendingIntent.getBroadcast(...)

WRONG: requestCode  Private request code for the sender (currently not
used). <---

If you're using another requestCode the Alarm will not be killed!

For testing i just used '0' and out of a sudden it worked for me.



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


[android-developers] Cancel Alarms / Filtering

2010-04-16 Thread mac-systems
Code below creates an Alarm, so far everything is working fine.
But i am a bit lost in the Documentaion how to cancel an Alarm.
I need to cancel only special Alarm(s) depending on
Intent#putExtra(IntentConstants.SELECTED_PRIMARY_KEY,_selectedID);

How can i archive this ?

public static void createRetryAlarm(final int _selectedID, final
Context _context)
{
if (Logging.isLoggingEnabled())
{
Log.d(LOG_TAG, "Creating retry alarm for selected with 
id :" +
_selectedID);
}
final long now = System.currentTimeMillis();
//
final Intent intent = new Intent(_context,
AlarmBroadcastReciever.class);
intent.putExtra(IntentConstants.SELECTED_PRIMARY_KEY, 
_selectedID);
final int requestID = alarmCounter.incrementAndGet();
final PendingIntent pendingIntent =
PendingIntent.getBroadcast(_context, requestID, intent,
PendingIntent.FLAG_ONE_SHOT);
final AlarmManager alarmManager = (AlarmManager)
_context.getSystemService(Context.ALARM_SERVICE);
alarmManager.set(AlarmManager.RTC_WAKEUP, now +
(AlarmManager.INTERVAL_HALF_HOUR), pendingIntent);
}


Many Thanks,
Jens



-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 long Service#onDestroy is allowed to run ?

2010-04-14 Thread mac-systems
Hello,

when stop my Service i may have several Tasks in a Threadpool, some
may take some time. Is there any Documentation available how long the
onDestroy method is allowed to run without risk an ANR Dialog ?


As an example, theres what i played with:

@Override
public void onDestroy()
{
try
{
Log.d(LOG_TAG, "Service#onDestroy");
//
if (threadPool != null)
{
threadPool.shutdown();
}

try
{
Log.d(LOG_TAG, "Service#onDestroy sleeps");
Thread.sleep(60 * 1000L);
Log.d(LOG_TAG, "Service#onDestroy sleep ends");
}
catch (Exception e)
{
e.printStackTrace();
}
}
catch (final SecurityException e)
{
Log.e(LOG_TAG, "shutdown failed", e);
}
finally
{
super.onDestroy();
}


In some circumstances it can take lots of time before the task is
completed.
I can monitor that by using ThreadPoolExcecutor#awaitTermination but i
need a safe value for it.

best regards,
Jens


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

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


[android-developers] Re: ListActivity not updating on Database update.

2010-01-06 Thread mac-systems
Hi,

i tried with requery the Cursor. But my list is empty after the
requery, seems i do something wrong there. So is there any Info/Rules
available how to requery have to be used ?

Thx,
Jens

On 5 Jan., 17:13, Beth  wrote:
> Hmmm - not sure you want to call this method more than once.
>                 setListAdapter(shows);
>
> Set the adapter once, when you create the list.  Requery the list's
> cursor as needed.  If you use a cursor adapter you may never have to
> requery manually.
>
> Good luck!
>
> On Jan 5, 7:42 am, mac-systems  wrote:
>
> > I just figured out that if i write the setActive Method like this i
> > see a update, but i have duplicated Code:
>
> >         private void setActive(final boolean _state)
> >         {
> >                 final ISelectedDAO dao = DAOFactory.getSelectedDAO(this);
> >                 dao.setActiv(getSelectedItemId(), _state);
> >                 c = dao.fetchAll();
> >                 startManagingCursor(c);
>
> >                 final String[] from = new String[]
> >                 { ISelectedDAO.COLUMN_ACTIV, ISelectedDAO.COLUMN_NAME,
> > ISelectedDAO.COLUMN_ID, ISelectedDAO.COLUMN_STARTING,
> >                                 ISelectedDAO.COLUMN_TILL };
> >                 final int[] to = new int[]
> >                 { R.id.custom_spotoverview_activ, 
> > R.id.custom_spotoverview_name,
> > R.id.custom_spotoverview_detail,
> >                                 R.id.custom_spotoverview_wind_from,
> > R.id.custom_spotoverview_wind_to };
> >                 shows = new SimpleCursorAdapter(this,
> > R.layout.custom_listview_spotoverview, c, from, to);
> >                 shows.setViewBinder(new SpotOverviewViewBinder());
> >                 setListAdapter(shows);
> >                 Log.d(LOG_TAG, "Updating View");
> >         }
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ListActivity not updating on Database update.

2010-01-05 Thread mac-systems
I just figured out that if i write the setActive Method like this i
see a update, but i have duplicated Code:

private void setActive(final boolean _state)
{
final ISelectedDAO dao = DAOFactory.getSelectedDAO(this);
dao.setActiv(getSelectedItemId(), _state);
c = dao.fetchAll();
startManagingCursor(c);

final String[] from = new String[]
{ ISelectedDAO.COLUMN_ACTIV, ISelectedDAO.COLUMN_NAME,
ISelectedDAO.COLUMN_ID, ISelectedDAO.COLUMN_STARTING,
ISelectedDAO.COLUMN_TILL };
final int[] to = new int[]
{ R.id.custom_spotoverview_activ, R.id.custom_spotoverview_name,
R.id.custom_spotoverview_detail,
R.id.custom_spotoverview_wind_from,
R.id.custom_spotoverview_wind_to };
shows = new SimpleCursorAdapter(this,
R.layout.custom_listview_spotoverview, c, from, to);
shows.setViewBinder(new SpotOverviewViewBinder());
setListAdapter(shows);
Log.d(LOG_TAG, "Updating View");
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ListActivity not updating on Database update.

2010-01-05 Thread mac-systems
I tried it, but i get a empty cursor doing it because my Listactivity
show the "empty" message.
I already wondering about that. Anyone else ?

Thx,
Jens



On 5 Jan., 08:27, Hjcheon  wrote:
> -Original Message-
> From: Lance Nanek 
> Sent: Tuesday, January 05, 2010 1:31 PM
> To: Android Developers 
> Subject: [android-developers] Re: ListActivity not updating on Database 
> update.
>
> Have you tried calling requery on the underlying Cursor?
>
> On Jan 4, 8:00 pm, mac-systems  wrote:
> > Hello,
>
> > i update a value in my Database in a Listview using a Context Menu.
> > The code so far seems to be ok. But everything i try to make the
> > update visible in the View failed. Anyone can point me whats wrong
> > there ? I use a ViewBinder to map the Layout for each row.
>
> > Row Layout:
>
> > ?xml version="1.0" encoding="UTF-8"?>
> >  >         xmlns:android="http://schemas.android.com/apk/res/android";
> >         android:orientation="vertical"
> >         android:layout_width="fill_parent"
> >         android:layout_height="fill_parent">
>
> >          >                 android:id="@+id/custom_spotoverview_name"
> >                 android:text="text"
> >                 android:layout_width="wrap_content"
> >                 android:layout_height="wrap_content"
> >                 android:textSize="20sp" />
>
> >          >                 xmlns:android="http://schemas.android.com/apk/res/android";
> >                 android:orientation="horizontal"
> >                 android:layout_width="fill_parent"
> >                 android:layout_height="fill_parent">
>
> >                  >                         android:id="@+id/custom_spotoverview_activ"
> >                         android:layout_width="wrap_content"
> >                         android:layout_height="wrap_content" />
>
> >                  >                         android:layout_width="5dp"
> >                         android:layout_height="5dp" />
>
> >           =
>
> [The entire original message is not included]

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] ListActivity not updating on Database update.

2010-01-04 Thread mac-systems
Hello,

i update a value in my Database in a Listview using a Context Menu.
The code so far seems to be ok. But everything i try to make the
update visible in the View failed. Anyone can point me whats wrong
there ? I use a ViewBinder to map the Layout for each row.

Row Layout:

?xml version="1.0" encoding="UTF-8"?>
http://schemas.android.com/apk/res/android";
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">




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























The ViewBinder:

public class SpotOverviewViewBinder implements
SimpleCursorAdapter.ViewBinder
{

private static final int SPOT_NAME = 0;
private static final int SPOT_ID = 2;

private static final int WIND_TO = 5;
private static final int WIND_FROM = 6;

private static final int SPOT_ACTIV = 3;

/**
 * Converts integer representing a boolean (0,1) to enabled or
disabled icon
 * resource id.
 *
 * @param value
 * @return
 */
private final static int convertIntToResourceID(final int value)
{
return value == 0 ? R.drawable.activ_off : R.drawable.activ_on;
}

/*
 * (non-Javadoc)
 *
 * @see
 * android.widget.SimpleCursorAdapter.ViewBinder#setViewValue
(android.view
 * .View, android.database.Cursor, int)
 */
@Override
public boolean setViewValue(final View view, final Cursor cursor,
final int columnIndex)
{
if (columnIndex == SPOT_ACTIV)
{
final ImageView iv = (ImageView) view;
final int resID = convertIntToResourceID(cursor.getInt
(columnIndex));
iv.setBackgroundResource(resID);
}
else if (columnIndex == SPOT_NAME)
{
final String name = cursor.getString(columnIndex);
final TextView tv = (TextView) view;
tv.setText(name);
}
else if (columnIndex == SPOT_ID)
{
final TextView tv = (TextView) view;
tv.setText(cursor.getString(columnIndex));
}
else if (columnIndex == WIND_FROM)
{
final ImageView tv = (ImageView) view;
final String id = cursor.getString(columnIndex);
final int index = IdentityUtil.indexOf(id, 
WindDirection.values());
final int resID = 
WindDirection.values()[index].getImage();
tv.setImageResource(resID);
}
else if (columnIndex == WIND_TO)
{
final ImageView tv = (ImageView) view;
final String id = cursor.getString(columnIndex);
final int index = IdentityUtil.indexOf(id, 
WindDirection.values());
final int resID = 
WindDirection.values()[index].getImage();
tv.setImageResource(resID);
}

return true;
}
}

The ListActivity:


public class SpotOverview extends ListActivity
{

private final static String LOG_TAG = SpotOverview.class.getSimpleName
();
private static final int ENABLE_ITEM_ID = 0;
private static final int DISABLE_ITEM_ID = 1;
private static final int EDIT_ITEM_ID = 2;

Cursor c = null;
SimpleCursorAdapter shows = null;

/*
 * (non-Javadoc)
 *
 * @see android.app.Activity#onCreate(android.os.Bundle)
 */
@Override
protected void onCreate(final Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.spotoverview);

final ISelectedDAO dao = DAOFactory.getSelectedDAO(this);
c = dao.fetchAll();
startManagingCursor(c);

final String[] from = new String[]
{ ISelectedDAO.COLUMN_ACTIV, ISelectedDAO.COLUMN_NAME,
ISelectedDAO.COLUMN_ID, ISelectedDAO.COLUMN_STARTING,
ISelectedDAO.COLUMN_TILL };
final int[] to = new int[]
{ R.id.custom_spotoverview_activ, R.id.custom_spotoverview_name,
R.id.custom_spotoverview_detail,
R.id.custom_spotoverview_wind_from,
R.id.custom_spotoverview_wind_to };

[android-developers] How to connect to SQLite DB in Emulator ?

2009-09-16 Thread mac-systems

Hello,

i try to connect to the Android Emulator from my Eclipse via JDBC.
Anyone can point me how to do that ?

thx,
Jens
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: creating a shared jar library

2009-08-27 Thread Mac

  I've sufficiently understood about the reason not to support third
party libraries.
Goolgle apis as regular sharing libraries can add on %ANDROID_HOME%/
add-on and then Android Applications can use that libraries.
Like this, could I add my sharing library on %ANDROID_HOME%/add-on
directory? If I can't use the way, how can I share my library?

  Actually, I'd like to add my library on framework directory and then
edit platform.xml to use my library as a sharing library,
but because I just use Android Application Framework API, to make my
library, I thought I don't need to add my library on framework

On 8월27일, 오후2시31분, Dianne Hackborn  wrote:
> If you are creating your own device, you can have your own shared libraries
> that are separate from the framework.  We don't support third party shared
> libraries mostly because we really don't want to get into dll hell and
> library versioning and such at this point.
>
> 2009/8/26 Mac 
>
>
>
>
>
>
>
> >  Thanks, Dianne Hackborn.
>
> > Could I think the reason that can't support sharing third party
> > libraries is that all applications are on each Dalvik VM?
>
> > And there's any way to share a regular library(.jar) without putting
> > the library on application framework layer?
>
> > On 8월27일, 오후12시17분, Dianne Hackborn  wrote:
> > > I meant "regular" as what we generally call a shared library in any OS.
>
> > > A third party shared library is specifically talking about the
> > (theoretical
> > > not currently possible) case of putting a shared library as an .apk up on
> > > market that could be installed by the system and used by other
> > applications.
>
> > > 2009/8/26 Mac 
>
> > > >  Hello, Dianne Hackborn.
>
> > > > I've read all of these mails and I understood most of them.
>
> > > > But, I don't know one important point of these mails.
>
> > > > I wonder what the difference of regular shared libraries and third
> > > > party shared libraries.
>
> > > > Could you tell me the difference for me?
>
> > > > On 8월5일, 오후11시18분, Dianne Hackborn  wrote:
> > > > > Yes, it is just a regular shared library.
>
> > > > > On Wed, Aug 5, 2009 at 7:03 AM, GiladH  wrote:
>
> > > > > > Dianne/anyone,
>
> > > > > > i would like to elaborate on the shared jar's memory model.
> > > > > > my understanding is that:
>
> > > > > >  a. the code (read only) segment of the shared jar resides in
> > common
> > > > > > memory => code will be loaded once regardless of the number of
> > > > > > apps
> > > > > > using the shared jar
> > > > > >  b. the data (read/write) segment of the shared jar is part of the
> > > > > > calling
> > > > > > process'es address space => all static data (blocks,
> > constructors
> > > > > > etc.)
> > > > > > will be initialized _separately_ for each app using the shared
> > > > > > jar
>
> > > > > > are my assumptions correct?
>
> > > > > > GiladH
>
> > > > > > On Jul 30, 7:31 pm, Dianne Hackborn  wrote:
> > > > > > > That only applies if you are making your own device.
>
> > > > > > > On Thu, Jul 30, 2009 at 8:20 AM, GiladH 
> > wrote:
>
> > > > > > > > tnx Dianne.
> > > > > > > > after my post i have learned about the ability to 'inject' my
> > > > shared
> > > > > > > > library into open source Andro, as described in:
>
> > > >http://android.git.kernel.org/?p=platform/development.git;a=blob;f=sa.
> > > > > > ..
>
> > > > > > > > i take it this option still stands (again - only for open
> > source
> > > > > > > > platform), right?
>
> > > > > > > > GiladH
>
> > > > > > > > On Jul 30, 5:04 pm, Dianne Hackborn 
> > wrote:
> > > > > > > > > Sorry, Android currently doesn't support third party shared
> > > > > > libraries.
>
> > > > > > > > > On Thu, Jul 30, 2009 at 4:13 AM, GiladH 
> > > > wrote:
>
> > > > > > > > > > hey,
>
> > > > > > > > > > i have several apps (each in its own apk, process etc)
> >  running
> > >

[android-developers] Re: creating a shared jar library

2009-08-26 Thread Mac

 Thanks, Dianne Hackborn.

Could I think the reason that can't support sharing third party
libraries is that all applications are on each Dalvik VM?

And there's any way to share a regular library(.jar) without putting
the library on application framework layer?



On 8월27일, 오후12시17분, Dianne Hackborn  wrote:
> I meant "regular" as what we generally call a shared library in any OS.
>
> A third party shared library is specifically talking about the (theoretical
> not currently possible) case of putting a shared library as an .apk up on
> market that could be installed by the system and used by other applications.
>
> 2009/8/26 Mac 
>
>
>
>
>
>
>
> >  Hello, Dianne Hackborn.
>
> > I've read all of these mails and I understood most of them.
>
> > But, I don't know one important point of these mails.
>
> > I wonder what the difference of regular shared libraries and third
> > party shared libraries.
>
> > Could you tell me the difference for me?
>
> > On 8월5일, 오후11시18분, Dianne Hackborn  wrote:
> > > Yes, it is just a regular shared library.
>
> > > On Wed, Aug 5, 2009 at 7:03 AM, GiladH  wrote:
>
> > > > Dianne/anyone,
>
> > > > i would like to elaborate on the shared jar's memory model.
> > > > my understanding is that:
>
> > > >  a. the code (read only) segment of the shared jar resides in common
> > > > memory => code will be loaded once regardless of the number of
> > > > apps
> > > > using the shared jar
> > > >  b. the data (read/write) segment of the shared jar is part of the
> > > > calling
> > > > process'es address space => all static data (blocks, constructors
> > > > etc.)
> > > > will be initialized _separately_ for each app using the shared
> > > > jar
>
> > > > are my assumptions correct?
>
> > > > GiladH
>
> > > > On Jul 30, 7:31 pm, Dianne Hackborn  wrote:
> > > > > That only applies if you are making your own device.
>
> > > > > On Thu, Jul 30, 2009 at 8:20 AM, GiladH  wrote:
>
> > > > > > tnx Dianne.
> > > > > > after my post i have learned about the ability to 'inject' my
> > shared
> > > > > > library into open source Andro, as described in:
>
> >http://android.git.kernel.org/?p=platform/development.git;a=blob;f=sa.
> > > > ..
>
> > > > > > i take it this option still stands (again - only for open source
> > > > > > platform), right?
>
> > > > > > GiladH
>
> > > > > > On Jul 30, 5:04 pm, Dianne Hackborn  wrote:
> > > > > > > Sorry, Android currently doesn't support third party shared
> > > > libraries.
>
> > > > > > > On Thu, Jul 30, 2009 at 4:13 AM, GiladH 
> > wrote:
>
> > > > > > > > hey,
>
> > > > > > > > i have several apps (each in its own apk, process etc)  running
> > at
> > > > the
> > > > > > > > same time on user's device.
>
> > > > > > > > these apps are all linked to a single common jar file
> > (internally
> > > > > > > > devloped) which contains a large portion of their overall code
> > > > size.
>
> > > > > > > > is there a way for me to force Andro to make this common jar
> > load
> > > > only
> > > > > > > > once (e.g. into shared memory)?
>
> > > > > > > > the reason we want to do it this way, btw, are to reduction of
> > each
> > > > of
> > > > > > > > the
> > > > > > > > single apps memory intake, on disk footprint and possibly of
> > their
> > > > > > > > startup time.
>
> > > > > > > > your help will be appreciated.
>
> > > > > > > > tnx, GilkadH
>
> > > > > > > --
> > > > > > > Dianne Hackborn
> > > > > > > Android framework engineer
> > > > > > > hack...@android.com
>
> > > > > > > Note: please don't send private questions to me, as I don't have
> > time
> > > > to
> > > > > > > provide private support, and so won't reply to such e-mails.  All
> > > > such
> > > > > > > questions should be posted on pub

[android-developers] Re: creating a shared jar library

2009-08-26 Thread Mac

 Hello, Dianne Hackborn.

I've read all of these mails and I understood most of them.

But, I don't know one important point of these mails.

I wonder what the difference of regular shared libraries and third
party shared libraries.

Could you tell me the difference for me?


On 8월5일, 오후11시18분, Dianne Hackborn  wrote:
> Yes, it is just a regular shared library.
>
>
>
>
>
> On Wed, Aug 5, 2009 at 7:03 AM, GiladH  wrote:
>
> > Dianne/anyone,
>
> > i would like to elaborate on the shared jar's memory model.
> > my understanding is that:
>
> >  a. the code (read only) segment of the shared jar resides in common
> > memory => code will be loaded once regardless of the number of
> > apps
> > using the shared jar
> >  b. the data (read/write) segment of the shared jar is part of the
> > calling
> > process'es address space => all static data (blocks, constructors
> > etc.)
> > will be initialized _separately_ for each app using the shared
> > jar
>
> > are my assumptions correct?
>
> > GiladH
>
> > On Jul 30, 7:31 pm, Dianne Hackborn  wrote:
> > > That only applies if you are making your own device.
>
> > > On Thu, Jul 30, 2009 at 8:20 AM, GiladH  wrote:
>
> > > > tnx Dianne.
> > > > after my post i have learned about the ability to 'inject' my shared
> > > > library into open source Andro, as described in:
>
> > > >http://android.git.kernel.org/?p=platform/development.git;a=blob;f=sa.
> > ..
>
> > > > i take it this option still stands (again - only for open source
> > > > platform), right?
>
> > > > GiladH
>
> > > > On Jul 30, 5:04 pm, Dianne Hackborn  wrote:
> > > > > Sorry, Android currently doesn't support third party shared
> > libraries.
>
> > > > > On Thu, Jul 30, 2009 at 4:13 AM, GiladH  wrote:
>
> > > > > > hey,
>
> > > > > > i have several apps (each in its own apk, process etc)  running at
> > the
> > > > > > same time on user's device.
>
> > > > > > these apps are all linked to a single common jar file (internally
> > > > > > devloped) which contains a large portion of their overall code
> > size.
>
> > > > > > is there a way for me to force Andro to make this common jar load
> > only
> > > > > > once (e.g. into shared memory)?
>
> > > > > > the reason we want to do it this way, btw, are to reduction of each
> > of
> > > > > > the
> > > > > > single apps memory intake, on disk footprint and possibly of their
> > > > > > startup time.
>
> > > > > > your help will be appreciated.
>
> > > > > > tnx, GilkadH
>
> > > > > --
> > > > > Dianne Hackborn
> > > > > Android framework engineer
> > > > > hack...@android.com
>
> > > > > Note: please don't send private questions to me, as I don't have time
> > to
> > > > > provide private support, and so won't reply to such e-mails.  All
> > such
> > > > > questions should be posted on public forums, where I and others can
> > see
> > > > and
> > > > > answer them.
>
> > > --
> > > Dianne Hackborn
> > > Android framework engineer
> > > hack...@android.com
>
> > > Note: please don't send private questions to me, as I don't have time to
> > > provide private support, and so won't reply to such e-mails.  All such
> > > questions should be posted on public forums, where I and others can see
> > and
> > > answer them.
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Invoking Activity from PendingIntent in NotificationManager

2009-06-22 Thread mac-systems

Hello,

i want to Inform the User about an Event from my Application using the
NotificationManager and then invoking a Activity with details about
the Event.

As far as i know it should work like this:

final NotificationManager mManager = 
(NotificationManager)
getSystemService(Context.NOTIFICATION_SERVICE);

Intent intent = new Intent(Main.this,
AlarmNotificationDetail.class);

Notification notification = new 
Notification(R.drawable.icon,
"Notify", System.currentTimeMillis());
notification.setLatestEventInfo(Main.this, "App 
Name",
"Description of the notification", PendingIntent

.getActivity(Main.this.getBaseContext(), 0, intent,
PendingIntent.FLAG_CANCEL_CURRENT));
mManager.notify(815, notification);


This put an Event in my Statusbar, but it do not forward to the
AlarmNotificationDetail.class Activity. Main.this is the Context from
which this Event is triggered.

The Activity to Invoke looks live this and should  bring up a Toast
when created:

public class AlarmNotificationDetail extends Activity
{

/*
 * (non-Javadoc)
 *
 * @see android.app.Activity#onCreate(android.os.Bundle)
 */
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.alarmnotificationdetail);

Toast.makeText(this, "this is a toast", Toast.LENGTH_LONG);
}

}


Anyone can help me out ?

regards,
Mac




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: PNG Color Issue

2009-06-04 Thread Wang Mac
Do you mean "add noise" to the images?

I tried to add 0.5 noise to our image as the widget guide mentioned, but it
only makes the banding looks different.
It's not as good as enabling dither attribute.

I hope I can do "pre-ditering" so that I can save a little CPU power. Can
you advise how to do it correctly?

2009/5/20 Romain Guy 

>
> This happens because Android renders images using a 16 bits color
> depth, which causes banding in your case. You can reduce banding by
> enabling dithering on your drawing or better yet, by pre-dithering the
> image using Photoshop or any graphics editor that can do that.
>
> On Tue, May 19, 2009 at 2:25 AM, Tony Wu  wrote:
> >
> > Once I want to put the pictures in my application, I meet this
> > problem.
> > The color presented by Android device or emulator was different from
> > the original png files.
> > I made a simple application to present the two pictures in one page
> > and I fetch the picture as the following link:
> >
> >
> http://picasaweb.google.com/lh/photo/Rj5L_x_Z1IJGfGLmZV2B7g?feat=directlink
> >
> > And the following two links were the original png files:
> >
> >
> http://picasaweb.google.com/lh/photo/WJahLJ7uMRk2dA9GhYjs-Q?feat=directlink
> >
> http://picasaweb.google.com/lh/photo/0ddqAeWxd957SAVelwu_jA?feat=directlink
> >
> > Can anyone explain it for me why it presented in different color??
> >
> > By the way, the picture was made in 32bit colors png format.
> >
> > Thanks & Regards
> >
> > Tony
> >
> > >
> >
>
>
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them
>
> >
>

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



[android-developers] Re: Shared preferences not accessible in service

2009-03-03 Thread mac

Hi,

as I understand you can use the option MODE_WORLD_WRITEABLE in
getSharedPref to achieve this. I actually did not use this, because my
service runs in the same process.

Regards, Mirko

On 3 Mrz., 14:27, dar  wrote:
> See the Note on the 
> docs:http://developer.android.com/reference/android/content/SharedPreferen
> So, if your reader and writer are in the same process you are ok.  If
> they are in separate processes you have to find another way to keep
> them in sync until the sdk supports separate processes.
>
> On Mar 3, 7:19 am, Shadakshari Hiremath  wrote:
>
> > Hello Android,
>
> > We are using SharedPreferences(Not default preferences.) to store our
> > application related settings. These settings are not accessible in the
> > background service as the application context is different from
> > service context. It always returns the default values. We want to have
> > our own UI to manage settings. So, we don't want to use
> > PreferenceActivity.
>
> > Is there a way or hack to access SharedPreferences from inside a
> > service which are created by application?
>
> > BR,
> > Shaddu
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Think twice before turning on the "Copy Protection" option! -- there's a serious bug in Market

2009-02-26 Thread mac

That will be the same for my application. I startet with copy
protection in the first version. After some people were not able to
download the application (another bug with some APN?) I switched off
copy protection. Now I get crash reports that I can not understand
after an upgrade. Uninstall and reinstall works. And I got plenty of 1
star ratings for that. Arg

Mirko

On 23 Feb., 00:50, N4Spd  wrote:
> I'm been tracking down this exact issue with my app and it matches
> what "focuser" describes.
> I turned on copy protection on a free app.  People started getting
> crashes.
>
> The app starts with a help activity containing a webview.
> This web view is now throwing an exception trying to access a sqlite
> webview.db database on it's own thread and crashing.
> In addition, this help activity only starts up if there are no
> settings but even upgrades are getting this activity now.
>
> It problem extends to other android APIs as well because if I avoid
> the webview, it still crashes in other APIs.
>
> In summary, if you change copy protection for your app:
>
> 1. user preferences will be wiped
> 2. webview willcrash
> 3. other APIs willcrash
>
> Removing copy protection does not help because now I've got some users
> with and without copy protection and changes in either direction
> causes the problem.  Argh...
>
> rob
>
> On Feb 22, 9:55 am, focuser  wrote:
>
> > confirmed. If you first install an apk unlocked, and then install a
> > locked one, you will get that sqlite exception.  also, the old
> > preferences seems to be deletedafterthe locked apk is installed.
>
> > Another thing is, even installed locked from scratch (uninstall and
> > adb install -l), there are some problems with resources.  Our app
> > displays an HTML page when it starts, but now I get "Web page not
> > available:file:///android_asset/welcome.html ...".  This works fine
> > if it's installed unlocked.
> > This might explain the resource problem that I had before?
>
> > On Feb 22, 9:18 am, Carter  wrote:
>
> > > I can confirm that there is a bug with the "forward locking" on the
> > > Android Market.  The problem I've experienced is that users upgrading
> > > from an unlocked version of Locale to a locked version of Locale are
> > > experiencing acrashwhen opening the app.  The failure is that the
> > > app can'topenits ContentProvider (a call to
> > > SQLiteOpenHelper.getWritableDatabase() fails).  As an experiment, I
> > > tried wrapping the section in a try-catch and to use a newdatabase
> > >filename.  My thought was that the old sqlitefilemight be
> > > unreadable because of permissions or other problems.  This didn't work
> > > though.
>
> > > In your apps, you should be able to reproduce this bug by doing a
> > > plain old "adb install myapp.apk",openthe app on the phone, then do
> > > an "adb install -l -r myapp.apk".  The -l option enables forward-
> > > locking.  When you re-openthe app of the device, you should see the
> > > problem reproduce.  This problem also occurs both ways, so users who
> > > successfully installed the locked version of the app will see acrash
> > > if the next version of the app is unlocked.
>
> > > I've also contacted someone at Google about this, so we'll see what
> > > happens.
>
> > > On Feb 21, 4:43 pm, focuser  wrote:
>
> > > > There's no error whatsoever when that happens.  Apk was successfully
> > > > created and signed just as if everything was fine.  But when you
> > > > install and run the apk, you will see the errors.
>
> > > > I will try to see if I could reproduce the problem with a smaller code
> > > > base.
>
> > > > On Feb 21, 1:20 pm, Xavier Ducrohet  wrote:
>
> > > > > Hello,
>
> > > > > do you have an output from Ant when the error happens?
>
> > > > > Ant and Eclipse use mostly the same code to generate the apk, so I'm a
> > > > > bit surprised to see this.
>
> > > > > thanks
> > > > > Xav
>
> > > > > On Sat, Feb 21, 2009 at 9:51 AM, focuser  wrote:
>
> > > > > > On Feb 21, 8:42 am, "Mark Murphy"  wrote:
> > > > > >> 1. Why are you "still not able to use an ant script to automate the
> > > > > >> build&sign process"?
>
> > > > > >> 2. If you aren't able to do #1, how do you know it "triggers the 
> > > > > >> bug and
> > > > > >> gives you a corrupted apk"?
>
> > > > > > OK, to clarify: If the ant script is used to sign the apk, it might
> > > > > > produce a corrupted apk, i.e. throwing ClassCastException or
> > > > > > NullPointerException at some point.  This seems not happening all 
> > > > > > the
> > > > > > time though.  However, if I export an unsigned apk using Eclipse and
> > > > > > sign it manually on the exactly same source code, everything is 
> > > > > > fine.
> > > > > > So we had to give up using the ant script.
>
> > > > > > The only "fancy" thing we do in the build script is to copy an xml
> > > > > > that has the release Google Maps api key into res/values.  But I 
> > > > > > think
> > > > > > this should have no impact since the copy happens before c

[android-developers] Developing Image Processing Applications on Android OS using JAVA

2008-10-28 Thread Windows MAC User

How does one go about developing image processing applications on the
Android Operating system since this supports only JAVA development. I
have developed for Windows and MAC and both provide access (from their
Graphical User Interfaces) to bring/link in C/C++ functions which
modify images or video. Basically i would like to develop pattern
recognition puzzles on Android and its probably impossible to achieve
using only the JAVA language.

www.eyepuzzles.net

The pattern recognition puzzles found on the above website have been
ported to IPOD Touch / IPHONE and Windows Mobile 6 Smartphones both of
which support low level interfaces to C/C++ functions.

How can one achieve this using Android OS and JAVA.


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