Android : Recording Into Direct ByteBuffer With Offset

Feb 13, 2010

Is there a way to capture the audio using AudioRecord or any other API into a Direct ByteBuffer created using ByteBuffer.allocatedirect call with an offset?

From the documentation it is not clear that at which offset, calling the following method, will place the data: audiorecord.read(directbytebuffer, size);

Android : Recording into Direct ByteBuffer with offset


Android :: Recording Direct System Audio?

Nov 9, 2009

Im trying to record audio directly from the system. Using the standard API, you can only record from the MIC or phonecalls, ala: MediaRecorder.Some ways I've tried is to read from /dev/audio and /dev/eac from my app, but I think the sandbox of the app is preventing this.Im thinking about using the NDK, but Im not sure if that would overcome the sandbox aspect ? Ideally, there is some solution outthere to access the audio sub- system directly. Whether it be directly to alsa, to the AudioFlinger, to /dev/eac

View 16 Replies View Related

Android : Way To Send An Image To Servlet As A ByteBuffer?

Sep 20, 2010

I am attempting to have my android phone connect to my servlet and send it a certain image. The way I figured I would do this, is to use the copyPixelsToBuffer() function and then attempt to send this to the servlet through some output stream(similar to how I would do it in a normal stand alone java application). Will this way work? If so, what kind of stream do I use exactly? Should I just use DataOutputStream..

View 1 Replies View Related

Android :: Customize Icons For Direct Message - Direct Dial?

Jul 5, 2010

I am looking to customize my icons for direct message direct dial, to the best of my knowledge better cut can do this, however i have heard it is not compatible with launcher pro beta that i use, so does anyone know what it is compatible with? also what size do i need to make my icons and what format do i save them in?

View 1 Replies View Related

Android :: Offset Shape Within ShapeDrawable

Sep 9, 2010

I'm trying to draw a rounded rectangle with a border around it using a class that extends ShapeDrawable (see here) and everything is working except that the shapedrawable seems to be cutting off some of the border because the shape itself doesn't extend outside those bounds. Is there not some way to offset where the shapedrawable starts drawing so that there is some padding between the bounds of the shape itself and the canvas? I have tried both ShapeDrawable.setBounds to larger than the intrinsic size of the shape and ShapeDrawable.setPadding but don't seem to be getting anywhere. Should I be subclassing Drawable instead?

View 1 Replies View Related

Android :: How To Set HorizontalScrollView's Initial Offset?

Jun 22, 2009

I searched the groups to find a topic about setting horizontal scroll view's offset, but no results. Some topics talked about ScrollView, and they are not expected. Here is my question: I have a HorizontalScrollView, with LinearLayout as its child, the LinearLayout contains a custom view, I finished the onDraw method of the custom view to draw something which is longer than the screen's horizontal size, so I think HorizontalScrollView is the right widget that I need. But I do not want to display the left-most part of my custom view, such as a calendar, I can display the last week and next week in the custom view, but what I want to put in the center of the scroll view is today. So, I wonder how I should set the initial offset of the HorizontalScrollView?

View 2 Replies View Related

Android :: How To Center An ImageView And Then Offset It To The Left Or Right

Jul 16, 2010

I have two Image Views that are two football helmets facing each other. I'm wanting to center them and then offset them left/right a little to provide a little space between them. Here is one of the image view's xml at the moment.

CODE:...............

I was trying to offset it using [android:layout_marginLeft="25px"] however I'm guessing that's not working for me because of the [android:scaleType="centerInside"].

View 1 Replies View Related

Android :: Glbuffersubdata With An Offset Into Buffer Without Causing Garbage

Aug 1, 2010

I'm trying to update part of a VBO with a call to glBufferSubData(). When I update from the start (0) of my existing shadow buffer, there is no problem, as the buffer starts reading from 0. The following will read 0 to y from the buffer and place it at 0 to y in the VBO: gl.glBufferSubData(GL11.GL_ARRAY_BUFFER, 0, y, mPositionBuffer);

However, if I want to update a portion of the VBO (not from 0) I run into a problem; The following doesn't work, since it will write the values from the start of the buffer (0 to y) into position x to x+y of the VBO:........................

