Hi Guys,
I have different background threads in my application, one doing periodical
database updates, another responsible for doing long searches and so.
Obviously some are just reading from database while others are writing as
well.
Once in a while I get database is locked exception. I need
I forgot to mention that this exception happens (so far) from the service I
have for updating database (is executed every 24 hours).
Cheersss,
Armond
Hi Guys,
I have different background threads in my application, one doing
periodical
database updates, another responsible for doing long
i am trying to draw a custom progress bar (horizontal).
I have this xml --
?xml version=1.0 encoding=UTF-8?
layer-list xmlns:android=http://schemas.android.com/apk/res/
android
item android:id=@+android:id/background
android:drawable=@drawable/progress_background/
item
how do I specify different images for an ImageButton when the state
changes (i.e. pressed).
ImageButton android:id=@+id/Btn1
android:layout_width=wrap_content
android:layout_height=wrap_content
android:src=@drawable/btn1
I would like have a ToggleButton with different images for the checked
and unchecked states.
ToggleButton android:id=@+id/Btn1
android:layout_width=wrap_content
android:layout_height=wrap_content
android:src=@drawable/btn1
I am experimenting with orientation sensor, register it like this:
SesnorManager sensor_manager = (SensorManager)getSystemService
(Context.SENSOR_SERVICE);
Sensor sensor_orientation = sensor_manager.getSensorList
(SensorManager.SENSOR_ORIENTATION).get(0);
hey,
i am reopening this issue as it is now becoming a high-priority
one for our team.
we have developed a shared library jar according to the sample:
.. I run it on G1.
On Aug 23, 10:14 am, olko y.olkho...@gmail.com wrote:
I am experimenting with orientation sensor, register it like this:
SesnorManager sensor_manager = (SensorManager)getSystemService
(Context.SENSOR_SERVICE);
Sensor sensor_orientation = sensor_manager.getSensorList
Can i fake a call into a real deivce as i can do with the emulator.
When i debug my program on my real device, the Telephony Actions of
DDMS is disabled and i can't fake a call anymore.
Thanks
--~--~-~--~~~---~--~~
You received this message because you are
Activity wich started service must get obtained data service for
update ui.
I think that the first options best suited. Please provide an example
for the first option. Thanks.
On 21 авг, 21:01, Mark Murphy mmur...@commonsware.com wrote:
Abdula wrote:
Need service wich retrive data by http and
Well you could flush the stream each time, wouldn't that be similar
with creating a new formatter? I used to do something similar when
reading from files etc.
On Aug 23, 1:18 am, Rud rudmerr...@gmail.com wrote:
Rather wasteful on a platform like Android. Are there any other
options other than
.. Ok, that should have been Sensor.TYPE_ORIENTATION i.s.o. deprecated
SensorManager.SENSOR_ORIENTATION:
Sensor sensor_orientation = sensor_manager.getDefaultSensor
(Sensor.TYPE_ORIENTATION);
Now the event.values[] look like degrees but they never changes, e.g
event.values[0] is always just
I guess you are trying to perform manipulations on a byte[]. Just use
decodeStream(...) or decodeFile(...) instead. Cathing runtime errors
is plain wrong.
On Aug 23, 2:45 am, Bob bshumsk...@yahoo.com wrote:
Hi,
I am getting an outofmemory error (java.lang.outofmememoryerror) from
a
Hi,
I am trying to create animation that moves an image.
Lets have a look at following (like image locations on screen):
01 02
03 04
If I move from 01 to 02, 03 to 04, 01 to 03, 02 to 04,
TranslateAnimation works fine.
But when I do 01 to 04 (or 02 to 03) I will have no visual animation,
Hi Dianne,
Thanks. I tried adb shell top -t command, and here is the result:
PID TID CPU% S VSS RSS UID Thread Proc
578 784 83% R 191676K 23200K system er$SensorThread
system_server
788 788 8% R948K412K root top top
And according
.. solution is here: http://mysticlakesoftware.blogspot.com/ - cloning
event.values[] does work.
On Aug 23, 11:01 am, olko y.olkho...@gmail.com wrote:
.. Ok, that should have been Sensor.TYPE_ORIENTATION i.s.o. deprecated
SensorManager.SENSOR_ORIENTATION:
Sensor sensor_orientation =
My Application need to perform a database search when the user change
the text in an EditText view.
I need a method like onChange to allow me to know when the text in the
EditText changed.
How can I detect a change in the EditText view?
Thanks,
I think I found it:
etSearch.addTextChangedListener(new TextWatcher() {
public void afterTextChanged (Editable s){
Log.d(seachScreen, afterTextChanged);
}
public void beforeTextChanged
hello everyone!
i try to custom a button like ZoomControls, which has left round
corners and fliker when click.
i extend the LinearLayout with two ImageButtons, and set the
imagebutton with transparent background. However, when click on the
button, the button doesn't flicker again.
Hi All ,
I have started a thread from one Activity and then i have started
another activit from parent Activity . Now my Parrent Activity is in
pause state .
but what will happen to thread that I have started from parrent . I
belive it will continuenot going in sleep state
any
Hi, how can we download a file from server using ftp? How can we use
android's download manager manually to download ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group,
Not sure what you mean by area name but the process you're referring
to is called reverse geocoding.
-John Coryat
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send
try this one:
final Geocoder geoCoder = new Geocoder(context, Locale.getDefault());
ListAddress addresses = geoCoder.getFromLocation(latitude, longitude,
numResults);
-Marc
On Sun, Aug 23, 2009 at 1:33 PM, Honest honestsucc...@gmail.com wrote:
Hello,
Can some one tell me how can i get area
Hi,
i was able to play around with the resource on a different apk and get them
using createPackageContext as you suggested.
here is an example of the code:
otherAppContext =
this.createPackageContext(com.android.demo.notepad2,Context.CONTEXT_INCLUDE_CODE
+ Context.CONTEXT_IGNORE_SECURITY);
int
Hi Kabir,
if you mean how do you catch these events and change the layout this could
help:
http://www.devx.com/wireless/Article/40792/1954
On Sun, Aug 23, 2009 at 1:27 AM, kabir kab...@gmail.com wrote:
Hi,
I have an activity which I have defined to keep in portrait position.
However I
I don't believe there is any way to do that from an application. From a
desktop, you can use the aapt dump commands to find out about the contents
of the .apk.
On Sun, Aug 23, 2009 at 8:15 AM, Spektor Yaron spekt...@gmail.com wrote:
Hi,
i was able to play around with the resource on a
I am confused. According to above, There is no Bluetooth API in the
SDK at this time, yet Android does offer:
Stereo Bluetooth support (A2DP and AVCRP profiles) (http://
developer.android.com/sdk/android-1.5-highlights.html)
Is there no API for use with the A2DP or AVCRP profiles?
thanks,
Depends...
In general, it's no good catching Errors. But I'm using this
particular error to see if i have enough memory for creating a full-
sized bitmap (no other way of doing this). If not, i catch the
outofmemoryerror and will use a smaller sized bitmap.
On Aug 23, 5:02 am, alex
Riz
Try this.
holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
mMediaPlayer.setScreenOnWhilePlaying(true);
On Aug 20, 8:02 pm, riz rizcs...@gmail.com wrote:
when I try to createmediaPlayerthrough Create(Context,Resource_ID)
(rest of the codr remain same)it played the audio of the
Thanks
On Aug 22, 11:27 pm, kabir kab...@gmail.com wrote:
Hi,
I have an activity which I have defined to keep in portrait position.
However I would still like to change things (slightly) when the screen
is rotated, what is the best way of doing this?
I notice onConfigurationChanged is
Hi Stefano, I know you already say this in your site, but just to be extra
clear -- the code here is accessing private APIs, so we make no guarantees
about it working in future versions of the platform. There is a very good
chance that applications using it will break at a platform update.
On
Hi John,
Excellent! Connceptually, that's exactly what I was looking for. I
will probably need to make some changes to the code but it's a great
start.
Thank you.
Alex Donnini
On Aug 22, 2:10 pm, Maps.Huge.Info (Maps API Guru)
cor...@gmail.com wrote:
This example using a Google map may be
I am trying to write the contents of the bitmap without doing a
compress on it for a format, as I am facing somme problems in quality
while formatting.
I am using thte below code but its not working,
ByteBuffer bf = ByteBuffer.allocate(IMAGE_WIDTH*IMAGE_HEIGHT*4);
Bitmap bmToSave = ... // the bitmap you want to save
int height = ... // height of bitmap
int width = ... // width of bitmap
int[] bmData = new int[TMP_BUFFER_SIZE]; // holds the ARGB data for
pixels of bmToSave
int heightChunk = ... // number of pixel-rows of bmToSave that will
fit into the
Hi guys,
I just got back from holidays :)
this is the hack
@Override
public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
InputConnection ic = super.onCreateInputConnection(outAttrs);
InputConnectionWrapper icw = new InputConnectionWrapper(ic, false) {
I've coded this too in my first app (EmailAlbum Viewer) which displays
pictures contained in archives that are received by email, for
example.
If someone receive pictures which are too large for the app memory, I
prefer catching the error and display an informative message to the
user rather
I could think of to extend the framework code for doing this. If you
are only interested in receiving the call related intents on SDK level
you could modify the framework in a way that you could trigger these
events manually.
--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick
If possible, it is better to add an appropriate watcher/filter on the text
view, and do your specialization as a result of the text being modified.
This will work for both hard keys and soft edits.
On Sun, Aug 23, 2009 at 12:05 PM, Hazam emanuele.disave...@gmail.comwrote:
Hi guys,
I just got
Hi thanks for the reply,
I've set an onClickListener and it's only parameter is View. The
problem is don't know how to translate that information back to a
useful identifier. I can't use getID ecause the buttons are all
created from the same XML layout so they have the same ID. The only
unique
Hi,
i know it is done somehow by other applications (for example adding new
skins to an existing application w/o knowing the name of the layout ahead of
time)
what am i missing here. is this not the way to do it?
should i copy all resources to the file system and read them from there?
would that
Yes, the thread will continue to run. That Activity's OnPause() will
get called. So if you want the thread to stop then put in a flag
boolean that the thread can check, and set the flag in the Activities
OnPause() callback.
-niko
--~--~-~--~~~---~--~~
You
Hi, there is no built in functionality to do this. What you have to do
is switch the images yourself in the button's onClick handler. Check
for if the button was pressed or released in that handler, and then
you can use SetImageResource() or such to swap the image that is begin
displayed.
-niko
Hi, try calling Invalidate() on the View after switching the images.
You'll have to do all drawing yourself.
-niko
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group,
Hi again,
just to verify that i am explaining myself correctly. my code takes all the
relevant apk's based on the intent filter and wants to take all the
resources from the \layout to later be able to inflate them.
i get the package name (e.g.,com.android.demo.notepad2) from the returned
I'm not sure what this has to do with skinning. I don't know of any
applications that scan for different resources for a skin; rather, you
create a skin by replacing the existing (layout, drawable, etc) resource
with a different one.
On Sun, Aug 23, 2009 at 2:18 PM, Spektor Yaron
Sorry but this just isn't something we have APIs for right now. I don't
recall anyone wanting to do this kind of thing before, so it hasn't been
high on our priority list.
Note that layout etc at the resource level are not really folder names --
they are just symbolic names for the part of the
Thanks Dianne, i appreciate your help.
firstly i am not even sure how to do the single skin version you suggested,
unless i state that the resources names must not change which is something i
am not eager to do.
secondly, i was thinking (in terms of skins) to allow multiple skins at
once. so the
Hi!
You don't have to use the ZoomControls class, if you need just a
simple zoom in/out built-in function.
Use this simple method.
mapView.setBuiltInZoomControls(true);
try~!
On Jun 30, 7:01 pm, tstanly tsai.sta...@gmail.com wrote:
it's a stupid question...
there are a ZoomControl widget
Thanks again Dianne,
i don't think your solution will do as i also need to know which class i am
in (i need to know that 0x7f02 is a drawable and that 0x7f03 is a
layout).
Is it possible to get the information i need through the AssetManager? any
way to hack into the binary data structure?
Hi all,
Any news about submission site?
Please, if anybody knows something from official sources just let us know.
Thanks,
Darío
On Fri, Aug 21, 2009 at 15:19, Jack Ha jack...@t-mobile.com wrote:
Check this link:
http://www.meetup.com/svandroid/messages/7262249/
--
Jack Ha
Open Source
thanks for your suggestion!
but i don't quite understand your meaning, you mean the flicker of the
button when click on should be implemented by myself with two images
switching, because the default background has been set to transparent?
thanks for your kind!
On Aug 24, 6:25 am, niko20
Hi Mark,
Thanks for your reply.. I actually meant the home key and the End call
button on the device. For home key i have found a solution at
PhoneWindowManager.java @framework Any idea about the End call
button??
Thanks.
On Aug 22, 4:03 am, Mark Murphy mmur...@commonsware.com wrote:
You cannot disabled these keys from an application.
On Sun, Aug 23, 2009 at 6:53 PM, Shang Haosahilz...@gmail.com wrote:
Hi Mark,
Thanks for your reply.. I actually meant the home key and the End call
button on the device. For home key i have found a solution at
PhoneWindowManager.java
Please unsubscribe 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
If your write time take long i would try this
I would create another in memory database, attach it to yours.
In memory database table would have same schema.
You would write to in memory database and after done do insert into
db1.table as select * from db2.table
I did something similar but on
I am using ActivityInstrumentationTestCase2 to do some test for an
activity.
I get a button in the setUp() method like this:
protected void setUp() throws Exception {
super.setUp();
act = getActivity();
btn = (Button)act.findViewById( R.id.bike_button );
Please read the signature at the bottom of every message explaining how to
unsubscribe!
On Sun, Aug 23, 2009 at 10:02 PM, Hristo Yordanov me4ta...@gmail.comwrote:
Please unsubscribe me!
--~--~-~--~~~---~--~~
You received this message because you are
in your res/drawable folder, put an xml that contains (sample.xml):
?xml version=1.0 encoding=utf-8?
selector xmlns:android=http://schemas.android.com/apk/res/android;
item android:state_focused=true android:state_pressed=false
android:drawable=@drawable/focused /
item
Hi Roman,
Accepted that I cannot play around with these keys from apps...But
there must be a way somewhere where they must be getting handledi
just need to broadcast and make these keys handling ineffective/
effective Can u help me with the files which i should be looking
for
Resources.getResourcePackageName(), Resources.getResourceTypeName(), and
Resources.getResourceEntryName() return the names associated with a resource
ID. And by convention, you will get the type name layout for layout
resources, drawable for drawable, etc... however, this is only a
convention,
I'm sorry, I thought you were just bringing up skins as an example. The
platform currently doesn't support skinning, and when/if it ever does, it
will be done very differently than what you are describing here (rather
would probably be something like the approach I was describing before). If
you
Hi,
I have a question about adding a threshold images into bitmap images, can
this be possible with the Android SDK, if not can anyone here generate the
Algorithm for that to add threshold to images.
Thank You,
Abdul Mateen.
--~--~-~--~~~---~--~~
You received this
You already said it, PhoneWindowManager is what handles the keys.
On Sun, Aug 23, 2009 at 9:53 PM, Shang Hao sahilz...@gmail.com wrote:
Hi Roman,
Accepted that I cannot play around with these keys from apps...But
there must be a way somewhere where they must be getting handledi
just
Hi Shang,
You can use END_BUTTON_BEHAVIOR setting in Settings.System.
Android Developers
http://developer.android.com/reference/android/provider/Settings.System.html#END_BUTTON_BEHAVIOR
What happens when the user presses the end call button if they're not on
a call.
Values:
0 - The end button
Hi all,
I am facing a strange problem. I have 2 activities. The Second activity
having the theme.Dialog (set in manifest). when I launched the second
activity from first activity via startActivityforResult(). The Second
activity is not Visible. When i minimize it launched it again then its
Hi ,
can anyone from Google let us know the exact date of submission of
ADC2 Applications. or Google is extending date . I m very much curious
about it . please let us know.
Thanks
Rizwan
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Hi,
That is near the end of Q3 now. Does anyone know whether there will be a
new list of Countries for selling priced applications in Android Market?
--
Regards,
Michael Leung
http://www.itblogs.info
http://www.michaelleung.info
--~--~-~--~~~---~--~~
You
67 matches
Mail list logo