[android-developers] Caused by: java.util.zip.ZipException: duplicate entry: META-INF/versions/9/module-info.class

2021-05-31 Thread Abhishek Kumar Gupta
To package all dependencies of my Library into .aar file, I have used https://github.com/kezong/fat-aar-android (version 1.3.6) and I am able to see all dependencies in libs folder of .aar file (checked by extracting it). But when I used resulting .aar file in sample project, I am getting

[android-developers] How to pause/resume video recording using MediaCodec and MediaMuxar

2014-10-22 Thread Abhishek Kumar Gupta
http://stackoverflow.com/questions/26484949/how-to-pause-resume-video-recording-using-mediacodec?noredirect=1# Actually I want to implement pause/resume feature for recording video. I have taken the code from CameraCaptureActivity of Grafika( https://github.com/google/grafika) and able to

[android-developers] how to make video from frames data (byte array) received from onPreviewFrame() on Android 4.0+ (API 14+)

2014-09-30 Thread Abhishek Kumar Gupta
Actually I want to implement pause/resume functionality while recording video but MediaRecorder does not support it. Because of that, I want to make a video file from frames data (byte array) received from onPreviewFrame(). Is it possible to achieve on Android 4.0+ (API 14+) versions? Please

[android-developers] Re: How can save CameraDevice onPreviewFrame to Video file?

2014-09-29 Thread Abhishek Kumar Gupta
Hi, I am also facing same issue. Have you got the solution? If yes, then please share. On Monday, 25 June 2012 11:29:33 UTC+5:30, apaladin wrote: Hi i want device camera preview to video file not using Mediarecorder. i know onPreviewFrame data is YUV data and success just save bitmap .

[android-developers] how to pause/resume while recording video ?

2014-09-25 Thread Abhishek Kumar Gupta
I am able to record video with the help of MediaRecorder. I want to implement pause/resume functionality while recording video. MediaRecorder is not having any method for pause/resume. Is it possible to implement it? Please guide me. Any help or guidance will be well appreciated. -- You

[android-developers] Geofence not working over 3G/WiFi in Android 4.4+(KitKat) versions

2014-07-29 Thread Abhishek Kumar Gupta
In Android 4.4+ versions, I am not able to add/remove geofence over 3G/WiFi. Every time I am getting 1000 as a status code which means error. When I am enabling GPS(it doesn't matter whether GPS is fixed or not), everything works fine but accompanied with the problem of battery drain. Is there

[android-developers] How to open .ifc file in an activity?

2014-01-15 Thread Abhishek Kumar Gupta
I want to open a .ifc file in an activity. Is it possible to open? -- 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] Re: How to open .ifc file in an activity?

2014-01-15 Thread Abhishek Kumar Gupta
I am able to get the read the data from .ifc file in the form text with the help of below code: InputStream XmlFileInputStream = getResources().openRawResource(R.raw.sample); // getting IFC String sIfc = readTextFile(XmlFileInputStream); public String readTextFile(InputStream

[android-developers] Re: How to open .ifc file in an activity?

2014-01-15 Thread Abhishek Kumar Gupta
I am able to read the data from .ifc file in the form of text with the help of below code: InputStream XmlFileInputStream = getResources(). openRawResource(R.raw.sample); // getting IFC String sIfc = readTextFile(XmlFileInputStream); public String readTextFile(InputStream inputStream)