View 1 Replies View Related

Android :: SAX Is Getting Called Multiple Times With Same Data But Offset

Oct 27, 2010

I am trying to parse an xml file using SAX with Android and the problem is that the function characters(...) is getting called multiple times with what appears to be the same data just offset by a few characters.

As you can tell from the output below the first time it gets called with " alabama" and the second time it gets called with "labama". I am not sure as to why it is doing this but if anyone could help that would be awesome.

10-27 23:04:47.033: DEBUG/LocationHandler(10299):
10-27 23:04:49.000: DEBUG/LocationHandler(10299): alabama
10-27 23:04:51.835: DEBUG/LocationHandler(10299): labama
10-27 23:04:52.129: DEBUG/LocationHandler(10299): labama
10-27 23:04:52.408: DEBUG/LocationHandler(10299): labama
10-27 23:04:52.519: DEBUG/LocationHandler(10299): ub_dir_name
10-27 23:04:52.649: DEBUG/LocationHandler(10299): ub_dir_name
10-27 23:04:52.809: DEBUG/LocationHandler(10299): ub_dir_name
10-27 23:04:52.989: DEBUG/LocationHandler(10299): ile_name.kml
10-27 23:04:53.158: DEBUG/LocationHandler(10299): ile_name.kml
10-27 23:04:53.358: DEBUG/LocationHandler(10299): le_name.kml
10-27 23:04:53.529: DEBUG/LocationHandler(10299): le_name.kml
10-27 23:04:53.698: DEBUG/LocationHandler(10299): le_name.kml
Code...

View 1 Replies View Related

General :: Error / Random Offset / 0x175 When Installing ICS Rom

Mar 1, 2013

I have struggled to build successfully ICS Rom ( ASOP), but it's still not done. Now I have a error,

Installing update...
Random offset: 0x175
E:error in /sdcard/......
(status 0)
Installation aborted.

Update: I tried to wipe all and flashes again but it gave me another error: 0x188 or 0x133....

View 1 Replies View Related

Android :: Direct Tv Application?

Nov 10, 2009

Anyone hear of and app for the Droid like the one for the iphone that attaches to ur direct tv account?? this is the only app i really miss from my iphone

View 30 Replies View Related

Android :: Direct Search Shortcut?

May 31, 2010

