Hi,
There are such words about FLAG_EXCLUDE_STOPPED_PACKAGES in 3.1's
release note:http://developer.android.com/sdk/android-3.1.html.
When neither or both of these flags is defined in an intent, the
default behavior is to include filters of stopped applications in the
list of potential targets.
Android 3.1 introduced two new Intent flag
FLAG_EXCLUDE_STOPPED_PACKAGESFLAG_INCLUDE_STOPPED_PACKAGES.
If user stopped my app by settings app and my app was expected to be
started by BOOT_COMPLETED Intent. BOOM!
My app will not start untill user click my app's shortcut.
So if my app include only
I do not see this problem. r u sure your app is up?
--
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
We noticed Samsung has released one addon for Nexus S but it is only
240 hdpi.
There is no way to test xhdpi with emulator?
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Hi,
We want test our app for xhdpi device and found no way to let emulator
to support xhdpi even by setting desnsity of avd to 320.
Have anybody had successful experience about it
Please share it.
Thanks.
James
--
You received this message because you are subscribed to the Google
Groups
Hi,
Do anybody know how to keep DDMS from capturing screen on App side?
We are developing an ebook reader and don't want anybody copy our book
as images.
James
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send
Hi,
We are developing e-book reader app and we do not like bad-people
capture screen by ddms to pirate our books.
We wonder whether there is a way to keep DDMS from capturing screen on
app side.
Thanks.
James
--
You received this message because you are subscribed to the Google
Groups Android
Hi,
Do anybody know how to keep DDMS from capturing screen on App side?
We are developing an ebook reader and don't want anybody copy our book
as images.
James
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send
We just found there is no such problem on 1.6. This bug was introduced
since 2.0.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send
After digging farther, I found this is a bug of WebTextView which is
used as a specialized version of EditText used by WebView. And it is
transparent and only redrawing when input is password according to
WebTextView.setInPassword.
Any google UI SE can shed some light on this problem?
James
Hi,
When input something in EditText by softkeyboard, the
--
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
Hi,
When input something in EditText of app, we can differ the inputted
and inputting text by underline before committing from softkeyboard.
But it is not true in html.
Is this a bug? And is there any work arround?
Best Regards
James
--
You received this message because you are subscribed to
Hi Dianne, thanks for your answer.
Can you tell us how to avoid this error if we have to put A and B in
the same process?
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
@TreKing
Thanks for your replies. We do have some reasons to call finish
because Android did not finish one when another is shown before it.
Probably, but with your code, not Android.
Document does not say finish is not allowed to be called at onStop.
How to explain there is no problem with
Platform library is a choice but I do not think it can be distributed
by Market.
--
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
We have two apks A and B which both import one platform library by use-
library in AndroidManifest.
And they have the same android:process so they run in the same
process.
When A is finished and B is started, we got ClassCastException which
happens like codes below:
CustomedView view =
We have two apks A and B.
A starts B at onBackPressed.
Doing as steps below can make ANR:
1)starts emulator and A;
2)put one finger on A and hold on it;
3)press ESC to do back key action and B is started;
4)release finger on B
ANR will happens if we call finish() at onStop. And if we call
Hi Dianne,
Thanks for your response.
I can understand two different classloader for different apks even who
are in the same process.
But check the codes below:
this.setContentView(R.layout.main);
CustomedView view = (CustomedView)findViewById(R.id.customedView);
I think there is nothing wrong
I found call System.exit(0) at A's onPause also can solve this problem.
--
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
Hi,
We developed two heavy apps, A,B.
A startActivity B and B comes back to A by startActivity too.
We record one flag in A's onStop to remember going to background and
restore that flag in onStart.
After switching between A and B rapidly, we found A's onStop often get
called by system later than
So what Thread's ContextClassLoader for?
--
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
Hi,
I newed a DexClassLoader to load one jar file dynamicly:
DexClassLoader cl = new DexClassLoader(my.jar,
getFilesDir().getAbsolutePath(),
null,
this.getClassLoader());
It is OK to loadClass and execute method with reflection like below:
Class?
Here is a similar discussion before.
http://groups.google.com.hk/group/android-developers/browse_thread/thread/3c12a6fb1a46e910/55f76d394266d675?q=#55f76d394266d675
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send
Thanks, Dianne. We have confirmed what you said.
--
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
We did more research on it.
Based on Pone app, we changed our app's AndroidManifest.xml with two
platform certificate and system shareuserid.
But our app is still killed when in background.
Can anybody tell me how to make our app persisitent really?
Thanks.
James
--
You received this message
Hi Dianne,
Would you shed some light on this topic?
Thanks.
James
--
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
Hi,
We set our application's persistent true to make our app run forever.
(We are making new device product)
However, we found our app was still got killed during background in
emulator.
Our apps are big mem consumers and I think system maybe kill any app
without checking persistent prop when
Hi Frank,
What you said sounds reasonable. But sdk reference tells us another
story.
Is the reference to persistent wrong?
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Thanks, YangJian.
What we want is to put all activities started by L stay in the same
task as L. So we have to set all activities`s taskAffinity the same
one.
For that reason, Single Task is not for what we want, because it is
goint to make A as root of that task which is L in fact.
Thanks,
Dianne, You are right.
We did want to make an activity like launcher.
In fact, our product is more complicated than what I said above.
Below is the real plan:
1)We made an activity as the launcher L;
2)A tells L to start B;
3)B does something and tells L starts A again.
L,A,B have the same
Hi,
I have a problem about taskAffinity of Activity.
Activities A and B with the same taskAffinity.
A starts B with FLAG_ACTIVITY_NEW_TASK and the B starts A with
FLAG_ACTIVITY_NEW_TASK again.
Dumpsys activity of system gives us task stack like below:
TOP- A
B
A
According to
Can anybody help 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
We have one html page whose backgroud is an image(1024px*600px) with
no-repeat.
We displayed it in Browser rightly on 1.6 HVGA(160) and WVGA(240)
emulator and scrollbar displaed on both sides.
But we got different result when testing on 2.1 HVGA(160) and
WVGA(240) emulator.
On 2.1 HVGA(160), the
Hi Dianne, would you be kind to take a look at my problem?
Thanks.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
First, If you did sign your app twice with differect key, the second
time installation is supposed to be failed.
But the fact is not. Have you tested with key password changing back?
If you found the first installed app was replaced, I think you get
cause.
--
You received this message because
Thanks, Murphy.
This can not make our customer happy.
1. They want only footer is invisible, not half screen.
2. when scrolling to the EditText at bottom, not all of it is visible.
We wonder if there is any event that notifies IME coming out.
James
--
You received this message because you are
Hi,
My customer want soft keyboard can overlap the footer(menu bar) of
window when showing up.
We noticed soft keyboard squeeze the foreground window to smaller size
when showing up. So we overrided onSizeChanged and set footer which is
in linearlayout and below one webview to be GONE.
But we got
Hi,
I wonder whether developer can customize activity rotation animation
in 2.1 when orientation changed.
Can SDK do such thing?
Best Regards
James
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
I know ime developer can create his own setting activity which will be
displayed in Settings apk.
I wonder whether there is a common way to interate any settings
activity into Settings apk.
Best Regards
James
--
You received this message because you are subscribed to the Google
Groups Android
3ks.
--
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,
add commands like below in build/target/product/sdk:
PRODUCT_COPY_FILES += \
$(proprietary)/libaudioeq.so:system/lib/libaudioeq.so
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
You should ask this question on android-porting because multiple user
is not supported by sdk.
--
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
I think Not unregisterReceiver is no harm to system because power
down.
I believe the foreground activity's onDestroy will be called. As for
others, there seems be no assurance.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this
Sorry, how about SQLiteDatabase.rowQuery?
--
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
Please download android source and study packages/apps/Launcher
--
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
I this it is there on purpose. Because you have made one IME and it
can record user inputs.
However, I did not take look at the android source.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
I do not believe Android call BroadcastReceiver.onReceive
synchronously.
--
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
For what?
--
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
You mean supporting more than one user account like windows?
--
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
AFAIK, you can not do it without making your own firmware. Because
Phone App has deep connection with framework.
You should ask this question on android-porting.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send
I believe you have to change the value of /projectDescription/name
of .project file to make your two projects have different names.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
You should take a look at SQLiteDatabase.execSQL.
--
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
I am not much sure gclog.py is only available for linux.
Maybe you can try installing python on withows and playing with it.
However, linux is recommended.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
I do not think you can do it with SDK and you should ask this question
on android-porting
--
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
First, r u sure your Android project is runnable?
Second, r u sure you have add instrument permission in
AndroidManifest.xml?
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
gclog.py (http://bigflake.com/gclog.py.txt) is recommended by
fadden( Google engineer) many times for android developers.
You can not find the same function in DDMS.
By gclog.py, you will know what exactly native heap size, vm heap size
and when memory leak happens.
Please read this thread
I think you should ask this one on android-porting.
--
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
No. It is depend on system.
--
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
My suggestion is to use gclog.py to monitor vm heap and native heap.
Then analysis hprof with MAT to find the leak point.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
@mycall
#1.
The below code mean that every applications on VM start with 2Mb heap
size. correct.?
=Yes
And If I want to change initial heap size for every application, I can
do it directly. correct.?
=Yes
And according to comment, we can pass argument for heap size but in
fact there is no way to
You can do nothing on this subject with sdk.
I think you should go for some help on android porting.
--
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
Have you read this one
http://developer.android.com/resources/articles/avoiding-memory-leaks.html?
--
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
Please read
https://groups.google.com/group/android-porting/browse_thread/thread/a22a9bf2d67013ac/6ffc46ab049a45a4?lnk=gstq=heap+limit#6ffc46ab049a45a4
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
how did you do?
--
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
you have been here!
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For
I do not think you can make it with SDK, even Hint2.
--
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
use ViewGroup.bringChildToFront and invalide please.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
you can find all kinds android os rom and install reference on
forum.xda-developers.com.
Or you can read this http://developer.htc.com/google-io-device.html.
Be careful about your magic, it is very easy to be bricked if you do
not know much about burn rom!
--
You received this message because
What r u going to do?
To limit your app's heap size?
if so, I think you can not get it done without building android
source.
You can find what you want on android-porting.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this
What kind of BroadcastReceiver?
I think you have to do it by creating, registering and unregister your
broadcastreceiver in your activity. And define your activity as member
of broadcastreceiver.
--
You received this message because you are subscribed to the Google
Groups Android Developers
startActivity(HOME) when clicking hide button.
--
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
My suggestion is to do as what Supporting multiple screens -
Resource directory qualifiers for screen size and density of dev
guards says.
If you sure to support WQVGA400, you should make specific layout and
drawable resource for it.
--
You received this message because you are subscribed to the
I have three activities:MyFirstActivity(click)-MyActivity(timer)-
MyNextActivity.
And I noticed Timer cause MyActivity memory leak when digging through
hprof in Eclipse.
Below is my codes:
public class MyActivity extends Activity {
private Timer timer = new Timer();
protected void
I think you can do anything with Framelayout like absolutelayout.
--
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
Pre-scale resource should be depend on density of screen, not
resolution.
--
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
My suggestion is create your own content provider for this and open db
in onCreate and hold it as static.
--
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
I found another resolution for my problem.
If I create an index for orderbyed column, my problem will get gone.
After reading some docs about sqlite, it seems that using index to
order by will remove the necessary of creating journal file.
So I think creating index is a better solution.
--
We noticed some devices(not android's) support such feature:black out
screen and turn bright when someone touches it.
Our custom want us to simulate such function with android.
We trid to set WindowManager.LayoutParams.screenBrightness to make
screen dark enough but still knowing touch motion but
According to http://developer.android.com/intl/fr/guide/topics/ui/themes.html
you should do it after super.onCreate.
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
...
setTheme(android.R.style.Theme_Light);
I think your design can not deal with phone rotation.
When phone got rotated, the input can not be reserved.
--
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
After digging further, I got it.
This disk I/O error is caused because the default size(4m) of
sqlite_stmt_journals partition is too small for our query.
If I changed init.rc to make big size partition(8m), 4000 rows data
can be selected without any error.
So I wonder what is the best solution
I did have the same experience before. I think 1G is not enough and
your disk should be good enough.
--
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
Thanks Romain!
--
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
Thanks Murphy, Jens!
We are using one contentprovider two share all data amount many apps.
In fact, we are developing contentprovider as the bridge between apps
and database, sound like JDBC. Switching to a remote service sounds
like a option but we don't think it is good design that exposing one
Thanks Romain!
We are developing apps on Donut.
Next time, I will search android's bugs before asking here.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To
Hi, Romain.
I searched http://code.google.com/p/android and found nothing about
this bug. So I guess this bug is not reported by external people.
BTW, Dev Tool -show screen update should be not reliable if what we
found is a bug. And Dev Tool-show screen has been fixed, too?
If not, I guess I
This topic is moved from plateform.
Below is stack trace:
E/DatabaseUtils( 260): Writing exception to parcel
E/DatabaseUtils( 260): android.database.sqlite.SQLiteDiskIOException:
disk I/O error
E/DatabaseUtils( 260): at
android.database.sqlite.SQLiteQuery.native_fill_window(Native
Hi, Dianne
Can you shed some light on this topic?
Any words will be appreciated.
James
--
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
Hi,
We want to add below update sql into our contentprovider:
update tableName
set column1 = column1 + 1
where column1 = 50
We found current update of contentprovider does not support it, which
would not recognize the column1 of column1 + 1 as column name.
So we have to add execSQL method
I recommend you develop your app in Eclipse and build it under android
source.
--
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
but i find out
if my app(a simple HelloWorld) is built by mydroid (i.e. using
Android.mk)
it always complains permission denied
=what's mean built by mydroid? you mean build under android source?
can you paste some logcat?
--
You received this message because you are subscribed to the
Hi
We are using TextView's Ellipsize function to scrolling text in it and
there many other controls in our window.
We noticed CPU would go up to 50% if text started scrolling. After
digging deeper, we found all controls in our layout kept drawing when
texts scrolling. We wonder why? And how to
Below is our test project:
public class AndroidTest extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
LinearLayout ll = new LinearLayout(this);
Hi
We do junit test with emma coverage report successfully but with only
one annoying problem.
R file was included in coverage report and make the report statics
less than our expected.
I find out that emmrun of emma seems be the solution but do not know
how to be used with Android.
So can
Hi,
SDK reference says If this attribute is set to true,
onSaveInstanceState() may not be called and onCreate() will be passed
null instead of the Bundle — just as it was when the activity started
for the first time.
I verified it is not true. No matter what value I set stateNotNeeded,
install it and you also need a file browser app.
Open pdf in file browser app and apdfviewer will be brought out.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To
we wonder when this **may** will happen?
--
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
How can we change the created z-order on-the-fly?
setting WindowManager.LayoutParams.type works when creating window but
not works after creating.
James
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Maybe I should post it to porting group.
--
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
We are developing a ContentProvider which is supposed to serve for
specified packages. So we want to get the caller package name. Is
there any way to achieve that?
Thanks in advanced.
James
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
1 - 100 of 133 matches
Mail list logo