[android-developers] In JellyBean(from Android 4.1 to 4.3), how to get notify which SMS got read from phone(android native sms client) if multiple unread SMS are present in phone(android native sms cl

2013-10-23 Thread Abhishek Kumar Gupta
Currently I am using *ContentObserver* in my application which is observing Native SMS URI (content://sms/) but *onChange*(context, uri) method is * NOT* invoked when user *read SMS* from Android Native SMS Client. I have tested on Google Nexus 4 (Android 4.3) and Samsung Galaxy S3 (Android

[android-developers] onChange method of ContentObserver not called when SMS message is read on Android

2013-10-11 Thread Abhishek Kumar Gupta
For incoming SMS, *onChange()* method of *ContentObserver* called but when SMS message is read it is not called. Actually I need to update the read/unread status of SMS in my app based on the status of that particular SMS on phone(native). Any help or guidance will be well appreciated. --

[android-developers] How to get notified about the call reception at receiver side in Android

2013-09-17 Thread Abhishek Kumar Gupta
Hi All, I want to exit(close) my application, when user at receiver side drop(or abort the call after reception). Is it possible to achieve? I have tried by registering for *android.intent.action.NEW_OUTGOING_CALL* and *android.intent.action.PHONE_STATE* event s for outgoing call but none of

[android-developers] Re: How to get the connection state of the Bluetooth Low Energy Profile?

2012-10-24 Thread Abhishek Kumar Gupta
Hi Bob, thanks for the reply. But public int *getProfileConnectionState* (int profile) is for Bluetooth Classic Devices only, not for Bluetooth Low Energy Devices. On Tuesday, 23 October 2012 18:18:08 UTC+5:30, Abhishek Kumar Gupta wrote: I want to know the connection state of the Bluetooth

[android-developers] How to get the connection state of the Bluetooth Low Energy Profile?

2012-10-23 Thread Abhishek Kumar Gupta
I want to know the connection state of the Bluetooth Low Energy Profile. Is there any method to get it? Please 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

[android-developers] Re: How to remove(clear) shared preferences of one application from other application?

2012-09-08 Thread Abhishek Kumar Gupta
of that checkBoxPreference from *App A*. ) By observing different posts on forums, it looks like that it is not possible with SharedPreferences. Can you suggest any way do it? On Friday, 7 September 2012 16:31:37 UTC+5:30, Abhishek Kumar Gupta wrote: I want to remove(clear) the sharedpreferences

[android-developers] Re: How to remove(clear) shared preferences of one application from other application?

2012-09-08 Thread Abhishek Kumar Gupta
Hi TreKing, Thanks for the idea, it sounds good. I will try it. On Friday, 7 September 2012 16:31:37 UTC+5:30, Abhishek Kumar Gupta wrote: I want to remove(clear) the sharedpreferences of one application from other application. I have tried the following code in the other application

[android-developers] How to remove(clear) shared preferences of one application from other application?

2012-09-07 Thread Abhishek Kumar Gupta
I want to remove(clear) the sharedpreferences of one application from other application. I have tried the following code in the other application to remove preferences of application having package com.android.blesettings: Context context =

[android-developers] Re: How to remove(clear) shared preferences of one application from other application?

2012-09-07 Thread Abhishek Kumar Gupta
. On Friday, 7 September 2012 16:31:37 UTC+5:30, Abhishek Kumar Gupta wrote: I want to remove(clear) the sharedpreferences of one application from other application. I have tried the following code in the other application to remove preferences of application having package

[android-developers] How to run animation on Custom LockScreen during booting of the device?

2012-07-31 Thread Abhishek Kumar Gupta
I have created a lock screen for ICS and it is placed in the frameworks and I can open applications using this. For the user effects I have started an animation when the lock screen is displayed. When I boot/reboot the device, animation appears after 2-3 seconds of delay. Currently, I am

[android-developers] Is there any way to make focus one of the ImageView in GridView by default?

2012-07-18 Thread Abhishek Kumar Gupta
I want first ImageView(in GridView) to be focused by default when I launch the application. I have tried 1). *setSelection(0) *on instance of GridView 2). setFocusableInTouchMode(true) on paricular ImageView in getView() of Adapter that I have used to inflate the GridView. but none of

[android-developers] Re: Is there any way to make focus one of the ImageView in GridView by default?

2012-07-18 Thread Abhishek Kumar Gupta
Is there any other way except importing GridView.java from frameworks and customise it ? On Wednesday, 18 July 2012 15:59:11 UTC+5:30, Abhishek Kumar Gupta wrote: I want first ImageView(in GridView) to be focused by default when I launch the application. I have tried 1). *setSelection

[android-developers] What is the function of Intent.ACTION_PRE_BOOT_COMPLETED?

2012-07-05 Thread Abhishek Kumar Gupta
Hi all, I want to know the exact functionality of Intent.ACTION_PRE_BOOT_COMPLETED. Currently, my requirement is to complete the task before the completion of booting of the device i.e. before the call of Intent.ACTION_BOOT_COMPLETED. Can anyone guide me on how to proceed to fulfil the

[android-developers] Re: How to change shortcut icons dynamically on home screen in Android ?

2012-03-20 Thread Abhishek Kumar Gupta
Hi TreKing, Thanks for the reply. I am able to change the shortcut icon of application only when I am moving the application from launcher screen to home screen( i.e. when I am creating the shortcut icon of application). But, my requirement is to change the icon of existing shortcut of

[android-developers] Re: How to change shortcut icons dynamically on home screen in Android ?

2012-03-13 Thread Abhishek Kumar Gupta
Can we do this by modifying *Launcher2* application of ICS source? if yes, then please provide some reference. Any help in this regard will be well appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] How to change shortcut icons dynamically on home screen in Android ?

2012-03-08 Thread Abhishek Kumar Gupta
How we can change the shortcut icon of application dynamically on Homescreen? For instance, if user wants to change the shortcut icon of Browser application. Is it possible? if yes, then please give some reference. Any help in this regard will be well appreciated. -- You received this