I recently installed LauncherPro on my Droid and am trying to make use of the additional home screen space. One thing I would like to do is create a on-click shortcut to search for nearby hardware stores (I'm a contractor and sometimes need to pickup task-specific materials). I could swear there used to be a shortcut available called "Direct Search" or something like that, that would do just what I'm looking for, but I don't see it when I try to add a shortcut to the home screen. Did this used to exist, or was it just my imagination? Is there anything like it now? I know I could make a bookmark in the browser and place a shortcut to the bookmark on the home screen, but I was hoping for the results to come up in Google Maps.

View 2 Replies View Related

Android :: Bug In IntBuffer.put() When Using Direct Buffers

Jun 16, 2009

In a process of switching from indirect to direct buffers for OpenGL geometry specification I've found a problem with the following function in java.nio.IntBuffer class: IntBuffer put(int[] src, int off, int len) this function is supposed to do a bulk transfer of int data from the given array starting at the specified offset. It should be an optimized version of the following code: for (int i = 0; i < len; i++) {buffer.put(src[off + i]);}

View 2 Replies View Related

Android : Play Video Direct From URL

May 21, 2009

I am new to Android. I have depeloped a video player app. through Sd card.

Now i want to play video direct from URL.

Can anybody provide me sample code for the same.

View 10 Replies View Related

Developing Using WiFi Direct On Android 3.2

Mar 16, 2012

I have an Android 3.2 and the Wifi direct works fine.The problem is, I'm trying to compile this sample but it says that the import "android.net.wifi.p2p" cannot be resolved.Well, if Android 3.2 supports Wifi Direct an actually I'm able to send files through this, why I'm not able to develop for this?

this error don't happen when the project is configured to run over Android 4.0.

View 5 Replies View Related

Android :: Note To Self Or Direct Email Shortcut?

Nov 18, 2009

I'm looking for an app that I can create a shortcut on the home screen and it will automatically email a specific email address. I know there are things that are close to this (add contact to home screen) but then you have to click again to send an email, etc. I'm looking for the equivalent of a fast "note to self" application for quick capture of ideas.

View 5 Replies View Related

Android :: Universal Inbox Direct Shortcut

Jul 28, 2010

I have a droid X running 2.1 update 1: I want a direct link to my universal inbox from my homescreen that drills directly into the inbox displaying all my messages. Currently, the best I can do is to use the "messaging" shortcut, which then goes and displays another shortcut to my "universal inbox" along with my individual mailboxes. I want to cut out the two-step approach, and get a direct shortcut.

View 2 Replies View Related

Android :: No Voice With Direct Navigation Link

May 17, 2010

So - I *love* Google Maps with Navigation and I just recently upgraded to the new version of maps where it gives you a direct link to Navigation. My issue though is that I do not have any voice navigation when I start Navigation directly but I do have it when I just go through the regular Maps link and then select Navigation in there. I checked the menu and it is not muted. The sounds is also set to high. As I said, the sound works perfectly well if I go through the main app. Just not with the new direct link. Anyone else seeing this or worked this out?

View 2 Replies View Related

Android :: Direct Api That Allows Access To CPU Usage Statistics

Sep 6, 2010

Does anyone know of a direct api that allows access to CPU usage statistics for different applications/tasks running inside android? All I can find is data available by accessing a file "/proc/stat" but this seems a little cumbersome. ActivityManager holds data about processes/tasks etc but no CPU usage stats.

View 12 Replies View Related

Android : Direct Video Encoder Access

Apr 16, 2009

Does anybody know of a way to directly access the Video Encoders provided by the(android.media.MediaRecorder) API? I'd like to make changes to the raw camera data "before" it gets encoded.

View 4 Replies View Related

Android : Opengl Direct/NonDirect Buffer

Aug 4, 2010

Been getting a headache with some 2d Opengl coordinates and putting them in a direct buffer.

I have a basic square defined as such

CODE:...............

This runs, no segfault or anything, and when I iterate through the buffer the size and values seem exactly the same (8 elements, ordered just as the array). What happens though is that my draw() function draws nothing, it works one way, but doesn't work the other way. I use Direct Buffers in a lot of my other geometry. I have to get direct buffers working or I know that my software might not be reliable.

CODE:.........

My Drawing function is as follows.

CODE:..................

View 2 Replies View Related

Android : Youtube.com Direct Stream - Will Not Play

Aug 8, 2010

htc desire froyo. When I go to youtube.com from the stock browser I can load the page but when I click to any of videos it looks like it starts to load (loading circle in the middle is rotating) and then I get the message "An error occured, please try again later." at the center of the clip.

I was able to play them but now I can't. Can anyone provide a solution?

And please thank you anyway but do not offer solutions such as: use another browser, go to mobile site, use youtube app (which works by the way).

Main reason for me to switch to android is option to enjoy desktop view of the web on mobile device.

View 1 Replies View Related

Android : Using Direct Call From A Widget In Version 2.1 And 2.2

Jul 4, 2010

I wrote a widget that can call numbers directly with one click. It works on the emulator, and it used to work on my nexus one when it had Android 2.1. Now I got the update, and the widget stopped working. I am using Intent.ACTION_CALL, and android.permission.CALL_PHONE. If I change to Intent.ACTION_DIAL it works, and the same code works from an activity. It is the combination of an app widget and the call action. I don't see any error. Does anyone know if it is not possible, and if so, how? Are there many cases the emulator is different than the cell phones, concerning the permission aspects?

The numbers are all regular, not 911 or something.

View 1 Replies View Related

General :: Direct WiFi Connection Between Android And PC?

Aug 30, 2013

Is it possible to have a Direct Wi Fi Connection between my Android device (Lg L5 e610) and my PC (Win7, Ubuntu 13.04, Mac OSx Snow Leopard)? Is there any tool or program to do it? Or at least a developement project (I like to be a tester)? I found some solutions for my question but they need to a router to work and i haven't it

View 1 Replies View Related

Android :: Direct Database Access Instead Of Content Providers

Sep 2, 2010

Just found out that I don't need content providers if I don't need to share data with other applications. But since the examples I've seen all use content providers, I'm not sure how to proceed without them and populate activities with data derived from accessing my application's database directly.

View 2 Replies View Related

Android :: Direct Dial Widget From Home Screen

Sep 26, 2010

I've been looking for a widget that will allow me to direct dial (direct text a bonus!) from home screen. I've looked around online and there doesn't seem to be anything that suits me well. I tried making the "direct dial" shortcuts by long-pressing, but those icons are small and have a little "M" and image of Android which obscures the photo icon. I found the perfect app while searching for other stuff. I've attached the image to this post. Does anyone know what the app is that allows me to place those 2x1 icons onto the screen?

View 6 Replies View Related

Android :: NFL Sunday Ticket To Be Offered To Non Direct TV Customers

Sep 1, 2010

E-mail I received from customer service: Just so you know, new for 2010, we're offering NFL SUNDAY TICKET To-Go for non-DIRECTV customers ($350 1-pay). This allows you to see every NFL SUNDAY TICKET game on your smartphone - we have dedicated apps for iPhone, select Android, Blackberry and Windows Mobile devices, and the Palm Pre - as well as on your laptop or desktop computer. Now, you don't have to miss a game even when you're nowhere near a TV. The offer is available only on/after Sep 8, 2010, please call (800) 670-7288.To get all the information you need, please go to DIRECTV: NFL SUNDAY TICKET To-Go IMO - price point is a little high since we are unable to stream to TV (hope someone develops a solution for this capability soon )

View 6 Replies View Related

Android :: Use Google Checkout To Sell Direct From Website?

Apr 15, 2010

I'm looking at ways to sell my app to countries where Android Market does not allow people to buy apps (only free apps available in market).

I was looking at Slideme.org, but most of the apps there seem free and the details on their website seem scant about how to actually setup an account so they can pay me using say PayPal. Also, I couldn't reach them by phone, so I'm guessing its a pretty small operation.

I was also thinking about using Google Checkout to sell directly from my website. Would use a buy now button for digital content delivery, using a server 2 server back end post to send a license key to Google checkout which they only show to user after they've paid (or authorized, or something). User would then enter license key on my website using an Android phone browser only and if key is good would get redirected to the .apk file for download.

Still lots of risks for piracy. I suppose having the user enter the license key in the app itself and having the app communicate back with the server for validation might be better, and there are other solutions for that as well.

My main questions are: - Does anyone have experience using SlideMe for actually selling apps, and are they good with service and getting you paid? -Is there any issue with using the same Google Checkout account that is linked to my sales on the Android Market to sell directly from my website?? -Is it against any Google policy to sell an app directly using Google Checkout for the same app that is available through Android Market?

View 21 Replies View Related

Android : Media Database Direct Access From Code

Jul 20, 2010

Can I access android MediaProvider (Images & Videos) databases directly from my code rather then through a content provider ?

I'm planning to have my own Cursor implementation so inside it I want to access the media databases directly, possible or android does not allow it ?

View 1 Replies View Related

Android : OpenGL Garbage Collection - With Direct ByteBuffers

May 20, 2009

Hi, I have discovered while using DDMS that the basic OpenGL system calls in my code are allocating memory and causing the garbage collector to fire! It's not the system calls themselves causing the problem but the use of direct byte buffers to pass data in.

The direct byte buffers I use in calls such as glVertexPointer & glTexCoordPointer lead to java.nio calls to read the byte buffers, leading to objects of type org.apache.harmony.luni.platform.PlatformAddress being created.

These buffers are the same as in the example OpenGL code. I am creating a ByteBuffer using allocateDirect() and then creating an IntBuffer using ByteBuffer.asIntBuffer() to pass data to the OpenGL functions. The problem occurs as the system is reading the buffers.

Is there a way around this? Maybe using something other than direct byte buffers? It seems that using this method, OpenGL code of any complexity (ie a lot of OpenGL system calls in every frame) is doomed to pause a lot. I am aware that these calls should be kept to a minimum, but I still need to use a certain amount of them.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved