Hi All,
I was going through the recent developer blog at
http://android-developers.blogspot.in/2016/02/marshmallow-and-user-data.html.
Consequently, I have also checked best practices for device identifier at
I'm writing an social networking app on Android (for ICS). I haven't found
any content uri for user profile stream items like there are for both
``Contacts`` and ``RawContacts``.
I'm able to **write** social stream for user profile into streamItems table
with its raw_contactd, but using the
Hi All,
I am trying to implement gestures on a listview in android 4.0.3. This
list view is a part of ListFragment. I have defined gestureoverlayview
in the fragment's xml as follows,
LinearLayout
xmlns:android=http://schemas.android.com/apk/res/android;
android:id=@+id/list_layout
Hi all,
I am developing a social Networking application and it works fine over
WiFi but tried the same over GPRS it gives following Exception,
08-17 13:55:05.406: WARN/System.err(4233):
java.net.SocketTimeoutException: Socket is not connected
08-17 13:55:05.406: WARN/System.err(4233): at
Hi all,
In my application, I have two activities with Launcher as a catagory
and added an icon to each of them. So I can launch my application from
any of this activity, thus there are two entry points to my
application.
Now, the task created by 1st activity is not killed when pressing the
home
Hi all,
In my application, I have two activities with Launcher as a catagory
and added an icon to each of them. So I can launch my application from
any of this activity, thus there are two entry points to my
application.
Now, the task created by 1st activity is not killed when pressing the
home
Hi TreKing,
Thanks for your reply.
I tried to set same taskaffinity for both the activity but application
failed to launch at that time.
So it didn't work. Any other idea?
Thanks,
Asif
On Jun 8, 5:26 am, TreKing treking...@gmail.com wrote:
On Mon, Jun 7, 2010 at 9:19 AM, Asif k asifk1
Hi All,
I have kept the title bar in my application. But I have also given
an option in the menu to invisible title bar. If someone clicks that
menu option then my application need to restart and clear all the
activities from the task.
For time being, I had thrown an unhandled exception
());
DataInputStream? osRes = new DataInputStream?
(process.getInputStream()); for (String single : commands) {
os.writeBytes(single + \n); os.flush(); res.add(osRes.readLine());
} os.writeBytes(exit\n); os.flush(); process.waitFor();
Any idea..
Please help...
Asif
On Feb 4, 6:23 pm, Asif k asifk1
try with,
Process process = Runtime.getRuntime.exec(/sbin/ping);
Thanks,
asif
On Feb 9, 9:51 am, android beginner android.beginne...@gmail.com
wrote:
Hi,
We are migrating ncurses based application on our linux target platform into
Android based ones.
We have one application(parent) which
= Runtime.getRuntime.exec(/data/local/hello.sh);
Can anyone please help me on this
Thanks,
Asif
On Feb 4, 11:39 am, Asif k asifk1...@gmail.com wrote:
Hi all,
I am running a shell script stored in the device from android
application by creating instance of Process class.
But my script
Hi all,
I am running a shell script stored in the device from android
application by creating instance of Process class.
But my script has commands which will be executed only in su mode.
any idea how to accomplish this?
Thanks,
Asif
--
You received this message because you are subscribed
.
On Tue, Feb 2, 2010 at 6:58 PM, Asif k asifk1...@gmail.com wrote:
Hi all,
I am configuring wifi on my android based board using shell script.
Now I want to execute the same script from android application. For
that, I had used following code, but it didn't give any success till
now,
I
objects / 1968
bytes in 43ms
Thanks,
Asif
On Feb 2, 3:33 pm, Asif k asifk1...@gmail.com wrote:
which permission??
Can you please elaborate on this?
In the logcat, I am not getting much specific information.
Thanks,
Asif
On Feb 2, 3:10 pm, android beginner android.beginne...@gmail.com
wrote
on the emulator at runtime.
On Feb 2, 5:35 am, Asif k asifk1...@gmail.com wrote:
same script I kept in the ubuntu desktop file system and executed with
the normal java code and work nicely... with same APIs
In the android application with same APIs when executing same script
by putting
Hi all,
I am configuring wifi on my android based board using shell script.
Now I want to execute the same script from android application. For
that, I had used following code, but it didn't give any success till
now,
I had executed same script from adb shell prompt and it works
nicely.
Hi all,
I want a fix Cancel Button at the bottom of the ListView. I want
my list View to be scrollable and fix Button at Bottom.
I had added the Button at the bottom of the list with addFooterView
(button); but if list is longer than the screen, then we have to
scroll down to get the button
Hi justinh,
Thanks for your reply.
Is that the package name you have defined in your Manifest for the
package attribute?
yess thats the package name that is there in manifest file. I am
finding the package name from the main activity as shown bellow ,
String pkg = demo.test.MyActivity;
Hi all,
Can I have any working example of restartPackage() API.
Thanks in advance,
Asif
On Dec 9, 2:56 pm, Asif k asifk1...@gmail.com wrote:
Hi justinh,
Thanks for your reply.
Is that the package name you have defined in your Manifest for the
package attribute?
yess thats
??
On Dec 9, 3:02 pm, Asif k asifk1...@gmail.com wrote:
Hi all,
Can I have any working example of restartPackage() API.
Thanks in advance,
Asif
On Dec 9, 2:56 pm, Asif k asifk1...@gmail.com wrote:
Hi justinh,
Thanks for your reply.
Is that the package name you have defined in your
Hi All,
I want to kill my application whose base activity is
demo.test.MyActivity.
I am trying to kill it from other application by following code, but
getting the error like package name is not valid
am.restartPackage(demo.test); // here am is ActivityManager define
earlier )
Thanks,
Hi All,
I want to kill some tasks that I got through
ActivityManager.RunningTaskInfo class. Is there any API available for
that ? or Can you please suugest some approach to achieve that?
I checked task.baseActivity but there is no finish() API here.
Thanks,
Asif
--
You received this
Hi all,
I want to configure WiFi on my android based board. But in my case I
am getting the name of active SSID withing the network from the
desktop client so I have to configure the board with the same SSID.
I have searched the APIs available in WiFiManager class and only
possible solution
Same command I had copied and pasted in my command prompt and one avd
is created successfully. So please check the sdk that u had
downloaded.
Check with android list target in command prompt that what
target_id : 2.
Thanks,
Asif
On Nov 15, 7:20 pm, Onnlist onnl...@gmail.com wrote:
Hello All,
Hi all,
I want to change the shape of Button from rectangle to triangle in
my Activity. Is it possible? Is there any API available for this?
Thanks,
Asif
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups
Hi all,
Is there any H/W independent USB deriver is available for android
OS to connect any android based device to single desktop like
microsoft Active Sync ?
I had tried the USB driver provided with the sdk on windows system
but it is not recognizing my beagle board on which android is
Hi all,
I had placed a cancel button in my subactivity, I want to finish the
application when this button is pressed.
Simply putting finish() API when cancel button is clicked bring me
back to parent activity, means it is just killing the subactivity.
I had also tried with implementing
Hi All,
I am adding the drawble image xyz.png in the ImageView. But the
problem is that the whole image cannot included in the view.
by reducing layout height and weight also results in just cropping
the image. I had also tried with Adjust View Bounds but no
improvement.
Is there any
Hi all,
i want to keep cancel button in the title bar at the right side, for
that I had used following code,
window.requestFeature(Window.FEATURE_RIGHT_ICON);
window.setFeatureDrawableResource(Window.FEATURE_RIGHT_ICON,
R.drawable.cancel);
but i am getting the icon at the left side of title
Hi all,
I am getting null pointer exception at the bellow mentioned line in
the for loop.
char[] buffer= {'s','d','c'};
char[] test;
for(int i=0; buffer[i]!='\n';i++) {
test[i] = buffer[i]; //This line gives Null pointer
Exception at runtime
}
I am getting the same error in
Hi all,
I am receiving Text messages from another application sent through
broadcast intent. I am displaying these messages to my application's
GUI.
In my application I had defined broadcast receiver in my
manifest.xml
Hi all,
I have downloaded the code successfully using repo sync on my
linux system and now I want to buld it using make but it fails and
telling that
frameworks/policies/base/PolicyConfig.mk:22:*** No module defined
for
the given PRODUCT_POLICY (android.policy_phone) . stop.
So can
Hi all,
I am downloading android source code from android site :
http://source.android.com/download
I am following the steps mentioned in the above site and my host
system is redhat linux.
After initial steps when I had started installing repo using following
command , I got error : unable to
Hi all,
Is android supports the terminating the phone call programmatically
using either intent or any APi ?
If not now then can we see one of the above in the future sdks??
Regards,
Asif
--~--~-~--~~~---~--~~
You received this message because you are
Hi,
Is there any way to send String messages from the parent Activity
(running on B/g) to the subActivity (currently running) ??
SubActivity is invoked using intent and startActivity(intent);
I want to open EditBox(sub activity) using this method and then update
this editBox according to
Hi all,
I had opened an image file store in the sdcard using startActivity
(intent) API.
By doing this, image has opened and will remain open til manually
coming back to parent activity by pressing back button. but I want it
to be opened only for some perticular time after that it should
Hi all,
In the DDMS, I had used FileExplorer and visited /data/app folder
to see the .apk files installed in the emulator. After that I had
minimized the data folder and thus stopped that process.
But I am observing that this /data/app folder is opening again and
again automatically. I
Hi all,
I had used DexClassLoader to execute the code of other application
dynamically. I am calling method display() of another application from
my application. The display() method will just show the Toast pop up.
The following is the code of my running application
DexClassLoader dLoader
Hi all,
I the android site, in the application fundamentals, it is written
that,
A central feature of Android is that one application can make use of
elements of other applications (provided those applications permit
it). For example, if your application needs to display a scrolling
list of
Hi all,
I want to run two different android applications in the single
process to access the resources. For that purpose, I had made
following two changes in the manifest file of both the application ,
I had override two attributes and
1) android:sharedUserId= hii.hello under manifest tag
Hi all,
I want to invoke musicplayer.apk(this .apk I have already created
and working fine) application from my current application
programmatically. Can anyone please suggest me how to export
musicplayer.apk and the steps to accomplish this task?
Please help. Thanks in advance.
Hi all,
I want to play a mp3 file which is stored in the /sdcard/ using
ACTION_VIEW intent and I used following code to accomplish that, but I
got ActivityNotFound Exception..
Intent intent = new Intent(android.content.Intent.ACTION_VIEW);
Uri data =
Hi all,
During the processing of the background thread, I want to create
another GUI window (of b/g thread) which will overlap the main UI
thread and show b/g processing and this window will be killed when b/g
thread will be over.
Can anyone suggest how to accomplish this task?? Thanks in
Hi all,
Is there anyway to block the UI Thread till the .mp3 file completes
(or in general blocking UI thread till perticular action in the b/g
thread completes). I had used following code but not got the expected
result.
synchronized void playFile() {
mp.start();
try {
this.wait();
}
Hi,
I'm trying to use a ConditionVariable to control the execution
sequence of two threads. I can create a ConditionVariable in one
thread and block on it. But I would like to be able to access it from
another Thread and unblock it from that thread.. ?
Blocked Thread i am planning to keep
Hi all,
I am calling a method of another .apk file dynamically at runtime
in my application. I can execute it successfully if method does not
contain any variable which is defined outside of that method.
But if I am using the variables which are defined outside that
method ( in the same
Hi,
I want to ask to google engineers that whether future sdk releases
will provide any C\C++ support for application developement?? If no..
then Can you please tell me the disadvantage of these languages??
As per my knowledge and experience, runtime environment is not
needed to execute
Hi all,
In the android reference site, it is written in the
serCursorVisible section that cursor is visible by default and you can
give its value as either true or false to change the its visibility
on the GUI screen.
But in my case , cursor is remaining invisible irrespective of
setting
Hi all,
I want to display the status of the activity execution on the
screen using the TextView while activity is executing. I am appending
the String messages at different stages of execution in the TextView,
which is defined in the Layout main.xml (e.g. TextView.append(Server
Hi all,
Can anyone please provide some information regarding the reflection
API DexclassLoader, which will be includeed in cupcake release?? In
the latest development of the cupcake, whether this feature is added
or still to be done??
I f already included then any reference which will
Hi all,
Is it possible to launch adb commands programatically from any
android application?
For e.g. installing .apk file to /data/app/ directory from another
android application using some APIs??
regardz,
Asif
--~--~-~--~~~---~--~~
You received this message
at
runtime?? I want to call a function from the .jar file, which will be
decided at runtime.
Thanks in advance.
Regards,
Asif Kadiwala
On Mar 19, 11:02 am, Dianne Hackborn hack...@android.com wrote:
On Wed, Mar 18, 2009 at 10:18 PM, Asif k asifk1...@gmail.com wrote:
Security will be one concern
directory.
On Wed, Mar 18, 2009 at 11:15 PM, Asif k asifk1...@gmail.com wrote:
Hi Dianne,
Yes you are right, But Is there any way to store over .jar file in
the app's data directory. Because I am working on emulator and I can
store any file there.
Please tell the way I can store
your files on the sd card to insert their own code
into your app and run under your identity. Then any malicious things they
do with your app's permissions are the fault of your app.
On Wed, Mar 18, 2009 at 4:39 PM, fadden fad...@android.com wrote:
On Mar 18, 7:29 am, Asif k asifk1
Hi all,
The is working fine if I use this Socket server also as Desktop
application. But it creates a problem at FIleOutputStream in the
android application.
Please reply
On Mar 10, 10:13 am, Asif k asifk1...@gmail.com wrote:
Hi all,
I am running android server application which
Hi all,
I want to configure IP address of the emulator and to set the
network redirection ports for the socket communication.
For that I had followed the steps as per android.developer.com/
emulator guides. But could not succeed in that.
Can you plz tell me what will be the default
Hi all,
using socket communication we can send messeges. But is there any
way to transfer files using Socket Communication between desktop and
Android phone If yess where can we store it??
--~--~-~--~~~---~--~~
You received this message because you are
include all the activities in manifest
use following code
Intent i = new Intent(Context.this, New activity.class);
startActivity(i);
this code will divert you to New Activity
On Feb 13, 1:18 pm, bigauto chidragon1...@gmail.com wrote:
It seems that finish() ends a activity, but I'm not sure if
Hi Mariano,
Can you please tell us what is the final result
and how u had implement those API to run your code
Thanks,
Asif
On Jan 12, 12:21 am, Mariano Kamp mariano.k...@gmail.com wrote:
Once again, thanks.
I found this
Hi Xav,
Thans a lot. I got it.
On Jan 9, 1:14 pm, Xavier Ducrohet x...@google.com wrote:
Window Show View Other...
Then you'll find it under Android.
You can also reset the whole perspective (Window Reset Perspective)
Xav
On Thu, Jan 8, 2009 at 10:19 PM, Asif k asifk1...@gmail.com
??
Please reply ASAP.
thanks,
Asif
On Jan 8, 1:25 pm, A R amit.r...@gmail.com wrote:
check putExtra method in Intent Class
Regards,
Amit.
On Jan 8, 12:37 pm, Asif k asifk1...@gmail.com wrote:
Hi all,
In an application I am switching between HomeApp.java activity to
ListApp.java
().getStringExtra
(android_giude.AndroidView.hello);
there are severla getExtra methods for retrieving different types
of data.
On Jan 8, 10:18 am, Asif k asifk1...@gmail.com wrote:
Hi Amit,
Thanks for ur reply
I had Used it like following ,
Intent filelist = new Intent
Hi All,
I had closed the file-explorer window in the DDMS of eclipse by
mistake. But now I am not able to find the options anywhere in DDMS to
restore it again so file-explorer of an emulator gone in my DDMS.But
it is needed.
Can anyone tell me how can I restore it again?
Thanks,
Asif.
Hi all,
In an application I am switching between HomeApp.java activity to
ListApp.java activity
using following code :
Intent filelist = new Intent(this, ListApp.class);
startActivity(filelist);
Other than just switching , how can I pass some data( e.g. String
name,
Hi all,
Is it possible to use commandline arguments in Android ??
If yes then how ?? Please guide me.
Thanks in advance
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this
Hi All,
Can you lpease tell me what is the use of
android.content.Intent.ACTION_RUN intent???
can we run any other application using it??
In the android site, this intent is not explained properly.
On Jan 6, 5:39 pm, Mark Murphy mmur...@commonsware.com wrote:
Asif k wrote
Hi All,
I have downloaded one application from adroidgear.com and
application is not given in the form of simple source code or .apk
file
but given a folder which contains
1) META-INF
2)res
3)android-manifest.xml
4)resources.arsc
5)classes.dex
even I cant see the conents of
Hi All,
I got the solution.Thanks.
I had just push that zip file with
adb install abc.zip
On Dec 17, 3:38 pm, Asif k asifk1...@gmail.com wrote:
Hi All,
I have downloaded one application from adroidgear.com and
application is not given in the form of simple source code or .apk
file
=android.intent.action.VIEW data=file:///sdcard/1.txt. Sorry
if that's obvious, but does your manifest have a filter for that
action, which specifies the activity to handle that?
On Nov 20, 12:19 am, Asif k [EMAIL PROTECTED] wrote:
Hi All,
I am working on file explorer application in which I cannot
How can we override back softkkey fuctions of emulator in over
application so that this key also can be used for going back to parent
screen.
we can use onKeyDown function but what can be the key code??
--~--~-~--~~~---~--~~
You received this message because you
Hi All,
Thanks again for ur help But Still issues.
I have deleted sdcard,.image file in my desktop and close the
emulator.
Then I had created the sdcard image again from starting but in the
debug configuration when I gave -sdcard path of image file and
pressed debug. error message came that
.
You might get more help if you post the exact commands you are using for
this.
Ludwig
2008/11/19 Asif k [EMAIL PROTECTED]
Hi All,
Thanks again for ur help But Still issues.
I have deleted sdcard,.image file in my desktop and close the
emulator.
Then I had created the sdcard image
, Asif k [EMAIL PROTECTED] wrote:
Hi All,
I am trying to push the 1.txt file from my desktop C:/ to android /
sdcard/ folder using following command.
adb push C:\1.txt /sdcard/asif.txt
but getting following error :
failed to copy 'C:\1.txt' to '/sdcard/asif': Read-only file system
Hi All,
I got the answer for that.no need to reply.
Thanks
Asif
On Nov 19, 4:02 pm, Asif k [EMAIL PROTECTED] wrote:
How can we override back softkkey fuctions of emulator in over
application so that this key also can be used for going back to parent
screen.
we can use onKeyDown function
:33 -0800 (PST), Asif k [EMAIL PROTECTED]
wrote:
Hi All,
I am trying to push the 1.txt file from my desktop C:/ to android /
sdcard/ folder using following command.
adb push C:\1.txt /sdcard/asif.txt
but getting following error :
failed to copy 'C:\1.txt' to '/sdcard/asif': Read-only
Hi All,
I am working on file explorer application in which I cannot open any
file.I am using following code to open the file which I got from
anddev.org.
OnClickListener okButtonListener = new OnClickListener(){
// @Override
public void
Hi OC ,
thanks for ur inputs.
I am still getting the same exception.
Can you please clarify how you set the array and modification done in
filebrowser.java ??
On Oct 16, 4:29 pm, OC [EMAIL PROTECTED] wrote:
Hello.
Ok, my English is not so good, but I'll try my best.
You'll have to
Hi All,
I am trying to push the 1.txt file from my desktop C:/ to android /
sdcard/ folder using following command.
adb push C:\1.txt /sdcard/asif.txt
but getting following error :
failed to copy 'C:\1.txt' to '/sdcard/asif': Read-only file system.
Can anyone please tell me waht is the
78 matches
Mail list logo