[android-developers] How to create a theme creator application(similar to Go Launcher Theme Maker) for android?

2012-02-14 Thread Abhishek Kumar Gupta
I want to develop theme maker just similar to the Go Launcher Theme Maker( http://www.goforandroid.com/GDTEn/soft.aspx?softid=21nav=2) for Android. Is anybody aware how Go Launcher is creating the .apk file after creating a new theme. Can any one guide me how to proceed? Any help in this regard

[android-developers] Re: How to create .apk file without using Eclipse.

2012-02-14 Thread Abhishek Kumar Gupta
Hi Kira Qian, Firstly, thanks for the reply. I want to create Theme Creator application(PC based) just similar to the Go Launcher Theme Maker( http://www.goforandroid.com/GDTEn/soft.aspx?softid=21nav=2 ) for android. Do you know anything how they are generating the .apk file after creating a

[android-developers] How to create .apk file without using Eclipse.

2012-02-13 Thread Abhishek Kumar Gupta
I want to develop Theme Creator application for Android, so I want to create .apk file after making theme. Can anyone help me how to proceed ? Any help in this regard will be well appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] how to include another listview below the default listview( created with ListFragment) in Android

2012-02-08 Thread Abhishek Kumar Gupta
Is it possible to include another listview below default listview( created by extending ListFragment)? If possible then please give some reference. Any help in this regard will be well appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] How to create multiple ListViews with fragments in Android

2012-02-08 Thread Abhishek Kumar Gupta
Actually I want to create three listviews with the help of fragments. Is it possible? if possible then please give some reference. Any help in this regard will be well appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] How to get PIN2 code programmatically?

2012-01-04 Thread Abhishek Kumar Gupta
Actually I want to compare the user input number with the PIN2 code of SIM. Any help in this regard will be well appreciated. -- 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] How to resolve this error 'Failure [INSTALL_FAILED_DEXOPT]' during coping .apk to device

2011-12-20 Thread Abhishek Kumar Gupta
When I am trying to install .apk file to device, it is showing 'Failure [INSTALL_FAILED_DEXOPT]' . I have used the *./adb install -r ClockWidget.apk * in the platform-tools of the Android SDK in terminal. This .*apk* with .* odex* is generated(corresponging to the particular Application) after

[android-developers] Re: How can I write a regular expression for this in android?

2011-12-15 Thread Abhishek Kumar Gupta
For String sss1 = (+91)-1-231-212 12-31; Currently my code is searching for *1-231-2*, but it should search for * 1-212.* -- 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 can I write a regular expression for this in android?

2011-12-15 Thread Abhishek Kumar Gupta
Hi Carlos Silva, Thanks for reply. For String sss1 = (+91)-1-231-212 12-31; Currently my code is searching for *1-231-2*, but it should search for * 1-212.* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] What are ideal parameters for the width height of the layout of widget?

2011-12-01 Thread Abhishek Kumar Gupta
In the case of Widget, if I use RelativeLayout as the main layout, then what will be the best parameters for layout_width layout_height i.e. whether I have to use match_parent or wrap_content? Please help me. If the question is below standard then sorry for that. -- You received this message

[android-developers] After building into the ICS(Icecream Sandwich) Emulator, size of the widget appears in home-screen is different as compared to the size of the widget installed on the home-screen

2011-11-25 Thread Abhishek Kumar Gupta
Actually, I want to include a widget by default in home-screen. I got the widget in home-screen(after building ICS source), but I have observed that the size of the widget is smaller as compared to the size of the widget that I have installed from Widgets screen. How can I make size of

[android-developers] Can we implement “DigitalClock” widget by using separate images for each number?

2011-11-22 Thread Abhishek Kumar Gupta
Actually I want to implement the DigitalClock widget by using separate images for each number. e.g.:- For time - *01:23*, I have to use separate image for '0', '1', '2, '3'. Is it possible? If possible, then please provide some reference to implement it. Any help in this regard will be well

[android-developers] Re: Can we implement “DigitalClock” widget by using separate images for each number?

2011-11-22 Thread Abhishek Kumar Gupta
Actually, I have to include Digital minutes inside the dial of the AnalogClock widget. Currently I have implemented Digital minutes with the help of textview updating the textview with updateAppWidget(). But I want to display Digital minutes with separate image for each digit. -- You

[android-developers] Re: How to include the Digital Clock below the Analog Clock(as a Single Widget)

2011-11-15 Thread Abhishek Kumar Gupta
Sir, Thanks for reply. Actually I want to include Digital minutes inside the dial of the analog clock in the Analog Clock Widget. I have to use whole assembly as a App. Widget, is it possible? -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Clock widget with second hand

2011-11-14 Thread Abhishek Kumar Gupta
Hi All, Can anyone suggest me on how to add a second hand to the clock widget and rotate it continuously? Thanks in advance. -- 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: Clock widget with second hand

2011-11-14 Thread Abhishek Kumar Gupta
Yes. I understand that app widgets are updated every 30 min. But isn't there any way to do ? I want to have a seconds hand in the analog clock widget. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] How to include the Digital Clock below the Analog Clock(as a Single Widget)

2011-11-14 Thread Abhishek Kumar Gupta
I want to include the Digital minutes below the Analog Clock(as a Single Widget). May I have to modify AnalogClock.java(in frameworks) to include the Digital Clock functionality? Please help me. -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] how to copy email-id as a contact from phone memory to SIM

2011-08-08 Thread Abhishek Kumar Gupta
I just want to copy Email-Id as a contact from phone-memory to SIM. Is it possible to add Email-Id as a contact to SIM. If possible then please provide related reference. Any help in this regard will be well appreciated. -- You received this message because you are subscribed to the Google

[android-developers] Re: how to copy email-id as a contact from phone memory to SIM

2011-08-08 Thread Abhishek Kumar Gupta
private static final Uri SIM_CONTENT_URI = Uri.parse(content://icc/adn); ContentResolver cr=getContentResolver(); Cursor cursor = cr.query(SIM_CONTENT_URI, null, null, null, null); ContentValues cv = new ContentValues(); cv.put(tag, ABHISHEK); Uri uri =

Re: [android-developers] How to include Button in Context Menu

2011-08-02 Thread Abhishek Kumar Gupta
Actually I want to close the conext-menu by clicking on the Cancel button, which I want to place at the bottom of the context-menu. On Sun, Jul 31, 2011 at 9:51 AM, TreKing treking...@gmail.com wrote: On Sat, Jul 30, 2011 at 5:04 AM, Abhishek Kumar Gupta akgaec2...@gmail.com wrote: Thanks

[android-developers] how to disable long-click( long press ) in listview( want only short click to display context menu )

2011-08-01 Thread Abhishek Kumar Gupta
I want to disable the long-click( long press ) in listview, I want to use only short click to display context menu. Any help in this regard will be well appreciated. Please help me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] How to include Button in Context Menu

2011-07-30 Thread Abhishek Kumar Gupta
I am a newbie. I just want to include Button(like OK/CANCEL) in Context Menu. Can anyone help me. Any help will be well appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] How to include Button in Context Menu

2011-07-30 Thread Abhishek Kumar Gupta
Thanks for reply, then I have to use Alert Dialog with customized List Adapter only. Is there any other alternative? -- 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] How to know the SIM Operator information before LauncherProvider.java execute ( in Gingerbread)

2011-06-09 Thread Abhishek Kumar Gupta
How to know the SIM Operator information before the loadfavorities() method in LauncherProvider.java execute( /home/abhishek/gingerbread/ packages/apps/Launcher2/src/com/android/launcher2/LauncherProvider ) , so that I can use SIM Operator information. Currently, I am using *Thread.sleep(5000)*

[android-developers] how to place widget by default on homescreen

2011-05-31 Thread Abhishek Kumar Gupta
I am a newbie, I want to place a widget by default on homescreen i.e., when we switch-on the phone(or emulator) that particular widget should display on the homescreen. Please help me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Toast for Non-activity class

2011-05-26 Thread Abhishek Kumar Gupta
I want to display the Toast for Non-activity class which is present in the framework(framework/base/policy). Please 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] Using lunch master without the GUI. No such file: generic-eng. error during building of code

2011-05-18 Thread Abhishek Kumar Gupta
When I have given the build command ./build/envsetup.sh, everything is fine but when I have given lunch generic-eng command the following error appeared i.e. Using lunch master without the GUI. No such file: generic-eng. -- You received this message because you are subscribed to the Google

[android-developers] change the name of the applications on that screen which appears on clicking Launcher Icon on Home Screen

2011-04-06 Thread Abhishek Kumar Gupta
How to change the name of the applications on that screen which appears on clicking *Launcher* Icon on Home Screen in Android according to the language selected in Settings(Settings-Language Keyboard) of Phone? In other words, if we make application Abhishek select French language in

[android-developers] want to change the language in screen which appears on clicking Launcher Icon on the Home Screen

2011-04-06 Thread Abhishek Kumar Gupta
I have change the language in the Settings of the Phone(e.g. french), language change is reflected in every screen except that screen which contains(shows) all the installed applications(i.e. screen which appears on clicking Launcher Icon on the Home Screen) *but *when I closed the