[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 st

[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

[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: >

[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")

[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

[android-developers] Re: AutoCompleteTextView and a ContentProvider

2011-03-17 Thread mac-systems
ta 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  wrot

[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 > > AutoComple

[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] 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-syste

[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 [android-developers] Disable dictionary on softkeyboard ?
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 messa

[android-developers] Styles and Background

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

[android-developers] How to align SurfaceView on Bottom ?

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_c

[android-developers] Wrong Position when using Big Images

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 Versi

[android-developers] Re: Anyone has expereiences in developing an audio visualizer?!

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

[android-developers] Re: am trying to start my service on device boot up.

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

[android-developers] How to respekt volume preferences ?

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.

[android-developers] Re: BufferedInputStream buffer size

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 FileI

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

using HttpClient its easy: final HttpResponse response = getHTTPClient().execute(httpGet); if (Logging.isLoggingEnabled()) { final StatusLine status = response.getStatusLine(); Log.d(LOG_TAG, "Response

[android-developers] Best Way to detect online connection ?

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) _con

[android-developers] Re: Alarms after an update ?

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

[android-developers] Re: Alarms after an update ?

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+u

[android-developers] Audio Output pending ?

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

[android-developers] Re: Alarms after an update ?

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

[android-developers] Re: Alarms after an update ?

ms 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 invoke

[android-developers] Alarms after an update ?

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 androi

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

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 t

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

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.

[android-developers] Unmarshal Parcleable in Broadcast Reviever

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 al

[android-developers] Interpolators and how to repeat endless

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 messag

[android-developers] Re: ubuntu 10.04 emulator not launching

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

[android-developers] Re: UncaughtExceptionHandler not called ?

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) * * @se

[android-developers] UncaughtExceptionHandler not called ?

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()); M

[android-developers] Re: Cancel Alarms / Filtering

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

[android-developers] Re: Cancel Alarms / Filtering

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

[android-developers] Cancel Alarms / Filtering

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 voi

[android-developers] How long Service#onDestroy is allowed to run ?

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 onDest

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

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

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

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(), _

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

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 Datab

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

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"

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

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 gro

[android-developers] Invoking Activity from PendingIntent in NotificationManager

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) get